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 |
CornerSize(size: Float) Creates CornerSize with provided size. |
CornerSize |
CornerSize(@IntRange(0, 100) percent: Int) Creates CornerSize with provided size. |
CutCornerShape |
CutCornerShape(corner: CornerSize) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(size: Dp) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(size: Float) 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 |
RoundedCornerShape(corner: CornerSize) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(size: Dp) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(size: Float) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(percent: Int) 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<