lv_tabview.h
API reference for lv_tabview.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_tabview_private.h
Summary
Functions
widgets/tabview/lv_tabview.h:61function
lv_tabview_set_tab_text
Change the name of the tab
void lv_tabview_set_tab_text(lv_obj_t *obj, uint32_t idx, const char *new_name)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a tabview widget |
idx | uint32_t | the index of the tab to rename |
new_name | const char * | the new name as a string |
widgets/tabview/lv_tabview.h:71function
lv_tabview_set_tab_translation_tag
Add a tab with a translation tag to the tabview.
lv_obj_t * lv_tabview_set_tab_translation_tag(lv_obj_t *obj, const char *tag)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a tabview widget |
tag | const char * | translation key used for the tab label; will be displayed on the tab bar |
Returns: lv_obj_t * — the widget where the content of the tab can be created
widgets/tabview/lv_tabview.h:81function
lv_tabview_set_active
Show a tab
void lv_tabview_set_active(lv_obj_t *obj, uint32_t idx, lv_anim_enable_t anim_en)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a tabview widget |
idx | uint32_t | the index of the tab to show |
anim_en | lv_anim_enable_t | LV_ANIM_ON/OFF |
widgets/tabview/lv_tabview.h:88function
lv_tabview_set_tab_bar_position
Set the position of the tab bar
void lv_tabview_set_tab_bar_position(lv_obj_t *obj, lv_dir_t dir)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a tabview widget |
dir | lv_dir_t | LV_DIR_TOP/BOTTOM/LEFT/RIGHT |
widgets/tabview/lv_tabview.h:96function
lv_tabview_set_tab_bar_size
Set the width or height of the tab bar
void lv_tabview_set_tab_bar_size(lv_obj_t *obj, int32_t size)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to tabview widget |
size | int32_t | size of the tab bar in pixels or percentage. will be used as width or height based on the position of the tab bar) |
Enums
_lv_property_tabview_id_t
| Name | Value |
|---|---|
LV_PROPERTY_TABVIEW_TAB_ACTIVE | (LV_PROPERTY_TABVIEW_START + ((int) 0 )) | (( 1 ) << 28 ) |
LV_PROPERTY_TABVIEW_TAB_BAR_POSITION | (LV_PROPERTY_TABVIEW_START + ((int) 1 )) | (( 1 ) << 28 ) |
LV_PROPERTY_TABVIEW_END |
Variables
widgets/tabview/lv_tabview.h:26variable
lv_tabview_class
const lv_obj_class_t lv_tabview_classDependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.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_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