🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

AbsoluteRoundedCornerShape

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

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(corner: CornerSize): AbsoluteRoundedCornerShape

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

Parameters

corner CornerSize to apply.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(size: Dp): AbsoluteRoundedCornerShape

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

Parameters

size Size in Dp to apply.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(size: Float): AbsoluteRoundedCornerShape

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

Parameters

size Size in pixels to apply.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(percent: Int): AbsoluteRoundedCornerShape

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

Parameters

percent Size in percents to apply.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(
    topLeft: Dp = 0.dp,
    topRight: Dp = 0.dp,
    bottomRight: Dp = 0.dp,
    bottomLeft: Dp = 0.dp,
): AbsoluteRoundedCornerShape

Creates AbsoluteRoundedCornerShape with sizes defined in Dp.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(
    topLeft: Float = 0.0f,
    topRight: Float = 0.0f,
    bottomRight: Float = 0.0f,
    bottomLeft: Float = 0.0f,
): AbsoluteRoundedCornerShape

Creates AbsoluteRoundedCornerShape with sizes defined in pixels.

AbsoluteRoundedCornerShape

Source set: Common
public fun AbsoluteRoundedCornerShape(
    @IntRange(from = 0, to = 100) topLeftPercent: Int = 0,
    @IntRange(from = 0, to = 100) topRightPercent: Int = 0,
    @IntRange(from = 0, to = 100) bottomRightPercent: Int = 0,
    @IntRange(from = 0, to = 100) bottomLeftPercent: Int = 0,
): AbsoluteRoundedCornerShape

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

Parameters

topLeftPercent The top left corner radius as a percentage of the smaller side, with a range of 0 - 100.
topRightPercent The top right corner radius as a percentage of the smaller side, with a range of 0 - 100.
bottomRightPercent The bottom right corner radius as a percentage of the smaller side, with a range of 0 - 100.
bottomLeftPercent The bottom left corner radius as a percentage of the smaller side, with a range of 0 - 100.