lv_theme.h
API reference for lv_theme.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_theme_private.h
Summary
Functions
themes/lv_theme.h:65function
lv_theme_set_parent
Set a base theme for a theme. The styles from the base them will be added before the styles of the current theme. Arbitrary long chain of themes can be created by setting base themes.
void lv_theme_set_parent(lv_theme_t *theme, lv_theme_t *parent)| Name | Type | Description |
|---|---|---|
theme | lv_theme_t * | pointer to theme which base should be set |
parent | lv_theme_t * | pointer to the base theme |
themes/lv_theme.h:73function
lv_theme_set_apply_cb
Set an apply callback for a theme. The apply callback is used to add styles to different objects
void lv_theme_set_apply_cb(lv_theme_t *theme, lv_theme_apply_cb_t apply_cb)| Name | Type | Description |
|---|---|---|
theme | lv_theme_t * | pointer to theme which callback should be set |
apply_cb | lv_theme_apply_cb_t | pointer to the callback |
themes/lv_theme.h:129function
lv_theme_set_external_data
Attaches external user data and destructor callback to the theme.
Associates custom user data with an LVGL theme and specifies a destructor function that will be automatically invoked when the theme is deleted to properly clean up the associated resources.
void lv_theme_set_external_data(lv_theme_t *theme, void *data, void(*free_cb)(void *data))| Name | Type | Description |
|---|---|---|
theme | lv_theme_t * | Pointer to theme which callback should be set |
data | void * | User-defined data pointer to associate with the theme |
free_cb | void(*)(void *data) | Callback function for cleaning up ext_data when theme is deleted. Receives ext_data as parameter. NULL means no cleanup required. |
Typedefs
themes/lv_theme.h:26typedef
lv_theme_apply_cb_t
typedef void(* lv_theme_apply_cb_t) (lv_theme_t *, lv_obj_t *)Used by 1 function
lv_theme_set_apply_cb— paramapply_cb
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on