Known direct subclasses
CornerBasedShape

Base class for Shapes defined by four CornerSizes.

GenericShape

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

Known indirect subclasses
AbsoluteCutCornerShape

A shape describing the rectangle with cut corners.

AbsoluteRoundedCornerShape

A shape describing the rectangle with rounded corners.

CutCornerShape

A shape describing the rectangle with cut corners.

RoundedCornerShape

A shape describing the rectangle with rounded corners.


Defines a generic shape.

Summary

Public functions

Outline
createOutline(
    size: Size,
    layoutDirection: LayoutDirection,
    density: Density
)

Creates Outline of this shape for the given size.

Cmn

Public functions

createOutline

fun createOutline(
    size: Size,
    layoutDirection: LayoutDirection,
    density: Density
): Outline

Creates Outline of this shape for the given size.

Parameters
size: Size

the size of the shape boundary.

layoutDirection: LayoutDirection

the current layout direction.

density: Density

the current density of the screen.

Returns
Outline

Outline of this shape for the given size.