render Decoration
open override fun renderDecoration(context: DrawContext, x: Int, y: Int, delta: Float, enabled: Boolean, selected: Boolean)
Renders the decoration. Notably, this provides active and selected context for rendering different things based on those states.
Author
fzzyhmstrs
Since
0.6.0
Parameters
context
DrawContext
x
Left edge of render area
y
Top of render area
delta
render frame delta
enabled
Whether this rendering is "active" or not. Widgets that call this should pass their this.active
state for this
selected
Whether this rendering is "hovered" or "focused". Widgets that call this should use their this.isSelected()
call for this