Rect

open class Rect : FillableElement

A Rectangle

The rectangle dimensions are defined by setWidth and setHeight

Supported transformations: Scale, Rotate, Translate

Constructors

Link copied to clipboard
constructor()
constructor(id: String)

Functions

Link copied to clipboard
protected open override fun drawBackground(canvas: CanvasBuffer)

Draws the ui element background

Link copied to clipboard
protected open override fun onDraw(canvas: CanvasBuffer)

The draw method is called to actually draw the ui element visual representation to the CanvasBuffer

Link copied to clipboard
fun setRoundedCorners(radiusPix: Float): Rect

Apply rounded corners to the rectangle