androidx.ui.foundation.shape
Kotlin
|Java
Classes
GenericShape |
Creates Shape defined by applying the provided builder on a Path. |
Top-level functions summary
Unit | |
Unit |
Top-level properties summary
Shape |
A shape describing the rectangle. |
Top-level functions
DrawShape
@Composable fun DrawShape(
shape: Shape,
color: Color
): Unit
Draw the shape with the provided color.
Parameters | |
---|---|
shape: Shape | the Shape to draw. |
color: Color | the Color to use for filling the shape. |
DrawShape
@Composable fun DrawShape(
shape: Shape,
brush: Brush
): Unit
Draw the shape with the provided brush.
Parameters | |
---|---|
shape: Shape | the Shape to draw. |
brush: Brush | the Brush to use for filling the shape. |