Rectangle

data class Rectangle(val cornerRadiusX: Float, val cornerRadiusY: Float, val roundedCorners: Set<KalugaBackgroundStyle.Shape.Rectangle.Corner> = Corner.values().toSet()) : KalugaBackgroundStyle.Shape

A rectangular Shape

Constructors

Link copied to clipboard
constructor(cornerRadius: Float = 0.0f, roundedCorners: Set<KalugaBackgroundStyle.Shape.Rectangle.Corner> = Corner.values().toSet())

Constructor

constructor(cornerRadiusX: Float, cornerRadiusY: Float, roundedCorners: Set<KalugaBackgroundStyle.Shape.Rectangle.Corner> = Corner.values().toSet())

Types

Link copied to clipboard

The corners of a Rectangle that can be rounded

Properties

Link copied to clipboard

the radius in scalable pixels applied to the x-dimension of the corner

Link copied to clipboard

the radius in scalable pixels applied to the y-dimension of the corner

Link copied to clipboard