Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

androidx.compose.foundation.shape

Interfaces

CornerSize

Defines size of a corner in pixels.

Classes

CornerBasedShape

Base class for Shapes defined by four CornerSizes.

CutCornerShape

A shape describing the rectangle with cut corners.

GenericShape

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

RoundedCornerShape

A shape describing the rectangle with rounded corners.

Top-level functions summary

CornerSize
CornerSize(size: Dp)

Creates CornerSize with provided size.

CornerSize

Creates CornerSize with provided size.

CornerSize
CornerSize(@IntRange(0, 100) percent: Int)

Creates CornerSize with provided size.

CutCornerShape

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

CutCornerShape

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

CutCornerShape

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

CutCornerShape
CutCornerShape(percent: Int)

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

CutCornerShape
CutCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp)

Creates CutCornerShape with sizes defined in Dp.

CutCornerShape
CutCornerShape(topLeft: Float = 0.0f, topRight: Float = 0.0f, bottomRight: Float = 0.0f, bottomLeft: Float = 0.0f)

Creates CutCornerShape with sizes defined in float.

CutCornerShape
CutCornerShape(@IntRange(0, 100) topLeftPercent: Int = 0, @IntRange(0, 100) topRightPercent: Int = 0, @IntRange(0, 100) bottomRightPercent: Int = 0, @IntRange(0, 100) bottomLeftPercent: Int = 0)

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

RoundedCornerShape

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

RoundedCornerShape

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

RoundedCornerShape

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

RoundedCornerShape

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

RoundedCornerShape
RoundedCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp)

Creates RoundedCornerShape with sizes defined in Dp.

RoundedCornerShape
RoundedCornerShape(topLeft: Float = 0.0f, topRight: Float = 0.0f, bottomRight: Float = 0.0f, bottomLeft: Float = 0.0f)

Creates RoundedCornerShape with sizes defined in pixels.

RoundedCornerShape
RoundedCornerShape(@IntRange(0, 100) topLeftPercent: Int = 0, @IntRange(0, 100) topRightPercent: Int = 0, @IntRange(0, 100) bottomRightPercent: Int = 0, @IntRange(0, 100) bottomLeftPercent: Int = 0)

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

Top-level properties summary

RoundedCornerShape

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

CornerSize

CornerSize always equals to zero.

Top-level functions

CornerSize

@Stable fun CornerSize(size: Dp): CornerSize

Creates CornerSize with provided size.

Parameters
size: Dp the corner size defined in Dp.

CornerSize

@Stable fun CornerSize(size: Float): CornerSize

Creates CornerSize with provided size.

Parameters
size: Float the corner size defined in pixels.

CornerSize

@Stable fun CornerSize(@IntRange(0, 100) percent: Int): CornerSize

Creates CornerSize with provided size.

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

CutCornerShape

fun CutCornerShape(corner: CornerSize): CutCornerShape

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

Parameters
corner: CornerSize CornerSize to apply.

CutCornerShape

fun CutCornerShape(size: Dp): CutCornerShape

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

Parameters
size: Dp Size in Dp to apply.

CutCornerShape

fun CutCornerShape(size: Float): CutCornerShape

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

Parameters
size: Float Size in pixels to apply.

CutCornerShape

fun CutCornerShape(percent: Int): CutCornerShape

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

Parameters
percent: Int Size in percents to apply.

CutCornerShape

fun CutCornerShape(
    topLeft: Dp = 0.dp,
    topRight: Dp = 0.dp,
    bottomRight: Dp = 0.dp,
    bottomLeft: Dp = 0.dp
): CutCornerShape

Creates CutCornerShape with sizes defined in Dp.

CutCornerShape

fun CutCornerShape(
    topLeft: Float = 0.0f,
    topRight: Float = 0.0f,
    bottomRight: Float = 0.0f,
    bottomLeft: Float = 0.0f
): CutCornerShape

Creates CutCornerShape with sizes defined in float.

CutCornerShape

fun CutCornerShape(
    @IntRange(0, 100) topLeftPercent: Int = 0,
    @IntRange(0, 100) topRightPercent: Int = 0,
    @IntRange(0, 100) bottomRightPercent: Int = 0,
    @IntRange(0, 100) bottomLeftPercent: Int = 0
): CutCornerShape

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

RoundedCornerShape

fun RoundedCornerShape(corner: CornerSize): RoundedCornerShape

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

Parameters
corner: CornerSize CornerSize to apply.

RoundedCornerShape

fun RoundedCornerShape(size: Dp): RoundedCornerShape

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

Parameters
size: Dp Size in Dp to apply.

RoundedCornerShape

fun RoundedCornerShape(size: Float): RoundedCornerShape

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

Parameters
size: Float Size in pixels to apply.

RoundedCornerShape

fun RoundedCornerShape(percent: Int): RoundedCornerShape

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

Parameters
percent: Int Size in percents to apply.

RoundedCornerShape

fun RoundedCornerShape(
    topLeft: Dp = 0.dp,
    topRight: Dp = 0.dp,
    bottomRight: Dp = 0.dp,
    bottomLeft: Dp = 0.dp
): RoundedCornerShape

Creates RoundedCornerShape with sizes defined in Dp.

RoundedCornerShape

fun RoundedCornerShape(
    topLeft: Float = 0.0f,
    topRight: Float = 0.0f,
    bottomRight: Float = 0.0f,
    bottomLeft: Float = 0.0f
): RoundedCornerShape

Creates RoundedCornerShape with sizes defined in pixels.

RoundedCornerShape

fun RoundedCornerShape(
    @IntRange(0, 100) topLeftPercent: Int = 0,
    @IntRange(0, 100) topRightPercent: Int = 0,
    @IntRange(0, 100) bottomRightPercent: Int = 0,
    @IntRange(0, 100) bottomLeftPercent: Int = 0
): RoundedCornerShape

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

Top-level properties

CircleShape

val CircleShape: RoundedCornerShape

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

ZeroCornerSize

@Stable val ZeroCornerSize: CornerSize

CornerSize always equals to zero.