LvglState

Represents an LVGL object state. The states are usually automatically changed by the library as the user presses, releases, focuses etc an object. However the states can be changed manually too. To set or clear given state (but leave the other states untouched) use LvglObjectBase.addState or LvglObjectBase.clearState. In both cases ORed state values can be used as well. For example:

// ...
obj.addState(LV_STATE_PRESSED or LV_PRESSED_CHECKED)

Entries

Link copied to clipboard

Normal, released state.

Link copied to clipboard

Toggled or checked state.

Link copied to clipboard

Focused via keypad or encoder or clicked via touchpad/mouse.

Link copied to clipboard

Focused via keypad or encoder but not via touchpad/mouse.

Link copied to clipboard

Edit by an encoder.

Link copied to clipboard

Hovered by mouse (not supported now).

Link copied to clipboard

Being pressed.

Link copied to clipboard

Being scrolled.

Link copied to clipboard

Disabled state.

Link copied to clipboard

Custom state.

Link copied to clipboard

Custom state.

Link copied to clipboard

Custom state.

Link copied to clipboard

Custom state.

Functions

Link copied to clipboard
fun valueOf(value: String): LvglState

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
expect val LvglState.value: UInt

A unique value for the LvglState.

actual val LvglState.value: UInt
actual val LvglState.value: UInt