mikroSDK Reference Manual
lv_obj_draw.h
Go to the documentation of this file.
1
6#ifndef LV_OBJ_DRAW_H
7#define LV_OBJ_DRAW_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../draw/lv_draw.h"
17
18/*********************
19 * DEFINES
20 *********************/
21
22/**********************
23 * TYPEDEFS
24 **********************/
25
26struct _lv_obj_t;
27struct _lv_obj_class_t;
28
30typedef enum {
31 LV_COVER_RES_COVER = 0,
32 LV_COVER_RES_NOT_COVER = 1,
33 LV_COVER_RES_MASKED = 2,
35
36typedef enum {
37 LV_LAYER_TYPE_NONE,
38 LV_LAYER_TYPE_SIMPLE,
39 LV_LAYER_TYPE_TRANSFORM,
40} lv_layer_type_t;
41
68
69/**********************
70 * GLOBAL PROTOTYPES
71 **********************/
72
83void lv_obj_init_draw_rect_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc);
84
93void lv_obj_init_draw_label_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_label_dsc_t * draw_dsc);
94
102void lv_obj_init_draw_img_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_img_dsc_t * draw_dsc);
103
104
112void lv_obj_init_draw_line_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_line_dsc_t * draw_dsc);
113
121void lv_obj_init_draw_arc_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_arc_dsc_t * draw_dsc);
122
129lv_coord_t lv_obj_calculate_ext_draw_size(struct _lv_obj_t * obj, uint32_t part);
130
137
145bool lv_obj_draw_part_check_type(lv_obj_draw_part_dsc_t * dsc, const struct _lv_obj_class_t * class_p, uint32_t type);
146
153
159lv_coord_t _lv_obj_get_ext_draw_size(const struct _lv_obj_t * obj);
160
161
162lv_layer_type_t _lv_obj_get_layer_type(const struct _lv_obj_t * obj);
163
164/**********************
165 * MACROS
166 **********************/
167
168#ifdef __cplusplus
169} /*extern "C"*/
170#endif
171
172#endif /*LV_OBJ_DRAW_H*/
lv_coord_t lv_obj_calculate_ext_draw_size(struct _lv_obj_t *obj, uint32_t part)
void lv_obj_init_draw_line_dsc(struct _lv_obj_t *obj, uint32_t part, lv_draw_line_dsc_t *draw_dsc)
void lv_obj_refresh_ext_draw_size(struct _lv_obj_t *obj)
void lv_obj_draw_dsc_init(lv_obj_draw_part_dsc_t *dsc, lv_draw_ctx_t *draw_ctx)
void lv_obj_init_draw_arc_dsc(struct _lv_obj_t *obj, uint32_t part, lv_draw_arc_dsc_t *draw_dsc)
void lv_obj_init_draw_rect_dsc(struct _lv_obj_t *obj, uint32_t part, lv_draw_rect_dsc_t *draw_dsc)
void lv_obj_init_draw_img_dsc(struct _lv_obj_t *obj, uint32_t part, lv_draw_img_dsc_t *draw_dsc)
lv_cover_res_t
Definition lv_obj_draw.h:30
void lv_obj_init_draw_label_dsc(struct _lv_obj_t *obj, uint32_t part, lv_draw_label_dsc_t *draw_dsc)
bool lv_obj_draw_part_check_type(lv_obj_draw_part_dsc_t *dsc, const struct _lv_obj_class_t *class_p, uint32_t type)
lv_coord_t _lv_obj_get_ext_draw_size(const struct _lv_obj_t *obj)
Definition lv_draw.h:59
Definition lv_obj_class.h:49
Definition lv_obj.h:174
Definition lv_area.h:43
Definition lv_draw_arc.h:28
Definition lv_draw_img.h:32
Definition lv_draw_label.h:30
Definition lv_draw_line.h:28
Definition lv_draw_rect.h:32
Definition lv_obj_draw.h:42
lv_draw_label_dsc_t * label_dsc
Definition lv_obj_draw.h:50
uint32_t type
Definition lv_obj_draw.h:45
lv_draw_img_dsc_t * img_dsc
Definition lv_obj_draw.h:54
int32_t value
Definition lv_obj_draw.h:65
const struct _lv_obj_class_t * class_p
Definition lv_obj_draw.h:44
lv_draw_ctx_t * draw_ctx
Definition lv_obj_draw.h:43
uint32_t id
Definition lv_obj_draw.h:63
const lv_point_t * p2
Definition lv_obj_draw.h:59
lv_coord_t radius
Definition lv_obj_draw.h:64
const void * sub_part_ptr
Definition lv_obj_draw.h:66
lv_draw_line_dsc_t * line_dsc
Definition lv_obj_draw.h:52
const lv_point_t * p1
Definition lv_obj_draw.h:58
lv_draw_arc_dsc_t * arc_dsc
Definition lv_obj_draw.h:56
char * text
Definition lv_obj_draw.h:60
lv_draw_rect_dsc_t * rect_dsc
Definition lv_obj_draw.h:48
lv_area_t * draw_area
Definition lv_obj_draw.h:46
uint32_t text_length
Definition lv_obj_draw.h:61
uint32_t part
Definition lv_obj_draw.h:62
Definition lv_area.h:37