RoundedBackground

class RoundedBackground(color: Color, val radius: Float, val side: Side? = null) : ColoredBackground

Draws a rounded rectangle. If side is set, then only 1 side of the rectangle is rounded (i.e. two corners).

Constructors

Link copied to clipboard
constructor(color: Color, radius: Float, side: Side? = null)

Properties

Link copied to clipboard
open override var color: Color
Link copied to clipboard
open override val colorProperty: ColorProperty
Link copied to clipboard
Link copied to clipboard
val side: Side? = null

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, size: Edges)

Draw the background of an area.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withColor(color: Color): RoundedBackground

Returns a new instance of ColoredBackground with a different color. Other attributes of the border will be copied. e.g. For a RoundedBackground, the radius will be the same.