CommonLabelBehavior

open class CommonLabelBehavior(textMetrics: TextMetrics, val foregroundColor: Color? = null, val backgroundColor: Color? = null) : LabelBehavior(source)

Behavior providing basic rendering of Labels.

Constructors

Link copied to clipboard
constructor(textMetrics: TextMetrics, foregroundColor: Color? = null, backgroundColor: Color? = null)

Properties

Link copied to clipboard
protected open val backgroundColor: Color? = null
Link copied to clipboard

Controls how Colors are changed when the rendered Label is disabled.

Link copied to clipboard
protected open val foregroundColor: Color? = null

Inherited properties

Link copied to clipboard
open val Label.textSize: Size

Functions

Link copied to clipboard
open override fun install(view: Label)
Link copied to clipboard
open override fun measureText(label: Label): Size
Link copied to clipboard
open override fun render(view: Label, canvas: Canvas)
Link copied to clipboard
open override fun uninstall(view: Label)

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun contains(view: Label, point: Point): Boolean
Link copied to clipboard