Skip to content

PixelUI.CheckBox

Extends: PixelUI.Widget

A checkbox widget with support for checked, unchecked, and indeterminate states. Provides visual feedback and change callbacks.

Properties

NameTypeDescription
labelstringLabel text displayed next to the checkbox
checkedbooleanWhether the checkbox is checked
indeterminatebooleanWhether the checkbox is in an indeterminate state
allowIndeterminatebooleanWhether the indeterminate state is allowed
focusBgPixelUI.Color?Background color when focused
focusFgPixelUI.Color?Foreground color when focused
onChangefun(self:PixelUI.CheckBox,

Methods

new

lua
new()

_notifyChange

lua
_notifyChange()

_setState

lua
_setState()

setLabel

lua
setLabel()

setOnChange

lua
setOnChange()

setAllowIndeterminate

lua
setAllowIndeterminate()

setChecked

lua
setChecked()

isChecked

lua
isChecked()

setIndeterminate

lua
setIndeterminate()

isIndeterminate

lua
isIndeterminate()

toggle

lua
toggle()

_activate

lua
_activate()

draw

lua
draw()

handleEvent

lua
handleEvent()

Released under the MIT License.