Lvgl State
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)Content copied to clipboard