RoundedCornerShape
class RoundedCornerShape : CornerBasedShape
A shape describing the rectangle with rounded corners.
Summary
Public constructors |
A shape describing the rectangle with rounded corners.
|
Public constructors
<init>
RoundedCornerShape(
topLeft: CornerSize,
topRight: CornerSize,
bottomRight: CornerSize,
bottomLeft: CornerSize)
A shape describing the rectangle with rounded corners.
Parameters |
topLeft: CornerSize |
a size of the top left corner |
topRight: CornerSize |
a size of the top right corner |
bottomRight: CornerSize |
a size of the bottom left corner |
bottomLeft: CornerSize |
a size of the bottom right corner |
Public methods
createOutline
fun createOutline(
size: Size,
topLeft: Float,
topRight: Float,
bottomRight: Float,
bottomLeft: Float
): Outline
Creates Outline of this shape for the given size.
Parameters |
size: Size |
the size of the shape boundary. |
topLeft: Float |
the resolved size of the top left corner |
topRight: Float |
the resolved size for the top right corner |
bottomRight: Float |
the resolved size for the bottom left corner |
bottomLeft: Float |
the resolved size for the bottom right corner |
hashCode
fun hashCode(): Int
toString
fun toString(): String