Skip to content
On this page

Flags

For more detailed information, please refer to this link: https://docs.lvgl.io/8.3/widgets/obj.html

Functional Status

控件状态
hiddenLV_OBJ_FLAG_HIDDENMake the object hidden. (Like it wasn't there at all)
clickableLV_OBJ_FLAG_CLICKABLEMake the object clickable by input devices
click_focusableLV_OBJ_FLAG_CLICK_FOCUSABLEAdd focused state to the object when clicked
checkableLV_OBJ_FLAG_CHECKABLEToggle checked state when the object is clicked
scrollableLV_OBJ_FLAG_SCROLLABLEMake the object scrollable
scroll_elasticLV_OBJ_FLAG_SCROLL_ELASTICAllow scrolling inside but with slower speed
scroll_momentumLV_OBJ_FLAG_SCROLL_MOMENTUMMake the object scroll further when "thrown"
scroll_oneLV_OBJ_FLAG_SCROLL_ONEAllow scrolling only one snappable children
scroll_chain_horLV_OBJ_FLAG_SCROLL_CHAIN_HORAllow propagating the horizontal scroll to a parent
scroll_chain_verLV_OBJ_FLAG_SCROLL_CHAIN_VERAllow propagating the vertical scroll to a parent
scroll_chainLV_OBJ_FLAG_SCROLL_CHAINSimple packaging for (LV_OBJ_FLAG_SCROLL_CHAIN_HOR
scroll_on_focusLV_OBJ_FLAG_SCROLL_ON_FOCUSAutomatically scroll object to make it visible when focused
scroll_with_arrowLV_OBJ_FLAG_SCROLL_WITH_ARROWAllow scrolling the focused object with arrow keys
snappableLV_OBJ_FLAG_SNAPPABLEIf scroll snap is enabled on the parent it can snap to this object
press_lockLV_OBJ_FLAG_PRESS_LOCKKeep the object pressed even if the press slid from the object
event_bubbleLV_OBJ_FLAG_EVENT_BUBBLEPropagate the events to the parent too
gesture_bubbleLV_OBJ_FLAG_GESTURE_BUBBLEPropagate the gestures to the parent
adv_hittestLV_OBJ_FLAG_ADV_HITTESTAllow performing more accurate hit (click) test. E.g. accounting for rounded corners
ignore_layoutLV_OBJ_FLAG_IGNORE_LAYOUTMake the object positionable by the layouts
floatingLV_OBJ_FLAG_FLOATINGDo not scroll the object when the parent scrolls and ignore layout
overflow_visibleLV_OBJ_FLAG_OVERFLOW_VISIBLEDo not clip the children's content to the parent's boundary