mikroSDK Reference Manual
lv_tileview.h
Go to the documentation of this file.
1
6#ifndef LV_TILEVIEW_H
7#define LV_TILEVIEW_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
17
18#if LV_USE_TILEVIEW
19
20/*********************
21 * DEFINES
22 *********************/
23
24/**********************
25 * TYPEDEFS
26 **********************/
27typedef struct {
28 lv_obj_t obj;
29 lv_obj_t * tile_act;
30} lv_tileview_t;
31
32typedef struct {
33 lv_obj_t obj;
34 lv_dir_t dir;
35} lv_tileview_tile_t;
36
37extern const lv_obj_class_t lv_tileview_class;
38extern const lv_obj_class_t lv_tileview_tile_class;
39
40/**********************
41 * GLOBAL PROTOTYPES
42 **********************/
43
49lv_obj_t * lv_tileview_create(lv_obj_t * parent);
50
51lv_obj_t * lv_tileview_add_tile(lv_obj_t * tv, uint8_t col_id, uint8_t row_id, lv_dir_t dir);
52
53void lv_obj_set_tile(lv_obj_t * tv, lv_obj_t * tile_obj, lv_anim_enable_t anim_en);
54void lv_obj_set_tile_id(lv_obj_t * tv, uint32_t col_id, uint32_t row_id, lv_anim_enable_t anim_en);
55
56lv_obj_t * lv_tileview_get_tile_act(lv_obj_t * obj);
57
58/*=====================
59 * Other functions
60 *====================*/
61
62/**********************
63 * MACROS
64 **********************/
65
66#endif /*LV_USE_TILEVIEW*/
67
68#ifdef __cplusplus
69} /*extern "C"*/
70#endif
71
72#endif /*LV_TILEVIEW_H*/
lv_anim_enable_t
Definition lv_anim.h:37
Definition lv_obj_class.h:49
Definition lv_obj.h:174