lv_tileview.h
Functions
-
lv_obj_t *lv_tileview_create(lv_obj_t *parent)
Create a tileview object
- Parameters:
parent – pointer to an object, it will be the parent of the new tileview
- Returns:
pointer to the created tileview
-
lv_obj_t *lv_tileview_add_tile(lv_obj_t *tv, uint8_t col_id, uint8_t row_id, lv_dir_t dir)
Add a tile to the tileview
- Parameters:
tv – pointer to the tileview object
col_id – column id of the tile
row_id – row id of the tile
dir – direction to move to the next tile
- Returns:
pointer to the added tile object
-
void lv_tileview_set_tile(lv_obj_t *tv, lv_obj_t *tile_obj, lv_anim_enable_t anim_en)
Set the active tile in the tileview.
- Parameters:
parent – pointer to the tileview object
tile_obj – pointer to the tile object to be set as active
anim_en – animation enable flag (LV_ANIM_ON or LV_ANIM_OFF)
-
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)
Set the active tile by index in the tileview
- Parameters:
tv – pointer to the tileview object
col_id – column id of the tile to be set as active
row_id – row id of the tile to be set as active
anim_en – animation enable flag (LV_ANIM_ON or LV_ANIM_OFF)