RoundedCornerShape
Kotlin
|Java
data class RoundedCornerShape : CornerBasedShape
kotlin.Any | ||
↳ | androidx.ui.foundation.shape.corner.CornerBasedShape | |
↳ | androidx.ui.foundation.shape.corner.RoundedCornerShape |
A shape describing the rectangle with rounded corners.
Summary
Public constructors |
|
---|---|
<init>(topLeft: CornerSize, topRight: CornerSize, bottomRight: CornerSize, bottomLeft: CornerSize) A shape describing the rectangle with rounded corners. |
Public methods |
|
---|---|
Outline.Rounded |
Inherited functions |
|
---|---|
Properties |
|
---|---|
CornerSize |
a size of the bottom right corner |
CornerSize |
a size of the bottom left corner |
CornerSize |
a size of the top left corner |
CornerSize |
a size of the top right corner |
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: PxSize,
topLeft: Px,
topRight: Px,
bottomRight: Px,
bottomLeft: Px
): Outline.Rounded
Parameters | |
---|---|
size: PxSize | the size of the shape boundary. |
topLeft: Px | the resolved size of the top left corner |
topRight: Px | the resolved size for the top right corner |
bottomRight: Px | the resolved size for the bottom left corner |
bottomLeft: Px | the resolved size for the bottom right corner |
Return | |
---|---|
Outline of this shape for the given size. |