androidx.compose.foundation.shape
AbsoluteCutCornerShape
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 AbsoluteCutCornerShape(
topLeft: CornerSize,
topRight: CornerSize,
bottomRight: CornerSize,
bottomLeft: CornerSize,
) : CornerBasedShape
Is a
How to get one
Create it
AbsoluteCutCornerShape(topLeft, topRight, bottomRight, bottomLeft)constructorAbsoluteCutCornerShape(corner: CornerSize)AbsoluteCutCornerShape(size: Dp)AbsoluteCutCornerShape(size: Float)AbsoluteCutCornerShape(percent: Int)AbsoluteCutCornerShape(topLeft: Dp, topRight: Dp, bottomRight: Dp, bottomLeft: Dp)AbsoluteCutCornerShape(topLeft: Float, topRight: Float, bottomRight: Float, bottomLeft: Float)AbsoluteCutCornerShape(topLeftPercent: Int, topRightPercent: Int, bottomRightPercent: Int, bottomLeftPercent: 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 not automatically mirror the corner sizes in LayoutDirection.Rtl, use
CutCornerShape for the layout direction aware version of this shape.