RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(corner: RemoteCornerSize): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with the same size applied for all four corners.
Parameters
| corner | RemoteCornerSize to apply. |
Return
a RemoteRoundedCornerShape with corner applied to all four corners
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(size: RemoteDp): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with the same size applied for all four corners.
Example of clipping and bordering a composable with a RemoteRoundedCornerShape:
Parameters
| size | Size in RemoteDp to apply. |
Return
a RemoteRoundedCornerShape with size applied to all four corners
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(size: RemoteFloat): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with the same size applied for all four corners.
Parameters
| size | Size in pixels to apply. |
Return
a RemoteRoundedCornerShape with size applied to all four corners
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(
@IntRange(from = 0, to = 100) percent: Int
): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with the same size applied for all four corners.
Parameters
| percent | Size in percents to apply. |
Return
a RemoteRoundedCornerShape with percent applied to all four corners
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(
topStart: RemoteDp = 0.rdp,
topEnd: RemoteDp = 0.rdp,
bottomEnd: RemoteDp = 0.rdp,
bottomStart: RemoteDp = 0.rdp,
): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with sizes defined in RemoteDp.
Parameters
| topStart | A size of the top start corner. |
| topEnd | A size of the top end corner. |
| bottomEnd | A size of the bottom end corner. |
| bottomStart | A size of the bottom start corner. |
Return
a RemoteRoundedCornerShape with the specified corner sizes
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(
topStart: RemoteFloat = 0.rf,
topEnd: RemoteFloat = 0.rf,
bottomEnd: RemoteFloat = 0.rf,
bottomStart: RemoteFloat = 0.rf,
): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with sizes defined in pixels.
Parameters
| topStart | A size of the top start corner in pixels. |
| topEnd | A size of the top end corner in pixels. |
| bottomEnd | A size of the bottom end corner in pixels. |
| bottomStart | A size of the bottom start corner in pixels. |
Return
a RemoteRoundedCornerShape with the specified corner sizes in pixels
RemoteRoundedCornerShape
public fun RemoteRoundedCornerShape(
@IntRange(from = 0, to = 100) topStartPercent: Int = 0,
@IntRange(from = 0, to = 100) topEndPercent: Int = 0,
@IntRange(from = 0, to = 100) bottomEndPercent: Int = 0,
@IntRange(from = 0, to = 100) bottomStartPercent: Int = 0,
): RemoteRoundedCornerShape
Creates RemoteRoundedCornerShape with sizes defined in percents of the shape's smaller side.
Parameters
| topStartPercent | The top start corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| topEndPercent | The top end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| bottomEndPercent | The bottom end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| bottomStartPercent | The bottom start corner radius as a percentage of the smaller side, with a range of 0 - 100. |
Return
a RemoteRoundedCornerShape with the specified corner percentages