lv_tileview.h
API reference for lv_tileview.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_tileview_private.h
Summary
Functions
public/widgets/lv_tileview.h:55function
lv_tileview_set_tile
Set the active tile in the tileview.
void lv_tileview_set_tile(lv_obj_t *obj, lv_obj_t *tile_obj, lv_anim_enable_t anim_en)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to the tileview object |
tile_obj | lv_obj_t * | pointer to the tile object to be set as active |
anim_en | lv_anim_enable_t | animation enable flag (LV_ANIM_ON or LV_ANIM_OFF) |
public/widgets/lv_tileview.h:64function
lv_tileview_set_tile_by_index
Set the active tile by index in the tileview
void lv_tileview_set_tile_by_index(lv_obj_t *tv, uint32_t col_id, uint32_t row_id, lv_anim_enable_t anim_en)| Name | Type | Description |
|---|---|---|
tv | lv_obj_t * | pointer to the tileview object |
col_id | uint32_t | column id of the tile to be set as active |
row_id | uint32_t | row id of the tile to be set as active |
anim_en | lv_anim_enable_t | animation enable flag (LV_ANIM_ON or LV_ANIM_OFF) |
public/widgets/lv_tileview.h:71function
lv_tileview_get_tile_active
Get the currently active tile in the tileview
lv_obj_t * lv_tileview_get_tile_active(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to the tileview object |
Returns: lv_obj_t * — pointer to the currently active tile object
public/widgets/lv_tileview.h:37function
lv_tileview_create
Create a tileview object
lv_obj_t * lv_tileview_create(lv_obj_t *parent)| Name | Type | Description |
|---|---|---|
parent | lv_obj_t * | pointer to a parent widget May be NULL.. When NULL, the widget is created as a screen on the default display. |
Returns: lv_obj_t * — pointer to the created tileview
public/widgets/lv_tileview.h:47function
lv_tileview_add_tile
Add a tile to the tileview
lv_obj_t * lv_tileview_add_tile(lv_obj_t *tv, uint8_t col_id, uint8_t row_id, lv_dir_t dir)| Name | Type | Description |
|---|---|---|
tv | lv_obj_t * | pointer to the tileview object |
col_id | uint8_t | column id of the tile |
row_id | uint8_t | row id of the tile |
dir | lv_dir_t | direction to move to the next tile |
Returns: lv_obj_t * — pointer to the added tile object
Variables
public/widgets/lv_tileview.h:24variable
lv_tileview_class
const lv_obj_class_t lv_tileview_classpublic/widgets/lv_tileview.h:25variable
lv_tileview_tile_class
const lv_obj_class_t lv_tileview_tile_classDependencies
Indirect dependencies
lv_anim.hlv_area.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.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_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.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_symbol_def.hlv_text.hlv_timer.hlv_types.h
Last updated on