AbsoluteCutCornerShape
Class
Common
class AbsoluteCutCornerShape(
topLeft: CornerSize,
topRight: CornerSize,
bottomRight: CornerSize,
bottomLeft: CornerSize,
) :
CornerBasedShape(
topStart = topLeft,
topEnd = topRight,
bottomEnd = bottomRight,
bottomStart = bottomLeft,
)
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.
Parameters
topLeft | a size of the top left corner |
topRight | a size of the top right corner |
bottomRight | a size of the bottom right corner |
bottomLeft | a size of the bottom left corner |