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.

RemoteOutline.Generic

An area defined as a path.

RemoteOutline.Rectangle

Rectangular area.

RemoteOutline.Rounded

Rectangular area with rounded corners.

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.

RemoteCornerSize

Creates RemoteCornerSize with provided size.

RemoteRoundedCornerShape

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

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

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

RemoteRoundedCornerShape

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

RemoteRoundedCornerShape

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

RemoteRoundedCornerShape
RemoteRoundedCornerShape(
    topStartPercent: @IntRange(from = 0, to = 100) Int,
    topEndPercent: @IntRange(from = 0, to = 100) Int,
    bottomEndPercent: @IntRange(from = 0, to = 100) Int,
    bottomStartPercent: @IntRange(from = 0, to = 100) Int
)

Creates RemoteRoundedCornerShape with sizes defined in percents of the shape's smaller side.

RemoteRoundedCornerShape
RemoteRoundedCornerShape(
    topStart: RemoteDp,
    topEnd: RemoteDp,
    bottomEnd: RemoteDp,
    bottomStart: RemoteDp
)

Creates RemoteRoundedCornerShape with sizes defined in RemoteDp.

RemoteRoundedCornerShape
RemoteRoundedCornerShape(
    topStart: RemoteFloat,
    topEnd: RemoteFloat,
    bottomEnd: RemoteFloat,
    bottomStart: RemoteFloat
)

Creates RemoteRoundedCornerShape with sizes defined in pixels.

Extension functions summary

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 than 100 percent.

fun RemoteCornerSize(size: RemoteDp): RemoteCornerSize

Creates RemoteCornerSize with provided size.

Parameters
size: RemoteDp

the corner size defined in RemoteDp.

fun RemoteCornerSize(size: RemoteFloat): RemoteCornerSize

Creates RemoteCornerSize with provided size.

Parameters
size: RemoteFloat

the corner size defined in pixels.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(corner: RemoteCornerSize): RemoteRoundedCornerShape

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

Parameters
corner: RemoteCornerSize

RemoteCornerSize to apply.

RemoteRoundedCornerShape

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

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

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

Size in percents to apply.

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.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(size: RemoteFloat): RemoteRoundedCornerShape

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

Parameters
size: RemoteFloat

Size in pixels to apply.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(
    topStartPercent: @IntRange(from = 0, to = 100) Int = 0,
    topEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomEndPercent: @IntRange(from = 0, to = 100) Int = 0,
    bottomStartPercent: @IntRange(from = 0, to = 100) Int = 0
): RemoteRoundedCornerShape

Creates RemoteRoundedCornerShape with sizes defined in percents of the shape's smaller side.

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

The top start corner radius as a percentage of the smaller side, with a range of 0 - 100.

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

The top end corner radius as a percentage of the smaller side, with a range of 0 - 100.

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

The bottom end corner radius as a percentage of the smaller side, with a range of 0 - 100.

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

The bottom start corner radius as a percentage of the smaller side, with a range of 0 - 100.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(
    topStart: RemoteDp = 0.rdp,
    topEnd: RemoteDp = 0.rdp,
    bottomEnd: RemoteDp = 0.rdp,
    bottomStart: RemoteDp = 0.rdp
): RemoteRoundedCornerShape

Creates RemoteRoundedCornerShape with sizes defined in RemoteDp.

RemoteRoundedCornerShape

fun RemoteRoundedCornerShape(
    topStart: RemoteFloat = 0.rf,
    topEnd: RemoteFloat = 0.rf,
    bottomEnd: RemoteFloat = 0.rf,
    bottomStart: RemoteFloat = 0.rf
): RemoteRoundedCornerShape

Creates RemoteRoundedCornerShape with sizes defined in pixels.

Extension functions

RemoteDrawScope.drawOutline

fun RemoteDrawScope.drawOutline(outline: RemoteOutline, paint: RemotePaint): Unit

Draws the RemoteOutline on a RemoteDrawScope.

Parameters
outline: RemoteOutline

the outline to draw.

paint: RemotePaint

the paint used for the drawing.

Top-level properties

val RemoteCircleShape: RemoteRoundedCornerShape

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

val RemoteRectangleShape: RemoteRoundedCornerShape

A rectangular RemoteRoundedCornerShape with no rounded corners.