RoundedCornerShape
-
Cmn
class RoundedCornerShape : CornerBasedShape
| kotlin.Any | ||
| ↳ | androidx.compose.foundation.shape.CornerBasedShape | |
| ↳ | androidx.compose.foundation.shape.RoundedCornerShape |
A shape describing the rectangle with rounded corners.
This shape will automatically mirror the corner sizes in LayoutDirection.Rtl, use AbsoluteRoundedCornerShape for the layout direction unaware version of this shape.
Summary
Public constructors |
|
|---|---|
RoundedCornerShape( |
Cmn
|
Public functions |
||
|---|---|---|
open RoundedCornerShape |
copy(Creates a copy of this Shape with a new corner sizes. |
Cmn
|
open Outline |
createOutline( |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
open Any? |
Default implementation. |
Cmn
|
open String |
toString() |
Cmn
|
Inherited functions |
||||||
|---|---|---|---|---|---|---|
|
Inherited properties |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
RoundedCornerShape
RoundedCornerShape(
topStart: CornerSize,
topEnd: CornerSize,
bottomEnd: CornerSize,
bottomStart: CornerSize
)
| Parameters | |
|---|---|
topStart: CornerSize |
a size of the top start corner |
topEnd: CornerSize |
a size of the top end corner |
bottomEnd: CornerSize |
a size of the bottom end corner |
bottomStart: CornerSize |
a size of the bottom start corner |
Public functions
copy
open fun copy(
topStart: CornerSize = this.topStart,
topEnd: CornerSize = this.topEnd,
bottomEnd: CornerSize = this.bottomEnd,
bottomStart: CornerSize = this.bottomStart
): RoundedCornerShape
Creates a copy of this Shape with a new corner sizes.
| Parameters | |
|---|---|
topStart: CornerSize = this.topStart |
a size of the top start corner |
topEnd: CornerSize = this.topEnd |
a size of the top end corner |
bottomEnd: CornerSize = this.bottomEnd |
a size of the bottom end corner |
bottomStart: CornerSize = this.bottomStart |
a size of the bottom start corner |
createOutline
open fun createOutline(
size: Size,
topStart: Float,
topEnd: Float,
bottomEnd: Float,
bottomStart: Float,
layoutDirection: LayoutDirection
): Outline
Creates Outline of this shape for the given size.
| Parameters | |
|---|---|
size: Size |
the size of the shape boundary. |
topStart: Float |
the resolved size of the top start corner |
topEnd: Float |
the resolved size for the top end corner |
bottomEnd: Float |
the resolved size for the bottom end corner |
bottomStart: Float |
the resolved size for the bottom start corner |
layoutDirection: LayoutDirection |
the current layout direction. |