mikroSDK Reference Manual
lv_obj_tree.h
1
6#ifndef LV_OBJ_TREE_H
7#define LV_OBJ_TREE_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include <stddef.h>
17#include <stdbool.h>
18
19/*********************
20 * DEFINES
21 *********************/
22
23
24/**********************
25 * TYPEDEFS
26 **********************/
27
28struct _lv_obj_t;
29struct _lv_obj_class_t;
30
31typedef enum {
32 LV_OBJ_TREE_WALK_NEXT,
33 LV_OBJ_TREE_WALK_SKIP_CHILDREN,
34 LV_OBJ_TREE_WALK_END,
35} lv_obj_tree_walk_res_t;
36
37typedef lv_obj_tree_walk_res_t (*lv_obj_tree_walk_cb_t)(struct _lv_obj_t *, void *);
38
39/**********************
40 * GLOBAL PROTOTYPES
41 **********************/
42
49void lv_obj_del(struct _lv_obj_t * obj);
50
57void lv_obj_clean(struct _lv_obj_t * obj);
58
64void lv_obj_del_delayed(struct _lv_obj_t * obj, uint32_t delay_ms);
65
70void lv_obj_del_anim_ready_cb(lv_anim_t * a);
71
78void lv_obj_del_async(struct _lv_obj_t * obj);
79
86void lv_obj_set_parent(struct _lv_obj_t * obj, struct _lv_obj_t * parent);
87
94void lv_obj_swap(struct _lv_obj_t * obj1, struct _lv_obj_t * obj2);
95
104void lv_obj_move_to_index(struct _lv_obj_t * obj, int32_t index);
105
111struct _lv_obj_t * lv_obj_get_screen(const struct _lv_obj_t * obj);
112
118lv_disp_t * lv_obj_get_disp(const struct _lv_obj_t * obj);
119
125struct _lv_obj_t * lv_obj_get_parent(const struct _lv_obj_t * obj);
126
138struct _lv_obj_t * lv_obj_get_child(const struct _lv_obj_t * obj, int32_t id);
139
145uint32_t lv_obj_get_child_cnt(const struct _lv_obj_t * obj);
146
153uint32_t lv_obj_get_index(const struct _lv_obj_t * obj);
154
161void lv_obj_tree_walk(struct _lv_obj_t * start_obj, lv_obj_tree_walk_cb_t cb, void * user_data);
162
163/**********************
164 * MACROS
165 **********************/
166
167
168#ifdef __cplusplus
169} /*extern "C"*/
170#endif
171
172#endif /*LV_OBJ_TREE_H*/
Definition lv_anim.h:73
Definition lv_hal_disp.h:158
Definition lv_obj_class.h:49
Definition lv_obj.h:174