androidx.compose.foundation.shape
CutCornerShape
Class · from org.jetbrains.compose.foundation:foundation:1.12.2
No hand-written docs yet.
A shape describing the rectangle with cut corners. Corner size is representing the cut length - the size of both legs of the cut's right triangle.
class CutCornerShape(
topStart: CornerSize,
topEnd: CornerSize,
bottomEnd: CornerSize,
bottomStart: CornerSize,
) : CornerBasedShape
Is a
How to get one
Create it
CutCornerShape(topStart, topEnd, bottomEnd, bottomStart)constructorCutCornerShape(corner: CornerSize)CutCornerShape(size: Dp)CutCornerShape(size: Float)CutCornerShape(percent: Int)CutCornerShape(topStart: Dp, topEnd: Dp, bottomEnd: Dp, bottomStart: Dp)CutCornerShape(topStart: Float, topEnd: Float, bottomEnd: Float, bottomStart: Float)CutCornerShape(topStartPercent: Int, topEndPercent: Int, bottomEndPercent: Int, bottomStartPercent: Int)
Library docs
A shape describing the rectangle with cut corners. Corner size is representing the cut length - the size of both legs of the cut's right triangle.
This shape will automatically mirror the corner sizes in LayoutDirection.Rtl, use
AbsoluteCutCornerShape for the layout direction unaware version of this shape.