struct CornerRadii
source · line 7public
public struct CornerRadii(val topLeft: Size = Size(0.0, 0.0), val topRight: Size = Size(0.0, 0.0), val bottomRight: Size = Size(0.0, 0.0), val bottomLeft: Size = Size(0.0, 0.0))
Four physical elliptical radii, in clockwise order from top left.
field topRight
source · line 9public
val topRight: Size = Size(0.0, 0.0)
field bottomLeft
source · line 11public
val bottomLeft: Size = Size(0.0, 0.0)
constructor constructor
source · line 7public
constructor(val topLeft: Size = Size(0.0, 0.0), val topRight: Size = Size(0.0, 0.0), val bottomRight: Size = Size(0.0, 0.0), val bottomLeft: Size = Size(0.0, 0.0))
parameter bottomRight
source · line 10public
val bottomRight: Size = Size(0.0, 0.0)
parameter topRight
source · line 9public
val topRight: Size = Size(0.0, 0.0)
parameter topLeft
source · line 8public
val topLeft: Size = Size(0.0, 0.0)
parameter bottomLeft
source · line 11public
val bottomLeft: Size = Size(0.0, 0.0)
function normalized
source · line 18public
public fun normalized(size: Size): CornerRadii
Opposing sums use one factor so the whole outline retains its proportions.
parameter size
source · line 18public
size: Size
field topLeft
source · line 8public
val topLeft: Size = Size(0.0, 0.0)
field bottomRight
source · line 10public
val bottomRight: Size = Size(0.0, 0.0)
function equals
source · line 7publiccompiler-derived
operator fun equals(other: CornerRadii): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Size.