Home
last modified time | relevance | path

Searched refs:clip_area (Results 1 – 25 of 53) sorted by relevance

123

/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_utils.h82 static inline void lv_vglite_set_scissor(const lv_area_t * clip_area);
179 static inline void lv_vglite_set_scissor(const lv_area_t * clip_area) in lv_vglite_set_scissor() argument
182 vg_lite_set_scissor((int32_t)clip_area->x1, (int32_t)clip_area->y1, in lv_vglite_set_scissor()
183 (int32_t)lv_area_get_width(clip_area), in lv_vglite_set_scissor()
184 (int32_t)lv_area_get_height(clip_area)); in lv_vglite_set_scissor()
Dlv_draw_vglite_line.c65 const lv_area_t * clip_area, const lv_draw_line_dsc_t * dsc) in lv_gpu_nxp_vglite_draw_line() argument
99 (vg_lite_float_t)clip_area->x1, (vg_lite_float_t)clip_area->y1, in lv_gpu_nxp_vglite_draw_line()
100 … ((vg_lite_float_t)clip_area->x2) + 1.0f, ((vg_lite_float_t)clip_area->y2) + 1.0f); in lv_gpu_nxp_vglite_draw_line()
122 lv_vglite_set_scissor(clip_area); in lv_gpu_nxp_vglite_draw_line()
Dlv_draw_vglite_rect.h69 lv_res_t lv_gpu_nxp_vglite_draw_bg(const lv_area_t * coords, const lv_area_t * clip_area,
84 …_res_t lv_gpu_nxp_vglite_draw_border_generic(const lv_area_t * coords, const lv_area_t * clip_area,
Dlv_draw_vglite_rect.c92 lv_res_t lv_gpu_nxp_vglite_draw_bg(const lv_area_t * coords, const lv_area_t * clip_area, in lv_gpu_nxp_vglite_draw_bg() argument
113 (vg_lite_float_t)clip_area->x1, (vg_lite_float_t)clip_area->y1, in lv_gpu_nxp_vglite_draw_bg()
114 … ((vg_lite_float_t)clip_area->x2) + 1.0f, ((vg_lite_float_t)clip_area->y2) + 1.0f); in lv_gpu_nxp_vglite_draw_bg()
169 lv_vglite_set_scissor(clip_area); in lv_gpu_nxp_vglite_draw_bg()
196 …_res_t lv_gpu_nxp_vglite_draw_border_generic(const lv_area_t * coords, const lv_area_t * clip_area, in lv_gpu_nxp_vglite_draw_border_generic() argument
234 (vg_lite_float_t)clip_area->x1, (vg_lite_float_t)clip_area->y1, in lv_gpu_nxp_vglite_draw_border_generic()
235 … ((vg_lite_float_t)clip_area->x2) + 1.0f, ((vg_lite_float_t)clip_area->y2) + 1.0f); in lv_gpu_nxp_vglite_draw_border_generic()
270 lv_vglite_set_scissor(clip_area); in lv_gpu_nxp_vglite_draw_border_generic()
Dlv_draw_vglite_line.h71 const lv_area_t * clip_area, const lv_draw_line_dsc_t * dsc);
Dlv_draw_vglite_arc.h71 const lv_area_t * clip_area, const lv_draw_arc_dsc_t * dsc);
Dlv_draw_vglite.c174 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) in lv_draw_vglite_blend()
239 lv_area_copy(&rel_clip_area, draw_ctx->clip_area); in lv_draw_vglite_img_decoded()
331 if(!_lv_area_intersect(&clipped_coords, &rel_clip_area, draw_ctx->clip_area)) in lv_draw_vglite_line()
416 lv_area_copy(&rel_clip_area, draw_ctx->clip_area); in lv_draw_vglite_bg()
471 lv_area_copy(&rel_clip_area, draw_ctx->clip_area); in lv_draw_vglite_border()
504 lv_area_copy(&rel_clip_area, draw_ctx->clip_area); in lv_draw_vglite_outline()
539 lv_area_copy(&rel_clip_area, draw_ctx->clip_area); in lv_draw_vglite_arc()
/lvgl-latest/src/draw/renesas/
Dlv_gpu_d2_draw_label.c120 int32_t col_start = pos->x >= draw_ctx->clip_area->x1 ? 0 : draw_ctx->clip_area->x1 - pos->x; in draw_letter_normal()
121 …int32_t col_end = pos->x + box_w <= draw_ctx->clip_area->x2 ? box_w : draw_ctx->clip_area->x2 - … in draw_letter_normal()
122 int32_t row_start = pos->y >= draw_ctx->clip_area->y1 ? 0 : draw_ctx->clip_area->y1 - pos->y; in draw_letter_normal()
123 …int32_t row_end = pos->y + box_h <= draw_ctx->clip_area->y2 ? box_h : draw_ctx->clip_area->y2 - … in draw_letter_normal()
267 if(gpos.x + g.box_w < draw_ctx->clip_area->x1 || in lv_draw_gpu_letter()
268 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_gpu_letter()
269 gpos.y + g.box_h < draw_ctx->clip_area->y1 || in lv_draw_gpu_letter()
270 gpos.y > draw_ctx->clip_area->y2) { in lv_draw_gpu_letter()
282 draw_letter_subpx(pos_x, pos_y, &g, clip_area, map_p, color, opa, blend_mode); in lv_draw_gpu_letter()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_arc.c142 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_arc()
192 draw_ctx->clip_area = &clip_area2; in lv_draw_sw_arc()
207 draw_ctx->clip_area = &clip_area2; in lv_draw_sw_arc()
212 draw_ctx->clip_area = clip_area_ori; in lv_draw_sw_arc()
232 const lv_area_t * clip_area_ori = q->draw_ctx->clip_area; in draw_quarter_0()
245 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
260 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
273 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
290 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
294 q->draw_ctx->clip_area = clip_area_ori; in draw_quarter_0()
[all …]
Dlv_draw_sw_letter.c135 if(gpos.x + g.box_w < draw_ctx->clip_area->x1 || in lv_draw_sw_letter()
136 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_sw_letter()
137 gpos.y + g.box_h < draw_ctx->clip_area->y1 || in lv_draw_sw_letter()
138 gpos.y > draw_ctx->clip_area->y2) { in lv_draw_sw_letter()
241 int32_t col_start = pos->x >= draw_ctx->clip_area->x1 ? 0 : draw_ctx->clip_area->x1 - pos->x; in draw_letter_normal()
242 …int32_t col_end = pos->x + box_w <= draw_ctx->clip_area->x2 ? box_w : draw_ctx->clip_area->x2 - … in draw_letter_normal()
243 int32_t row_start = pos->y >= draw_ctx->clip_area->y1 ? 0 : draw_ctx->clip_area->y1 - pos->y; in draw_letter_normal()
244 …int32_t row_end = pos->y + box_h <= draw_ctx->clip_area->y2 ? box_h : draw_ctx->clip_area->y2 - … in draw_letter_normal()
393 …int32_t col_start = pos->x >= draw_ctx->clip_area->x1 ? 0 : (draw_ctx->clip_area->x1 - pos->x) * 3; in draw_letter_subpx()
394 …int32_t col_end = pos->x + box_w / 3 <= draw_ctx->clip_area->x2 ? box_w : (draw_ctx->clip_area->… in draw_letter_subpx()
[all …]
Dlv_draw_sw_polygon.c88 lv_area_t clip_area; in lv_draw_sw_polygon() local
89 is_common = _lv_area_intersect(&clip_area, &poly_coords, draw_ctx->clip_area); in lv_draw_sw_polygon()
95 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_polygon()
96 draw_ctx->clip_area = &clip_area; in lv_draw_sw_polygon()
195 draw_ctx->clip_area = clip_area_ori; in lv_draw_sw_polygon()
Dlv_draw_sw_layer.c84 draw_ctx->clip_area = &layer_sw_ctx->base_draw.area_act; in lv_draw_sw_layer_create()
111 draw_ctx->clip_area = &layer_ctx->area_act; in lv_draw_sw_layer_adjust()
129 draw_ctx->clip_area = layer_ctx->original.clip_area; in lv_draw_sw_layer_blend()
Dlv_draw_sw_img.c51 lv_area_copy(&draw_area, draw_ctx->clip_area); in lv_draw_sw_img_decoded()
73 if(!_lv_area_intersect(&clipped_coords, coords, draw_ctx->clip_area)) return; in lv_draw_sw_img_decoded()
99 blend_area.x1 = draw_ctx->clip_area->x1; in lv_draw_sw_img_decoded()
100 blend_area.x2 = draw_ctx->clip_area->x2; in lv_draw_sw_img_decoded()
101 blend_area.y1 = draw_ctx->clip_area->y1; in lv_draw_sw_img_decoded()
102 blend_area.y2 = draw_ctx->clip_area->y2; in lv_draw_sw_img_decoded()
Dlv_draw_sw_line.c67 is_common = _lv_area_intersect(&clip_line, &clip_line, draw_ctx->clip_area); in lv_draw_sw_line()
69 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_line()
70 draw_ctx->clip_area = &clip_line; in lv_draw_sw_line()
104 draw_ctx->clip_area = clip_area_ori; in lv_draw_sw_line()
125 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_hor()
211 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_ver()
327 bool is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_skew()
/lvgl-latest/src/draw/
Dlv_draw_layer.c54 layer_ctx->original.clip_area = draw_ctx->clip_area; in lv_draw_layer_create()
83 draw_ctx->clip_area = layer_ctx->original.clip_area; in lv_draw_layer_destroy()
Dlv_draw_img.c289 union_ok = _lv_area_intersect(&clip_com, draw_ctx->clip_area, &map_area_rot);
296 const lv_area_t * clip_area_ori = draw_ctx->clip_area;
297 draw_ctx->clip_area = &clip_com;
299 draw_ctx->clip_area = clip_area_ori;
305 union_ok = _lv_area_intersect(&mask_com, draw_ctx->clip_area, coords);
317 const lv_area_t * clip_area_ori = draw_ctx->clip_area;
336 draw_ctx->clip_area = clip_area_ori;
340 draw_ctx->clip_area = &mask_line;
346 draw_ctx->clip_area = clip_area_ori;
Dlv_draw.h52 const lv_area_t * clip_area; member
73 const lv_area_t * clip_area; member
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_label.c59 const lv_area_t * clip_area = draw_ctx->clip_area; in lv_draw_sdl_draw_letter() local
109 if(!_lv_area_intersect(&draw_area, &letter_area, clip_area)) { in lv_draw_sdl_draw_letter()
140 lv_area_t t_letter = letter_area, t_clip = *clip_area, apply_area; in lv_draw_sdl_draw_letter()
141 …bool has_composite = lv_draw_sdl_composite_begin(ctx, &letter_area, clip_area, NULL, dsc->blend_mo… in lv_draw_sdl_draw_letter()
/lvgl-latest/src/widgets/
Dlv_canvas.c33 …id init_fake_disp(lv_obj_t * canvas, lv_disp_t * disp, lv_disp_drv_t * drv, lv_area_t * clip_area);
530 lv_area_t clip_area; in lv_canvas_draw_rect() local
531 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_rect()
574 lv_area_t clip_area; in lv_canvas_draw_text() local
575 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_text()
616 lv_area_t clip_area; in lv_canvas_draw_img() local
617 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_img()
653 lv_area_t clip_area; in lv_canvas_draw_line() local
654 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_line()
694 lv_area_t clip_area; in lv_canvas_draw_polygon() local
[all …]
Dlv_roller.c473 area_ok = _lv_area_intersect(&mask_sel, draw_ctx->clip_area, &sel_area); in draw_main()
512 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
513 draw_ctx->clip_area = &mask_sel; in draw_main()
515 draw_ctx->clip_area = clip_area_ori; in draw_main()
536 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_label()
538 if(!_lv_area_intersect(&roller_clip_area, draw_ctx->clip_area, &roller->coords)) return; in draw_label()
539 draw_ctx->clip_area = &roller_clip_area; in draw_label()
549 if(_lv_area_intersect(&clip2, draw_ctx->clip_area, &clip2)) { in draw_label()
550 const lv_area_t * clip_area_ori2 = draw_ctx->clip_area; in draw_label()
551 draw_ctx->clip_area = &clip2; in draw_label()
[all …]
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c765 bool mask_ret = _lv_area_intersect(&series_clip_area, &obj->coords, draw_ctx->clip_area); in draw_div_lines()
768 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_div_lines()
769 draw_ctx->clip_area = &series_clip_area; in draw_div_lines()
865 draw_ctx->clip_area = clip_area_ori; in draw_div_lines()
870 lv_area_t clip_area; in draw_series_line() local
871 if(_lv_area_intersect(&clip_area, &obj->coords, draw_ctx->clip_area) == false) return; in draw_series_line()
873 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_series_line()
874 draw_ctx->clip_area = &clip_area; in draw_series_line()
892 bool mask_ret = _lv_area_intersect(&series_clip_area, &obj->coords, draw_ctx->clip_area); in draw_series_line()
1034 draw_ctx->clip_area = clip_area_ori; in draw_series_line()
[all …]
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_4.py38 clip_area = lv.area_t.__cast__(e.get_param())
39 lv.draw_rect(a, clip_area, draw_rect_dsc)
/lvgl-latest/src/draw/arm2d/
Dlv_gpu_arm2d.c182 draw_ctx->clip_area)) return; \
381 .iX = coords->x1 - draw_ctx->clip_area->x1, \
382 .iY = coords->y1 - draw_ctx->clip_area->y1, \
517 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) { in lv_draw_arm2d_blend()
693 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_arm2d_blend()
902 lv_area_copy(&draw_area, draw_ctx->clip_area); in lv_draw_arm2d_img_decoded()
931 if(!_lv_area_intersect(&clipped_coords, coords, draw_ctx->clip_area)) return; in lv_draw_arm2d_img_decoded()
958 blend_area.x1 = draw_ctx->clip_area->x1; in lv_draw_arm2d_img_decoded()
959 blend_area.x2 = draw_ctx->clip_area->x2; in lv_draw_arm2d_img_decoded()
960 blend_area.y1 = draw_ctx->clip_area->y1; in lv_draw_arm2d_img_decoded()
[all …]
/lvgl-latest/src/extra/widgets/span/
Dlv_span.c771 lv_area_t clip_area; in lv_draw_span() local
772 if(!_lv_area_intersect(&clip_area, &coords, draw_ctx->clip_area)) return; in lv_draw_span()
773 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_span()
774 draw_ctx->clip_area = &clip_area; in lv_draw_span()
900 if(txt_pos.y + max_line_h < clip_area.y1) { in lv_draw_span()
953 if(pos.x > clip_area.x2) { in lv_draw_span()
961 if(pos.x + letter_w + pinfo->letter_space < clip_area.x1) { in lv_draw_span()
1024 if(is_end_line || txt_pos.y > clip_area.y2 + 1) { in lv_draw_span()
1025 draw_ctx->clip_area = clip_area_ori; in lv_draw_span()
1030 draw_ctx->clip_area = clip_area_ori; in lv_draw_span()
/lvgl-latest/src/extra/widgets/imgbtn/
Dlv_imgbtn.c276 comm_res = _lv_area_intersect(&clip_area_center, &clip_area_center, draw_ctx->clip_area); in draw_main()
281 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
282 draw_ctx->clip_area = &clip_area_center; in draw_main()
294 draw_ctx->clip_area = clip_area_ori; in draw_main()

123