Lines Matching refs:part

39 void lv_obj_init_draw_rect_dsc(lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc)  in lv_obj_init_draw_rect_dsc()  argument
41 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_rect_dsc()
42 if(part != LV_PART_MAIN) { in lv_obj_init_draw_rect_dsc()
54 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_rect_dsc()
56 draw_dsc->radius = lv_obj_get_style_radius(obj, part); in lv_obj_init_draw_rect_dsc()
59 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
61 draw_dsc->bg_color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
62 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc()
67 draw_dsc->bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, part); in lv_obj_init_draw_rect_dsc()
69 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
70 … draw_dsc->bg_grad.stops[1].color = lv_obj_get_style_bg_grad_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
71 draw_dsc->bg_grad.stops[0].frac = lv_obj_get_style_bg_main_stop(obj, part); in lv_obj_init_draw_rect_dsc()
72 draw_dsc->bg_grad.stops[1].frac = lv_obj_get_style_bg_grad_stop(obj, part); in lv_obj_init_draw_rect_dsc()
74 draw_dsc->bg_grad.dither = lv_obj_get_style_bg_dither_mode(obj, part); in lv_obj_init_draw_rect_dsc()
79 draw_dsc->border_width = lv_obj_get_style_border_width(obj, part); in lv_obj_init_draw_rect_dsc()
82 draw_dsc->border_opa = lv_obj_get_style_border_opa(obj, part); in lv_obj_init_draw_rect_dsc()
84 draw_dsc->border_side = lv_obj_get_style_border_side(obj, part); in lv_obj_init_draw_rect_dsc()
85 draw_dsc->border_color = lv_obj_get_style_border_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
90 draw_dsc->outline_width = lv_obj_get_style_outline_width(obj, part); in lv_obj_init_draw_rect_dsc()
93 draw_dsc->outline_opa = lv_obj_get_style_outline_opa(obj, part); in lv_obj_init_draw_rect_dsc()
95 draw_dsc->outline_pad = lv_obj_get_style_outline_pad(obj, part); in lv_obj_init_draw_rect_dsc()
96 draw_dsc->outline_color = lv_obj_get_style_outline_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
102 draw_dsc->bg_img_src = lv_obj_get_style_bg_img_src(obj, part); in lv_obj_init_draw_rect_dsc()
104 draw_dsc->bg_img_opa = lv_obj_get_style_bg_img_opa(obj, part); in lv_obj_init_draw_rect_dsc()
107 draw_dsc->bg_img_symbol_font = lv_obj_get_style_text_font(obj, part); in lv_obj_init_draw_rect_dsc()
108 draw_dsc->bg_img_recolor = lv_obj_get_style_text_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
111 draw_dsc->bg_img_recolor = lv_obj_get_style_bg_img_recolor_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
112 draw_dsc->bg_img_recolor_opa = lv_obj_get_style_bg_img_recolor_opa(obj, part); in lv_obj_init_draw_rect_dsc()
113 draw_dsc->bg_img_tiled = lv_obj_get_style_bg_img_tiled(obj, part); in lv_obj_init_draw_rect_dsc()
120 draw_dsc->shadow_width = lv_obj_get_style_shadow_width(obj, part); in lv_obj_init_draw_rect_dsc()
123 draw_dsc->shadow_opa = lv_obj_get_style_shadow_opa(obj, part); in lv_obj_init_draw_rect_dsc()
125 draw_dsc->shadow_ofs_x = lv_obj_get_style_shadow_ofs_x(obj, part); in lv_obj_init_draw_rect_dsc()
126 draw_dsc->shadow_ofs_y = lv_obj_get_style_shadow_ofs_y(obj, part); in lv_obj_init_draw_rect_dsc()
127 draw_dsc->shadow_spread = lv_obj_get_style_shadow_spread(obj, part); in lv_obj_init_draw_rect_dsc()
128 draw_dsc->shadow_color = lv_obj_get_style_shadow_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
136 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
138 draw_dsc->bg_color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
142 draw_dsc->border_width = lv_obj_get_style_border_width(obj, part); in lv_obj_init_draw_rect_dsc()
145 draw_dsc->border_opa = lv_obj_get_style_border_opa(obj, part); in lv_obj_init_draw_rect_dsc()
147 draw_dsc->border_color = lv_obj_get_style_border_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
148 draw_dsc->border_side = lv_obj_get_style_border_side(obj, part); in lv_obj_init_draw_rect_dsc()
153 draw_dsc->outline_width = lv_obj_get_style_outline_width(obj, part); in lv_obj_init_draw_rect_dsc()
156 draw_dsc->outline_opa = lv_obj_get_style_outline_opa(obj, part); in lv_obj_init_draw_rect_dsc()
158 draw_dsc->outline_pad = lv_obj_get_style_outline_pad(obj, part); in lv_obj_init_draw_rect_dsc()
159 draw_dsc->outline_color = lv_obj_get_style_outline_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
165 draw_dsc->bg_img_src = lv_obj_get_style_bg_img_src(obj, part); in lv_obj_init_draw_rect_dsc()
167 draw_dsc->bg_img_opa = lv_obj_get_style_bg_img_opa(obj, part); in lv_obj_init_draw_rect_dsc()
170 draw_dsc->bg_img_symbol_font = lv_obj_get_style_text_font(obj, part); in lv_obj_init_draw_rect_dsc()
171 draw_dsc->bg_img_recolor = lv_obj_get_style_text_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
174 draw_dsc->bg_img_recolor = lv_obj_get_style_bg_img_recolor_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
175 draw_dsc->bg_img_recolor_opa = lv_obj_get_style_bg_img_recolor_opa(obj, part); in lv_obj_init_draw_rect_dsc()
176 draw_dsc->bg_img_tiled = lv_obj_get_style_bg_img_tiled(obj, part); in lv_obj_init_draw_rect_dsc()
191 void lv_obj_init_draw_label_dsc(lv_obj_t * obj, uint32_t part, lv_draw_label_dsc_t * draw_dsc) in lv_obj_init_draw_label_dsc() argument
193 draw_dsc->opa = lv_obj_get_style_text_opa(obj, part); in lv_obj_init_draw_label_dsc()
196 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_label_dsc()
206 draw_dsc->color = lv_obj_get_style_text_color_filtered(obj, part); in lv_obj_init_draw_label_dsc()
207 draw_dsc->letter_space = lv_obj_get_style_text_letter_space(obj, part); in lv_obj_init_draw_label_dsc()
208 draw_dsc->line_space = lv_obj_get_style_text_line_space(obj, part); in lv_obj_init_draw_label_dsc()
209 draw_dsc->decor = lv_obj_get_style_text_decor(obj, part); in lv_obj_init_draw_label_dsc()
211 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_label_dsc()
214 draw_dsc->font = lv_obj_get_style_text_font(obj, part); in lv_obj_init_draw_label_dsc()
220 draw_dsc->align = lv_obj_get_style_text_align(obj, part); in lv_obj_init_draw_label_dsc()
223 void lv_obj_init_draw_img_dsc(lv_obj_t * obj, uint32_t part, lv_draw_img_dsc_t * draw_dsc) in lv_obj_init_draw_img_dsc() argument
225 draw_dsc->opa = lv_obj_get_style_img_opa(obj, part); in lv_obj_init_draw_img_dsc()
228 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_img_dsc()
243 draw_dsc->recolor_opa = lv_obj_get_style_img_recolor_opa(obj, part); in lv_obj_init_draw_img_dsc()
245 draw_dsc->recolor = lv_obj_get_style_img_recolor_filtered(obj, part); in lv_obj_init_draw_img_dsc()
248 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_img_dsc()
252 void lv_obj_init_draw_line_dsc(lv_obj_t * obj, uint32_t part, lv_draw_line_dsc_t * draw_dsc) in lv_obj_init_draw_line_dsc() argument
254 draw_dsc->opa = lv_obj_get_style_line_opa(obj, part); in lv_obj_init_draw_line_dsc()
257 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_line_dsc()
267 draw_dsc->width = lv_obj_get_style_line_width(obj, part); in lv_obj_init_draw_line_dsc()
270 draw_dsc->color = lv_obj_get_style_line_color_filtered(obj, part); in lv_obj_init_draw_line_dsc()
272 draw_dsc->dash_width = lv_obj_get_style_line_dash_width(obj, part); in lv_obj_init_draw_line_dsc()
274 draw_dsc->dash_gap = lv_obj_get_style_line_dash_gap(obj, part); in lv_obj_init_draw_line_dsc()
277 draw_dsc->round_start = lv_obj_get_style_line_rounded(obj, part); in lv_obj_init_draw_line_dsc()
281 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_line_dsc()
285 void lv_obj_init_draw_arc_dsc(lv_obj_t * obj, uint32_t part, lv_draw_arc_dsc_t * draw_dsc) in lv_obj_init_draw_arc_dsc() argument
287 draw_dsc->width = lv_obj_get_style_arc_width(obj, part); in lv_obj_init_draw_arc_dsc()
290 draw_dsc->opa = lv_obj_get_style_arc_opa(obj, part); in lv_obj_init_draw_arc_dsc()
293 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_arc_dsc()
303 draw_dsc->color = lv_obj_get_style_arc_color_filtered(obj, part); in lv_obj_init_draw_arc_dsc()
304 draw_dsc->img_src = lv_obj_get_style_arc_img_src(obj, part); in lv_obj_init_draw_arc_dsc()
306 draw_dsc->rounded = lv_obj_get_style_arc_rounded(obj, part); in lv_obj_init_draw_arc_dsc()
309 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_arc_dsc()
313 lv_coord_t lv_obj_calculate_ext_draw_size(lv_obj_t * obj, uint32_t part) in lv_obj_calculate_ext_draw_size() argument
317 lv_coord_t sh_width = lv_obj_get_style_shadow_width(obj, part); in lv_obj_calculate_ext_draw_size()
319 lv_opa_t sh_opa = lv_obj_get_style_shadow_opa(obj, part); in lv_obj_calculate_ext_draw_size()
322 sh_width += lv_obj_get_style_shadow_spread(obj, part); in lv_obj_calculate_ext_draw_size()
323 lv_coord_t sh_ofs_x = lv_obj_get_style_shadow_ofs_x(obj, part); in lv_obj_calculate_ext_draw_size()
324 lv_coord_t sh_ofs_y = lv_obj_get_style_shadow_ofs_y(obj, part); in lv_obj_calculate_ext_draw_size()
330 lv_coord_t outline_width = lv_obj_get_style_outline_width(obj, part); in lv_obj_calculate_ext_draw_size()
332 lv_opa_t outline_opa = lv_obj_get_style_outline_opa(obj, part); in lv_obj_calculate_ext_draw_size()
334 lv_coord_t outline_pad = lv_obj_get_style_outline_pad(obj, part); in lv_obj_calculate_ext_draw_size()
339 lv_coord_t w = lv_obj_get_style_transform_width(obj, part); in lv_obj_calculate_ext_draw_size()
340 lv_coord_t h = lv_obj_get_style_transform_height(obj, part); in lv_obj_calculate_ext_draw_size()