androidx.ui.foundation.shape

Classes

GenericShape

Creates Shape defined by applying the provided builder on a Path.

Top-level functions summary

Unit
DrawShape(shape: Shape, color: Color)

Draw the shape with the provided color.

Unit
DrawShape(shape: Shape, brush: Brush)

Draw the shape with the provided brush.

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.

Top-level properties

RectangleShape

val RectangleShape: Shape

A shape describing the rectangle.