Rectangle

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

Constructor

Parameters

cornerRadius

the radius in scalable pixels to apply to the corners

roundedCorners

the set of Corner that are rounded according to cornerRadius


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