FourCorners

data class FourCorners(val topLeft: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), val topRight: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), val bottomRight: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), val bottomLeft: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp))

Defines the x and y radii used by the corners of a rectangle.

Defaults to sharp, right angle corners.

Parameters

topLeft

The (x, y) radii pair for the top left corner.

topRight

The (x, y) radii pair for the top right corner.

bottomRight

The (x, y) radii pair for the bottom right corner.

bottomLeft

The (x, y) radii pair for the bottom left corner.

Constructors

Link copied to clipboard
constructor(topLeft: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), topRight: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), bottomRight: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp), bottomLeft: Pair<Dp, Dp> = Pair(first = 0.dp, second = 0.dp))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topLeft: Pair<Dp, Dp>
Link copied to clipboard