lv_obj.h

API reference for lv_obj.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_obj_private.h

Functions

lv_obj_set_flag

Set add or remove one or more flags.

> Deprecated: Use the dedicated per-flag setter instead, e.g. lv_obj_set_hidden(obj, en).

 
void lv_obj_set_flag(lv_obj_t *obj, lv_obj_flag_t f, bool v)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object
flv_obj_flag_tOR-ed values from lv_obj_flag_t to update.
vbooltrue: add the flags; false: remove the flags

lv_obj_set_hidden

Make the object hidden. (Like it wasn't there at all)

 
void lv_obj_set_hidden(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the hidden property

lv_obj_set_clickable

Make the object clickable by the input devices

 
void lv_obj_set_clickable(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the clickable property

lv_obj_set_click_focusable

Add focused state to the object when clicked

 
void lv_obj_set_click_focusable(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the click focusable property

lv_obj_set_checkable

Toggle checked state when the object is clicked

 
void lv_obj_set_checkable(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the checkable property

lv_obj_set_scrollable

Make the object scrollable

 
void lv_obj_set_scrollable(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the scrollable property

lv_obj_set_scroll_elastic

Allow scrolling inside but with slower speed

 
void lv_obj_set_scroll_elastic(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the scroll elastic property

lv_obj_set_scroll_momentum

Make the object scroll further when "thrown"

 
void lv_obj_set_scroll_momentum(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the scroll momentum property

lv_obj_set_scroll_one

Allow scrolling only one snappable child

 
void lv_obj_set_scroll_one(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the scroll one property

lv_obj_set_scroll_chain

Allow propagating the scrolling in any directions to a parent

 
void lv_obj_set_scroll_chain(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable scroll chaining

lv_obj_set_scroll_chain_hor

Allow propagating the horizontal scroll to a parent

 
void lv_obj_set_scroll_chain_hor(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable horizontal scroll chaining

lv_obj_set_scroll_chain_ver

Allow propagating the vertical scroll to a parent

 
void lv_obj_set_scroll_chain_ver(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable vertical scroll chaining

lv_obj_set_scroll_on_focus

Automatically scroll object to make it visible when focused

 
void lv_obj_set_scroll_on_focus(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable scroll on focus

lv_obj_set_scroll_with_arrow

Allow scrolling the focused object with arrow keys

 
void lv_obj_set_scroll_with_arrow(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable scroll with arrow keys

lv_obj_set_snappable

Allow snapping to this object if scroll snap is enabled on the parent

 
void lv_obj_set_snappable(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the snappable property

lv_obj_set_press_lock

Keep the object pressed even if the press slid from the object

 
void lv_obj_set_press_lock(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable the press lock property

lv_obj_set_event_bubble

Propagate the events to the parent too

 
void lv_obj_set_event_bubble(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable event bubbling

lv_obj_set_gesture_bubble

Propagate the gestures to the parent

 
void lv_obj_set_gesture_bubble(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable gesture bubbling

lv_obj_set_adv_hittest

Allow performing more accurate hit test

 
void lv_obj_set_adv_hittest(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable advanced hit testing

lv_obj_set_ignore_layout

Make the object not positioned by layouts

 
void lv_obj_set_ignore_layout(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable ignoring layout

lv_obj_set_floating

Do not scroll the object when the parent scrolls and ignore layout

 
void lv_obj_set_floating(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable floating mode

lv_obj_set_send_draw_task_events

Send LV_EVENT_DRAW_TASK_ADDED events

 
void lv_obj_set_send_draw_task_events(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable draw task events

lv_obj_set_overflow_visible

Do not clip the children to the parent's extended draw size

 
void lv_obj_set_overflow_visible(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable overflow visibility

lv_obj_set_event_trickle

Propagate the events to the children too

 
void lv_obj_set_event_trickle(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable event trickling

lv_obj_set_state_trickle

Propagate the states to the children too

 
void lv_obj_set_state_trickle(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable state trickling

lv_obj_set_radio_button

Allow only one RADIO_BUTTON sibling to be checked

 
void lv_obj_set_radio_button(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable radio button behavior

lv_obj_set_flex_in_new_track

Start a new flex track on this item

 
void lv_obj_set_flex_in_new_track(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enboolenable or disable new flex track

lv_obj_set_state

Add or remove one or more states to the object. The other state bits will remain unchanged.

 
void lv_obj_set_state(lv_obj_t *obj, lv_state_t state, bool v)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object
statelv_state_tthe states to add. E.g `LV_STATE_PRESSED
vbooltrue: add the states; false: remove the states

lv_obj_set_alt

Add or remove LV_STATE_ALT. The other states remain unchanged.

 
void lv_obj_set_alt(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_checked

Add or remove LV_STATE_CHECKED. The other states remain unchanged.

 
void lv_obj_set_checked(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_focused

Add or remove LV_STATE_FOCUSED. The other states remain unchanged.

 
void lv_obj_set_focused(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_focus_key

Add or remove LV_STATE_FOCUS_KEY. The other states remain unchanged.

 
void lv_obj_set_focus_key(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_edited

Add or remove LV_STATE_EDITED. The other states remain unchanged.

 
void lv_obj_set_edited(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_hovered

Add or remove LV_STATE_HOVERED. The other states remain unchanged.

 
void lv_obj_set_hovered(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_pressed

Add or remove LV_STATE_PRESSED. The other states remain unchanged.

 
void lv_obj_set_pressed(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_scrolled

Add or remove LV_STATE_SCROLLED. The other states remain unchanged.

 
void lv_obj_set_scrolled(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_disabled

Add or remove LV_STATE_DISABLED. The other states remain unchanged.

 
void lv_obj_set_disabled(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_state_user_1

Add or remove LV_STATE_USER_1. The other states remain unchanged.

 
void lv_obj_set_state_user_1(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_state_user_2

Add or remove LV_STATE_USER_2. The other states remain unchanged.

 
void lv_obj_set_state_user_2(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_state_user_3

Add or remove LV_STATE_USER_3. The other states remain unchanged.

 
void lv_obj_set_state_user_3(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_state_user_4

Add or remove LV_STATE_USER_4. The other states remain unchanged.

 
void lv_obj_set_state_user_4(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a widget
enbooltrue: add the state; false: remove the state

lv_obj_set_user_data

Set the user_data field of the object

 
void lv_obj_set_user_data(lv_obj_t *obj, void *user_data)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object
user_datavoid *pointer to the new user_data. May be NULL.

lv_obj_set_user_flag

Set one of the 4 flags available for the user

 
void lv_obj_set_user_flag(lv_obj_t *obj, uint32_t bit, bool v)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object
bituint32_tthe index of the bit (0..3)
vboolthe value of the bit, true or false

lv_obj_set_id

Set an id for an object.

 
void lv_obj_set_id(lv_obj_t *obj, void *id)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object
idvoid *the id of the object May be NULL.. When NULL any previous id is dropped.

Enums

lv_obj_flag_t

On/Off features controlling the object's behavior. OR-ed values are possible

Note: update obj flags corresponding properties below whenever add/remove flags or change bit definition of flags.

NameValueDescription
LV_OBJ_FLAG_HIDDEN(1u << 0)Make the object hidden. (Like it wasn't there at all)
LV_OBJ_FLAG_CLICKABLE(1u << 1)Make the object clickable by the input devices
LV_OBJ_FLAG_CLICK_FOCUSABLE(1u << 2)Add focused state to the object when clicked
LV_OBJ_FLAG_CHECKABLE(1u << 3)Toggle checked state when the object is clicked
LV_OBJ_FLAG_SCROLLABLE(1u << 4)Make the object scrollable
LV_OBJ_FLAG_SCROLL_ELASTIC(1u << 5)Allow scrolling inside but with slower speed
LV_OBJ_FLAG_SCROLL_MOMENTUM(1u << 6)Make the object scroll further when "thrown"
LV_OBJ_FLAG_SCROLL_ONE(1u << 7)Allow scrolling only one snappable children
LV_OBJ_FLAG_SCROLL_CHAIN_HOR(1u << 8)Allow propagating the horizontal scroll to a parent
LV_OBJ_FLAG_SCROLL_CHAIN_VER(1u << 9)Allow propagating the vertical scroll to a parent
LV_OBJ_FLAG_SCROLL_CHAIN(LV_OBJ_FLAG_SCROLL_CHAIN_HOR | LV_OBJ_FLAG_SCROLL_CHAIN_VER)
LV_OBJ_FLAG_SCROLL_ON_FOCUS(1u << 10)Automatically scroll object to make it visible when focused
LV_OBJ_FLAG_SCROLL_WITH_ARROW(1u << 11)Allow scrolling the focused object with arrow keys
LV_OBJ_FLAG_SNAPPABLE(1u << 12)If scroll snap is enabled on the parent it can snap to this object
LV_OBJ_FLAG_PRESS_LOCK(1u << 13)Keep the object pressed even if the press slid from the object
LV_OBJ_FLAG_EVENT_BUBBLE(1u << 14)Propagate the events to the parent too
LV_OBJ_FLAG_GESTURE_BUBBLE(1u << 15)Propagate the gestures to the parent
LV_OBJ_FLAG_ADV_HITTEST(1u << 16)Allow performing more accurate hit (click) test. E.g. consider rounded corners.
LV_OBJ_FLAG_IGNORE_LAYOUT(1u << 17)Make the object not positioned by the layouts
LV_OBJ_FLAG_FLOATING(1u << 18)Do not scroll the object when the parent scrolls and ignore layout
LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS(1u << 19)Send LV_EVENT_DRAW_TASK_ADDED events
LV_OBJ_FLAG_OVERFLOW_VISIBLE(1u << 20)Do not clip the children to the parent's ext draw size
LV_OBJ_FLAG_EVENT_TRICKLE(1u << 21)Propagate the events to the children too
LV_OBJ_FLAG_STATE_TRICKLE(1u << 22)Propagate the states to the children too
LV_OBJ_FLAG_LAYOUT_1(1u << 23)Custom flag, free to use by layouts
LV_OBJ_FLAG_LAYOUT_2(1u << 24)Custom flag, free to use by layouts
LV_OBJ_FLAG_FLEX_IN_NEW_TRACKLV_OBJ_FLAG_LAYOUT_1Start a new flex track on this item
LV_OBJ_FLAG_WIDGET_1(1u << 25)Custom flag, free to use by widget
LV_OBJ_FLAG_WIDGET_2(1u << 26)Custom flag, free to use by widget
LV_OBJ_FLAG_USER_1(1u << 27)Custom flag, free to use by user
LV_OBJ_FLAG_USER_2(1u << 28)Custom flag, free to use by user
LV_OBJ_FLAG_USER_3(1u << 29)Custom flag, free to use by user
LV_OBJ_FLAG_USER_4(1u << 30)Custom flag, free to use by user
Used by 11 functions
  • lv_obj_add_flag — param f
  • lv_obj_remove_flag — param f
  • lv_obj_set_flag — param f
  • lv_obj_has_flag — param f
  • lv_obj_has_flag_any — param f
  • lv_obj_bind_flag_if_eq — param flag
  • lv_obj_bind_flag_if_not_eq — param flag
  • lv_obj_bind_flag_if_gt — param flag
  • lv_obj_bind_flag_if_ge — param flag
  • lv_obj_bind_flag_if_lt — param flag
  • lv_obj_bind_flag_if_le — param flag

_lv_signed_prop_id_t

NameValue
LV_PROPERTY_OBJ_FLAG_START(LV_PROPERTY_OBJ_START + ((int) 0 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_HIDDEN(LV_PROPERTY_OBJ_START + ((int) 0 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_CLICKABLE(LV_PROPERTY_OBJ_START + ((int) 1 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_CLICK_FOCUSABLE(LV_PROPERTY_OBJ_START + ((int) 2 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_CHECKABLE(LV_PROPERTY_OBJ_START + ((int) 3 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLLABLE(LV_PROPERTY_OBJ_START + ((int) 4 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_ELASTIC(LV_PROPERTY_OBJ_START + ((int) 5 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_MOMENTUM(LV_PROPERTY_OBJ_START + ((int) 6 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_ONE(LV_PROPERTY_OBJ_START + ((int) 7 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_CHAIN_HOR(LV_PROPERTY_OBJ_START + ((int) 8 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_CHAIN_VER(LV_PROPERTY_OBJ_START + ((int) 9 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_ON_FOCUS(LV_PROPERTY_OBJ_START + ((int) 10 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SCROLL_WITH_ARROW(LV_PROPERTY_OBJ_START + ((int) 11 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SNAPPABLE(LV_PROPERTY_OBJ_START + ((int) 12 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_PRESS_LOCK(LV_PROPERTY_OBJ_START + ((int) 13 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_EVENT_BUBBLE(LV_PROPERTY_OBJ_START + ((int) 14 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_GESTURE_BUBBLE(LV_PROPERTY_OBJ_START + ((int) 15 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_ADV_HITTEST(LV_PROPERTY_OBJ_START + ((int) 16 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_IGNORE_LAYOUT(LV_PROPERTY_OBJ_START + ((int) 17 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_FLOATING(LV_PROPERTY_OBJ_START + ((int) 18 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_SEND_DRAW_TASK_EVENTS(LV_PROPERTY_OBJ_START + ((int) 19 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_OVERFLOW_VISIBLE(LV_PROPERTY_OBJ_START + ((int) 20 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_EVENT_TRICKLE(LV_PROPERTY_OBJ_START + ((int) 21 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_STATE_TRICKLE(LV_PROPERTY_OBJ_START + ((int) 22 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_LAYOUT_1(LV_PROPERTY_OBJ_START + ((int) 23 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_LAYOUT_2(LV_PROPERTY_OBJ_START + ((int) 24 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_FLEX_IN_NEW_TRACK(LV_PROPERTY_OBJ_START + ((int) 23 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_WIDGET_1(LV_PROPERTY_OBJ_START + ((int) 25 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_WIDGET_2(LV_PROPERTY_OBJ_START + ((int) 26 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_USER_1(LV_PROPERTY_OBJ_START + ((int) 27 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_USER_2(LV_PROPERTY_OBJ_START + ((int) 28 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_USER_3(LV_PROPERTY_OBJ_START + ((int) 29 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_USER_4(LV_PROPERTY_OBJ_START + ((int) 30 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_FLAG_END(LV_PROPERTY_OBJ_START + ((int) 30 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_START(LV_PROPERTY_OBJ_START + ((int) 31 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_ALT(LV_PROPERTY_OBJ_START + ((int) 31 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_CHECKED(LV_PROPERTY_OBJ_START + ((int) 33 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_FOCUSED(LV_PROPERTY_OBJ_START + ((int) 34 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_FOCUS_KEY(LV_PROPERTY_OBJ_START + ((int) 35 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_EDITED(LV_PROPERTY_OBJ_START + ((int) 36 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_HOVERED(LV_PROPERTY_OBJ_START + ((int) 37 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_PRESSED(LV_PROPERTY_OBJ_START + ((int) 38 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_SCROLLED(LV_PROPERTY_OBJ_START + ((int) 39 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_DISABLED(LV_PROPERTY_OBJ_START + ((int) 40 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_USER_1(LV_PROPERTY_OBJ_START + ((int) 43 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_USER_2(LV_PROPERTY_OBJ_START + ((int) 44 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_USER_3(LV_PROPERTY_OBJ_START + ((int) 45 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_USER_4(LV_PROPERTY_OBJ_START + ((int) 46 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_ANY(LV_PROPERTY_OBJ_START + ((int) 47 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_STATE_END(LV_PROPERTY_OBJ_START + ((int) 47 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_PARENT(LV_PROPERTY_OBJ_START + ((int) 48 )) | (( 8 ) << 28 )
LV_PROPERTY_OBJ_X(LV_PROPERTY_OBJ_START + ((int) 49 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_Y(LV_PROPERTY_OBJ_START + ((int) 50 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_W(LV_PROPERTY_OBJ_START + ((int) 51 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_H(LV_PROPERTY_OBJ_START + ((int) 52 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_CONTENT_WIDTH(LV_PROPERTY_OBJ_START + ((int) 53 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_CONTENT_HEIGHT(LV_PROPERTY_OBJ_START + ((int) 54 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_LAYOUT(LV_PROPERTY_OBJ_START + ((int) 55 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_ALIGN(LV_PROPERTY_OBJ_START + ((int) 56 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLLBAR_MODE(LV_PROPERTY_OBJ_START + ((int) 57 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_DIR(LV_PROPERTY_OBJ_START + ((int) 58 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_SNAP_X(LV_PROPERTY_OBJ_START + ((int) 59 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_SNAP_Y(LV_PROPERTY_OBJ_START + ((int) 60 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_X(LV_PROPERTY_OBJ_START + ((int) 61 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_Y(LV_PROPERTY_OBJ_START + ((int) 62 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_TOP(LV_PROPERTY_OBJ_START + ((int) 63 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_BOTTOM(LV_PROPERTY_OBJ_START + ((int) 64 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_LEFT(LV_PROPERTY_OBJ_START + ((int) 65 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_RIGHT(LV_PROPERTY_OBJ_START + ((int) 66 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_END(LV_PROPERTY_OBJ_START + ((int) 67 )) | (( 4 ) << 28 )
LV_PROPERTY_OBJ_EXT_DRAW_SIZE(LV_PROPERTY_OBJ_START + ((int) 68 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_EVENT_COUNT(LV_PROPERTY_OBJ_START + ((int) 69 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_SCREEN(LV_PROPERTY_OBJ_START + ((int) 70 )) | (( 8 ) << 28 )
LV_PROPERTY_OBJ_DISPLAY(LV_PROPERTY_OBJ_START + ((int) 71 )) | (( 5 ) << 28 )
LV_PROPERTY_OBJ_CHILD_COUNT(LV_PROPERTY_OBJ_START + ((int) 72 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_INDEX(LV_PROPERTY_OBJ_START + ((int) 73 )) | (( 1 ) << 28 )
LV_PROPERTY_OBJ_HIDDEN(LV_PROPERTY_OBJ_START + ((int) 74 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_CLICKABLE(LV_PROPERTY_OBJ_START + ((int) 75 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_CLICK_FOCUSABLE(LV_PROPERTY_OBJ_START + ((int) 76 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_CHECKABLE(LV_PROPERTY_OBJ_START + ((int) 77 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLLABLE(LV_PROPERTY_OBJ_START + ((int) 78 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_ELASTIC(LV_PROPERTY_OBJ_START + ((int) 79 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_MOMENTUM(LV_PROPERTY_OBJ_START + ((int) 80 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_ONE(LV_PROPERTY_OBJ_START + ((int) 81 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_CHAIN_HOR(LV_PROPERTY_OBJ_START + ((int) 82 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_CHAIN_VER(LV_PROPERTY_OBJ_START + ((int) 83 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_ON_FOCUS(LV_PROPERTY_OBJ_START + ((int) 84 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SCROLL_WITH_ARROW(LV_PROPERTY_OBJ_START + ((int) 85 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SNAPPABLE(LV_PROPERTY_OBJ_START + ((int) 86 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_PRESS_LOCK(LV_PROPERTY_OBJ_START + ((int) 87 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_EVENT_BUBBLE(LV_PROPERTY_OBJ_START + ((int) 88 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_GESTURE_BUBBLE(LV_PROPERTY_OBJ_START + ((int) 89 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_ADV_HITTEST(LV_PROPERTY_OBJ_START + ((int) 90 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_IGNORE_LAYOUT(LV_PROPERTY_OBJ_START + ((int) 91 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_FLOATING(LV_PROPERTY_OBJ_START + ((int) 92 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_SEND_DRAW_TASK_EVENTS(LV_PROPERTY_OBJ_START + ((int) 93 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_OVERFLOW_VISIBLE(LV_PROPERTY_OBJ_START + ((int) 94 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_EVENT_TRICKLE(LV_PROPERTY_OBJ_START + ((int) 95 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_STATE_TRICKLE(LV_PROPERTY_OBJ_START + ((int) 96 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_FLEX_IN_NEW_TRACK(LV_PROPERTY_OBJ_START + ((int) 97 )) | (( 11 ) << 28 )
LV_PROPERTY_OBJ_NAME(LV_PROPERTY_OBJ_START + ((int) 98 )) | (( 7 ) << 28 )
LV_PROPERTY_OBJ_END

Typedefs

lv_delete_cb_t

 
typedef void(* lv_delete_cb_t) (void *user_data)
Used by 1 function
  • lv_obj_add_delete_cb — param cb

Macros

LV_ASSERT_OBJ

 
#define LV_ASSERT_OBJ(obj_p, obj_class) \
    do { \
            LV_DEPRECATED_MACRO_WARN("LV_ASSERT_OBJ is deprecated. Use LV_CHECK_OBJ instead."); \
            LV_ASSERT_INTERNAL(obj_p != NULL, ""); \
            LV_ASSERT_INTERNAL(lv_obj_has_class(obj_p, obj_class) == true, ""); \
            LV_ASSERT_INTERNAL(lv_obj_is_in_widget_tree(obj_p) == true, ""); \
        } while(0)

> Deprecated: Use LV_CHECK_OBJ(obj, cls, return) instead. LV_ASSERT_OBJ aborts on failure; LV_CHECK_OBJ logs a warning and executes the supplied action, which is safer in production.

LV_TRACE_OBJ_CREATE

 
#define LV_TRACE_OBJ_CREATE(...) \
    LV_LOG_TRACE(__VA_ARGS__)

Variables

lv_obj_class

 
const lv_obj_class_t lv_obj_class

Make the base object's class publicly available.

Dependencies

Last updated on

On this page

Functionslv_obj_set_flaglv_obj_set_hiddenlv_obj_set_clickablelv_obj_set_click_focusablelv_obj_set_checkablelv_obj_set_scrollablelv_obj_set_scroll_elasticlv_obj_set_scroll_momentumlv_obj_set_scroll_onelv_obj_set_scroll_chainlv_obj_set_scroll_chain_horlv_obj_set_scroll_chain_verlv_obj_set_scroll_on_focuslv_obj_set_scroll_with_arrowlv_obj_set_snappablelv_obj_set_press_locklv_obj_set_event_bubblelv_obj_set_gesture_bubblelv_obj_set_adv_hittestlv_obj_set_ignore_layoutlv_obj_set_floatinglv_obj_set_send_draw_task_eventslv_obj_set_overflow_visiblelv_obj_set_event_tricklelv_obj_set_state_tricklelv_obj_set_radio_buttonlv_obj_set_flex_in_new_tracklv_obj_set_statelv_obj_set_altlv_obj_set_checkedlv_obj_set_focusedlv_obj_set_focus_keylv_obj_set_editedlv_obj_set_hoveredlv_obj_set_pressedlv_obj_set_scrolledlv_obj_set_disabledlv_obj_set_state_user_1lv_obj_set_state_user_2lv_obj_set_state_user_3lv_obj_set_state_user_4lv_obj_set_user_datalv_obj_set_user_flaglv_obj_set_idlv_obj_get_statelv_obj_get_grouplv_obj_get_user_datalv_obj_get_user_flaglv_obj_get_classlv_obj_get_idlv_obj_createlv_obj_add_flaglv_obj_remove_flaglv_obj_add_statelv_obj_remove_statelv_obj_has_flaglv_obj_has_flag_anylv_obj_is_hiddenlv_obj_is_clickablelv_obj_is_click_focusablelv_obj_is_checkablelv_obj_is_scrollablelv_obj_is_scroll_elasticlv_obj_is_scroll_momentumlv_obj_is_scroll_onelv_obj_is_scroll_chain_horlv_obj_is_scroll_chain_verlv_obj_is_scroll_on_focuslv_obj_is_scroll_with_arrowlv_obj_is_snappablelv_obj_is_press_locklv_obj_is_event_bubblelv_obj_is_gesture_bubblelv_obj_is_adv_hittestlv_obj_is_ignore_layoutlv_obj_is_floatinglv_obj_is_send_draw_task_eventslv_obj_is_overflow_visiblelv_obj_is_event_tricklelv_obj_is_state_tricklelv_obj_is_radio_buttonlv_obj_is_flex_in_new_tracklv_obj_has_statelv_obj_is_altlv_obj_is_checkedlv_obj_is_focusedlv_obj_is_focus_keylv_obj_is_editedlv_obj_is_hoveredlv_obj_is_pressedlv_obj_is_scrolledlv_obj_is_disabledlv_obj_is_state_user_1lv_obj_is_state_user_2lv_obj_is_state_user_3lv_obj_is_state_user_4lv_obj_check_typelv_obj_has_classlv_obj_is_in_widget_treelv_obj_null_on_deletelv_obj_add_delete_cblv_obj_remove_delete_cblv_obj_add_screen_load_eventlv_obj_add_screen_create_eventlv_obj_add_play_timeline_eventlv_obj_find_by_idlv_obj_assign_idlv_obj_free_idlv_obj_id_comparelv_obj_stringify_idlv_objid_builtin_destroyEnumslv_obj_flag_t_lv_signed_prop_id_tTypedefslv_delete_cb_tMacrosLV_ASSERT_OBJLV_TRACE_OBJ_CREATEVariableslv_obj_classDependencies