androidx.compose.remote.creation.compose.shapes

Interfaces

RemoteCornerSize

Defines size of a corner in pixels.

RemoteShape

Defines a generic remote shape.

Classes

RemoteCornerBasedShape

Base class for RemoteShapes defined by four RemoteCornerSizes.

RemoteOutline

Defines a simple shape, used for bounding graphical regions.

RemoteRoundedCornerShape

A shape describing the rectangle with rounded corners.

Top-level functions summary

RemoteCornerSize
RemoteCornerSize(percent: @IntRange(from = 0, to = 100) Int)

Creates RemoteCornerSize with provided size.

RemoteCornerSize

Creates RemoteCornerSize with provided size.

RemoteRoundedCornerShape

Creates RemoteRoundedCornerShape with the same size applied for all four corners.

Top-level properties summary

RemoteRoundedCornerShape

Circular shape with all the corners sized as the 50% of the shape size.

RemoteRoundedCornerShape

A rectangular RemoteRoundedCornerShape with no rounded corners.

Top-level functions

fun RemoteCornerSize(percent: @IntRange(from = 0, to = 100) Int): RemoteCornerSize

Creates RemoteCornerSize with provided size.

Parameters
percent: @IntRange(from = 0, to = 100) Int

the corner size defined in percents of the shape's smaller side. Can't be negative or larger then 100 percents.

fun RemoteCornerSize(size: RemoteDp): RemoteCornerSize

Creates RemoteCornerSize with provided size.

Parameters
size: RemoteDp

the corner size defined in RemoteDp.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(size: RemoteDp): RemoteRoundedCornerShape

Creates RemoteRoundedCornerShape with the same size applied for all four corners.

Parameters
size: RemoteDp

Size in RemoteDp to apply.

Top-level properties

val RemoteCircleShapeRemoteRoundedCornerShape

Circular shape with all the corners sized as the 50% of the shape size.

val RemoteRectangleShapeRemoteRoundedCornerShape

A rectangular RemoteRoundedCornerShape with no rounded corners.