BorderStroke
Kotlin
|Java
@Immutable class BorderStroke
kotlin.Any | |
↳ | androidx.compose.foundation.BorderStroke |
Class to specify the stroke to draw border with.
Summary
Public constructors | |
---|---|
Class to specify the stroke to draw border with. |
Public methods | |
---|---|
BorderStroke | |
Boolean | |
Int |
hashCode() |
String |
toString() |
Properties | |
---|---|
Brush |
brush to paint the border with |
Dp |
width of the border in Dp. |
Public constructors
<init>
BorderStroke(
width: Dp,
brush: Brush)
Class to specify the stroke to draw border with.
Parameters | |
---|---|
width: Dp | width of the border in Dp. Use Dp.Hairline for one-pixel border. |
brush: Brush | brush to paint the border with |
Public methods
copy
fun copy(
width: Dp = this.width,
brush: Brush = this.brush
): BorderStroke
hashCode
fun hashCode(): Int
toString
fun toString(): String