lv_obj_class.h
API reference for lv_obj_class.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_obj_class_private.h
Summary
Functions
core/lv_obj_class.h:78function
lv_obj_set_external_data
Associates an array of external data pointers with an LVGL object.
Associates custom user data with an LVGL object and specifies a destructor function that will be automatically invoked when the object is deleted to properly clean up the associated resources.
void lv_obj_set_external_data(lv_obj_t *obj, void *data, void(*free_cb)(void *data))| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Target LVGL object |
data | void * | User-defined data pointer to associate with a object |
free_cb | void(*)(void *data) | Cleanup function called for each non-NULL data pointer during object deletion. Receives single data pointer as parameter. NULL means no automatic cleanup. |
Enums
lv_obj_class_editable_t
| Name | Description |
|---|---|
LV_OBJ_CLASS_EDITABLE_INHERIT | Check the base class. Must have 0 value to let zero initialized class inherit |
LV_OBJ_CLASS_EDITABLE_TRUE | |
LV_OBJ_CLASS_EDITABLE_FALSE |
lv_obj_class_group_def_t
| Name | Description |
|---|---|
LV_OBJ_CLASS_GROUP_DEF_INHERIT | Check the base class. Must have 0 value to let zero initialized class inherit |
LV_OBJ_CLASS_GROUP_DEF_TRUE | |
LV_OBJ_CLASS_GROUP_DEF_FALSE |
lv_obj_class_theme_inheritable_t
| Name | Description |
|---|---|
LV_OBJ_CLASS_THEME_INHERITABLE_FALSE | Do not inherit theme from base class. |
LV_OBJ_CLASS_THEME_INHERITABLE_TRUE |
Typedefs
core/lv_obj_class.h:45typedef
lv_obj_class_event_cb_t
typedef void(* lv_obj_class_event_cb_t) (lv_obj_class_t *class_p, lv_event_t *e)Dependencies
Indirect dependencies
lv_anim.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_draw_buf.hlv_ext_data.hlv_flex.hlv_font.hlv_grad.hlv_grid.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_mem.hlv_obj_property_names.hlv_obj_style.hlv_obj_style_gen.hlv_palette.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.h
How is this guide?
Last updated on