Flags
For more detailed information, please refer to this link: https://docs.lvgl.io/8.3/widgets/obj.html
Functional Status
| 控件状态 | ||
|---|---|---|
| hidden | LV_OBJ_FLAG_HIDDEN | Make the object hidden. (Like it wasn't there at all) |
| clickable | LV_OBJ_FLAG_CLICKABLE | Make the object clickable by input devices |
| click_focusable | LV_OBJ_FLAG_CLICK_FOCUSABLE | Add focused state to the object when clicked |
| checkable | LV_OBJ_FLAG_CHECKABLE | Toggle checked state when the object is clicked |
| scrollable | LV_OBJ_FLAG_SCROLLABLE | Make the object scrollable |
| scroll_elastic | LV_OBJ_FLAG_SCROLL_ELASTIC | Allow scrolling inside but with slower speed |
| scroll_momentum | LV_OBJ_FLAG_SCROLL_MOMENTUM | Make the object scroll further when "thrown" |
| scroll_one | LV_OBJ_FLAG_SCROLL_ONE | Allow scrolling only one snappable children |
| scroll_chain_hor | LV_OBJ_FLAG_SCROLL_CHAIN_HOR | Allow propagating the horizontal scroll to a parent |
| scroll_chain_ver | LV_OBJ_FLAG_SCROLL_CHAIN_VER | Allow propagating the vertical scroll to a parent |
| scroll_chain | LV_OBJ_FLAG_SCROLL_CHAIN | Simple packaging for (LV_OBJ_FLAG_SCROLL_CHAIN_HOR |
| scroll_on_focus | LV_OBJ_FLAG_SCROLL_ON_FOCUS | Automatically scroll object to make it visible when focused |
| scroll_with_arrow | LV_OBJ_FLAG_SCROLL_WITH_ARROW | Allow scrolling the focused object with arrow keys |
| snappable | LV_OBJ_FLAG_SNAPPABLE | If scroll snap is enabled on the parent it can snap to this object |
| press_lock | LV_OBJ_FLAG_PRESS_LOCK | Keep the object pressed even if the press slid from the object |
| event_bubble | LV_OBJ_FLAG_EVENT_BUBBLE | Propagate the events to the parent too |
| gesture_bubble | LV_OBJ_FLAG_GESTURE_BUBBLE | Propagate the gestures to the parent |
| adv_hittest | LV_OBJ_FLAG_ADV_HITTEST | Allow performing more accurate hit (click) test. E.g. accounting for rounded corners |
| ignore_layout | LV_OBJ_FLAG_IGNORE_LAYOUT | Make the object positionable by the layouts |
| floating | LV_OBJ_FLAG_FLOATING | Do not scroll the object when the parent scrolls and ignore layout |
| overflow_visible | LV_OBJ_FLAG_OVERFLOW_VISIBLE | Do not clip the children's content to the parent's boundary |
8MS