Home
last modified time | relevance | path

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

12

/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_letter.c119 if(gpos.x + g.box_w < draw_ctx->clip_area->x1 || in lv_draw_sw_letter()
120 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_sw_letter()
121 gpos.y + g.box_h < draw_ctx->clip_area->y1 || in lv_draw_sw_letter()
122 gpos.y > draw_ctx->clip_area->y2) { in lv_draw_sw_letter()
207 int32_t col_start = pos->x >= draw_ctx->clip_area->x1 ? 0 : draw_ctx->clip_area->x1 - pos->x; in draw_letter_normal()
208 …int32_t col_end = pos->x + box_w <= draw_ctx->clip_area->x2 ? box_w : draw_ctx->clip_area->x2 - … in draw_letter_normal()
209 int32_t row_start = pos->y >= draw_ctx->clip_area->y1 ? 0 : draw_ctx->clip_area->y1 - pos->y; in draw_letter_normal()
210 …int32_t row_end = pos->y + box_h <= draw_ctx->clip_area->y2 ? box_h : draw_ctx->clip_area->y2 - … in draw_letter_normal()
359 …int32_t col_start = pos->x >= draw_ctx->clip_area->x1 ? 0 : (draw_ctx->clip_area->x1 - pos->x) * 3; in draw_letter_subpx()
360 …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_arc.c138 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_arc()
186 draw_ctx->clip_area = &clip_area2; in lv_draw_sw_arc()
201 draw_ctx->clip_area = &clip_area2; in lv_draw_sw_arc()
206 draw_ctx->clip_area = clip_area_ori; in lv_draw_sw_arc()
226 const lv_area_t * clip_area_ori = q->draw_ctx->clip_area; in draw_quarter_0()
239 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
254 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
267 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
284 q->draw_ctx->clip_area = &quarter_area; in draw_quarter_0()
288 q->draw_ctx->clip_area = clip_area_ori; in draw_quarter_0()
[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_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()
126 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_hor()
212 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_ver()
328 bool is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_skew()
Dlv_draw_sw_rect.c116 if(!_lv_area_intersect(&clipped_coords, &bg_coords, draw_ctx->clip_area)) return; in draw_bg()
456 if(!_lv_area_intersect(&draw_area, &shadow_area, draw_ctx->clip_area)) return; in draw_shadow()
545 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
588 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
628 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
676 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
731 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
788 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
827 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
872 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
[all …]
/lvgl-3.4.0/src/draw/
Dlv_draw_img.c269 union_ok = _lv_area_intersect(&clip_com, draw_ctx->clip_area, &map_area_rot); in decode_and_draw()
276 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in decode_and_draw()
277 draw_ctx->clip_area = &clip_com; in decode_and_draw()
279 draw_ctx->clip_area = clip_area_ori; in decode_and_draw()
285 union_ok = _lv_area_intersect(&mask_com, draw_ctx->clip_area, coords); in decode_and_draw()
297 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in decode_and_draw()
316 draw_ctx->clip_area = clip_area_ori; in decode_and_draw()
320 draw_ctx->clip_area = &mask_line; in decode_and_draw()
326 draw_ctx->clip_area = clip_area_ori; in decode_and_draw()
Dlv_draw.h58 const lv_area_t * clip_area; member
Dlv_draw_label.c101 bool clip_ok = _lv_area_intersect(&clipped_area, coords, draw_ctx->clip_area); in lv_draw_label()
157 while(pos.y + line_height_font < draw_ctx->clip_area->y1) { in lv_draw_label()
358 if(pos.y > draw_ctx->clip_area->y2) return; in lv_draw_label()
/lvgl-3.4.0/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
94 if(!_lv_area_intersect(&draw_area, &letter_area, clip_area)) { in lv_draw_sdl_draw_letter()
121 lv_area_t t_letter = letter_area, t_clip = *clip_area, apply_area; in lv_draw_sdl_draw_letter()
122 …bool has_mask = lv_draw_sdl_composite_begin(ctx, &letter_area, clip_area, NULL, dsc->blend_mode, &… in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_bg.c55 const lv_area_t * clip = draw_ctx->clip_area; in lv_draw_sdl_draw_bg()
Dlv_draw_sdl_polygon.c69 is_common = _lv_area_intersect(&draw_area, &poly_coords, draw_ctx->clip_area); in lv_draw_sdl_polygon()
/lvgl-3.4.0/src/widgets/
Dlv_roller.c474 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()
534 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_label()
536 if(!_lv_area_intersect(&roller_clip_area, draw_ctx->clip_area, &roller->coords)) return; in draw_label()
537 draw_ctx->clip_area = &roller_clip_area; in draw_label()
547 if(_lv_area_intersect(&clip2, draw_ctx->clip_area, &clip2)) { in draw_label()
548 const lv_area_t * clip_area_ori2 = draw_ctx->clip_area; in draw_label()
549 draw_ctx->clip_area = &clip2; in draw_label()
[all …]
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);
569 lv_area_t clip_area; in lv_canvas_draw_rect() local
570 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_rect()
613 lv_area_t clip_area; in lv_canvas_draw_text() local
614 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_text()
655 lv_area_t clip_area; in lv_canvas_draw_img() local
656 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_img()
692 lv_area_t clip_area; in lv_canvas_draw_line() local
693 init_fake_disp(canvas, &fake_disp, &driver, &clip_area); in lv_canvas_draw_line()
734 lv_area_t clip_area; in lv_canvas_draw_polygon() local
[all …]
Dlv_table.c594 lv_area_t clip_area; in draw_main() local
595 if(!_lv_area_intersect(&clip_area, &obj->coords, draw_ctx->clip_area)) return; in draw_main()
597 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
598 draw_ctx->clip_area = &clip_area; in draw_main()
654 if(cell_area.y1 > clip_area.y2) break; in draw_main()
689 if(cell_area.y2 < clip_area.y1) { in draw_main()
766 label_mask_ok = _lv_area_intersect(&label_clip_area, &clip_area, &cell_area); in draw_main()
768 draw_ctx->clip_area = &label_clip_area; in draw_main()
770 draw_ctx->clip_area = &clip_area; in draw_main()
781 draw_ctx->clip_area = clip_area_ori; in draw_main()
Dlv_img.c570 const lv_area_t * clip_area = lv_event_get_param(e); in draw_img() local
572 if(_lv_area_is_in(clip_area, &obj->coords, 0) == false) { in draw_img()
585 if(_lv_area_is_in(clip_area, &a, 0) == false) { in draw_img()
680 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_img()
682 if(!_lv_area_intersect(&img_clip_area, draw_ctx->clip_area, &img_clip_area)) return; in draw_img()
683 draw_ctx->clip_area = &img_clip_area; in draw_img()
699 draw_ctx->clip_area = clip_area_ori; in draw_img()
Dlv_btnmatrix.h52 const lv_area_t * clip_area);
Dlv_dropdown.c879 has_common = _lv_area_intersect(&clip_area_core, draw_ctx->clip_area, &dropdown->list->coords); in draw_list()
881 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_list()
882 draw_ctx->clip_area = &clip_area_core; in draw_list()
899 draw_ctx->clip_area = clip_area_ori; in draw_list()
976 area_ok = _lv_area_intersect(&mask_sel, draw_ctx->clip_area, &area_sel); in draw_box_label()
978 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_box_label()
979 draw_ctx->clip_area = &mask_sel; in draw_box_label()
981 draw_ctx->clip_area = clip_area_ori; in draw_box_label()
Dlv_label.c844 bool is_common = _lv_area_intersect(&txt_clip, &txt_coords, draw_ctx->clip_area); in draw_main()
853 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
854 draw_ctx->clip_area = &txt_clip; in draw_main()
856 draw_ctx->clip_area = clip_area_ori; in draw_main()
862 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
863 draw_ctx->clip_area = &txt_clip; in draw_main()
888 draw_ctx->clip_area = clip_area_ori; in draw_main()
/lvgl-3.4.0/src/extra/widgets/chart/
Dlv_chart.c766 bool mask_ret = _lv_area_intersect(&series_clip_area, &obj->coords, draw_ctx->clip_area); in draw_div_lines()
769 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_div_lines()
770 draw_ctx->clip_area = &series_clip_area; in draw_div_lines()
866 draw_ctx->clip_area = clip_area_ori; in draw_div_lines()
871 lv_area_t clip_area; in draw_series_line() local
872 if(_lv_area_intersect(&clip_area, &obj->coords, draw_ctx->clip_area) == false) return; in draw_series_line()
874 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_series_line()
875 draw_ctx->clip_area = &clip_area; in draw_series_line()
893 bool mask_ret = _lv_area_intersect(&series_clip_area, &obj->coords, draw_ctx->clip_area); in draw_series_line()
1035 draw_ctx->clip_area = clip_area_ori; in draw_series_line()
[all …]
/lvgl-3.4.0/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)
Dlv_example_chart_6.py77 lv.draw_rect(a, dsc.clip_area, draw_rect_dsc)
86 lv.draw_label(a, dsc.clip_area, draw_label_dsc, value_txt, None)
/lvgl-3.4.0/src/extra/widgets/span/
Dlv_span.c749 lv_area_t clip_area; in lv_draw_span() local
750 if(!_lv_area_intersect(&clip_area, &coords, draw_ctx->clip_area)) return; in lv_draw_span()
751 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_span()
752 draw_ctx->clip_area = &clip_area; in lv_draw_span()
880 if(txt_pos.y + max_line_h < clip_area.y1) { in lv_draw_span()
933 if(pos.x > clip_area.x2) { in lv_draw_span()
941 if(pos.x + letter_w + pinfo->letter_space < clip_area.x1) { in lv_draw_span()
1011 if(is_end_line || txt_pos.y > clip_area.y2 + 1) { in lv_draw_span()
1012 draw_ctx->clip_area = clip_area_ori; in lv_draw_span()
1017 draw_ctx->clip_area = clip_area_ori; in lv_draw_span()
/lvgl-3.4.0/src/extra/widgets/imgbtn/
Dlv_imgbtn.c271 comm_res = _lv_area_intersect(&clip_area_center, &clip_area_center, draw_ctx->clip_area); in draw_main()
276 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_main()
277 draw_ctx->clip_area = &clip_area_center; in draw_main()
289 draw_ctx->clip_area = clip_area_ori; in draw_main()
/lvgl-3.4.0/src/core/
Dlv_refr.c132 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_refr_obj()
142 draw_ctx->clip_area = &clip_coords_for_obj; in lv_refr_obj()
175 draw_ctx->clip_area = &clip_coords_for_children; in lv_refr_obj()
184 draw_ctx->clip_area = &clip_coords_for_obj; in lv_refr_obj()
191 draw_ctx->clip_area = clip_area_ori; in lv_refr_obj()
536 draw_ctx->clip_area = &disp_area; in lv_refr_area()
541 draw_ctx->clip_area = area_p; in lv_refr_area()
566 draw_ctx->clip_area = &sub_area; in lv_refr_area()
582 draw_ctx->clip_area = &sub_area; in lv_refr_area()
/lvgl-3.4.0/src/extra/others/snapshot/
Dlv_snapshot.c133 draw_ctx->clip_area = &snapshot_area; in lv_snapshot_take_to_buf()

12