Companion
object Companion
Houses CorneredShape singletons and factory functions.
Properties
Link copied to clipboard
A CorneredShape with fully rounded corners.
Functions
Link copied to clipboard
Creates a CorneredShape with cut corners of the provided size.
fun cut(topLeftDp: Float = 0.0f, topRightDp: Float = 0.0f, bottomRightDp: Float = 0.0f, bottomLeftDp: Float = 0.0f): CorneredShape
fun cut(topLeftPercent: Int = 0, topRightPercent: Int = 0, bottomRightPercent: Int = 0, bottomLeftPercent: Int = 0): CorneredShape
Creates a CorneredShape with cut corners of the provided sizes.
Link copied to clipboard
Creates a CorneredShape with rounded corners of the provided radius.
fun rounded(topLeftDp: Float = 0.0f, topRightDp: Float = 0.0f, bottomRightDp: Float = 0.0f, bottomLeftDp: Float = 0.0f): CorneredShape
fun rounded(topLeftPercent: Int = 0, topRightPercent: Int = 0, bottomRightPercent: Int = 0, bottomLeftPercent: Int = 0): CorneredShape
Creates a CorneredShape with rounded corners of the provided radii.