Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 88) sorted by relevance

1234

/lvgl-latest/src/misc/
Dlv_area.c48 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2) in lv_area_set() argument
52 area_p->x2 = x2; in lv_area_set()
63 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width()
101 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()
109 area->x2 += w_extra; in lv_area_increase()
117 area->x2 += x_ofs; in lv_area_move()
134 res_p->x2 = LV_MIN(a1_p->x2, a2_p->x2); in _lv_area_intersect()
139 if((res_p->x1 > res_p->x2) || (res_p->y1 > res_p->y2)) { in _lv_area_intersect()
174 n.x2 = a1_p->x2; in _lv_area_diff()
184 n.x2 = a1_p->x2; in _lv_area_diff()
[all …]
Dlv_area.h46 lv_coord_t x2; member
103 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2);
114 dest->x2 = src->x2; in lv_area_copy()
125 return (lv_coord_t)(area_p->x2 - area_p->x1 + 1); in lv_area_get_width()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_rect.c108 bg_coords.x2 -= (dsc->border_side & LV_BORDER_SIDE_RIGHT) ? 1 : 0; in draw_bg()
159 blend_area.x2 = clipped_coords.x2; in draw_bg()
277 center_coords.x2 = bg_coords.x2; in draw_bg()
343 a.x2 = a.x1 + size.x - 1; in draw_bg_img()
370 area.x2 = area.x1 + header.w - 1; in draw_bg_img()
383 area.x2 = area.x1 + header.w - 1; in draw_bg_img()
384 for(; area.x1 <= coords->x2; area.x1 += header.w, area.x2 += header.w) { in draw_bg_img()
415 …area_inner.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : - (dsc->border_w… in draw_border()
442 core_area.x2 = coords->x2 + dsc->shadow_ofs_x + dsc->shadow_spread; in draw_shadow()
449 shadow_area.x2 = core_area.x2 + dsc->shadow_width / 2 + 1; in draw_shadow()
[all …]
Dlv_draw_sw_arc.c87 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sw_arc()
94 area_in.x2 -= dsc->width; in lv_draw_sw_arc()
184 round_area.x2 += center->x; in lv_draw_sw_arc()
200 round_area.x2 += center->x; in lv_draw_sw_arc()
238 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0()
256 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0()
265 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0()
285 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0()
305 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_1()
323 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_1()
[all …]
Dlv_draw_sw_letter.c136 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_sw_letter()
181 fill_area.x2 = pos->x + g->box_w - 1; 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()
268 fill_area.x2 = col_end + pos->x - 1; in draw_letter_normal()
394 …_t col_end = pos->x + box_w / 3 <= draw_ctx->clip_area->x2 ? box_w : (draw_ctx->clip_area->x2 - … in draw_letter_subpx()
409 map_area.x2 = col_end / 3 + pos->x - 1; in draw_letter_subpx()
413 if(map_area.x2 <= map_area.x1) return; in draw_letter_subpx()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_blend.c181 VLC_OP_LINE, dest_area->x2 + 1, dest_area->y1, in lv_gpu_nxp_vglite_fill()
182 VLC_OP_LINE, dest_area->x2 + 1, dest_area->y2 + 1, in lv_gpu_nxp_vglite_fill()
190 … ((vg_lite_float_t) dest_area->x2) + 1.0f, ((vg_lite_float_t) dest_area->y2) + 1.0f); in lv_gpu_nxp_vglite_fill()
349 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split()
350 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split()
362 if((src_area->x2 < LV_GPU_NXP_VG_LITE_BLIT_SPLIT_THR) && in lv_vglite_blit_split()
387 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split()
388 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split()
402 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split()
403 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_arc.c66 area->x2 = x + rout; in lv_draw_arc_get_area()
86 area->x2 = x + ((lv_trigo_sin(start_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
93 area->x2 = x + ((lv_trigo_sin(start_angle + 90) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
103 area->x2 = x + ((lv_trigo_sin(end_angle + 90) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
109 area->x2 = x + ((lv_trigo_sin(end_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
117 area->x2 = x + ((lv_trigo_sin(start_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
123 area->x2 = x + ((LV_MAX(lv_trigo_sin(start_angle + 90), in lv_draw_arc_get_area()
130 area->x2 = x + ((lv_trigo_sin(end_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
138 area->x2 = x + rout + extra_area; in lv_draw_arc_get_area()
145 area->x2 = x + rout; in lv_draw_arc_get_area()
/lvgl-latest/src/core/
Dlv_obj_scroll.c222 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right()
230 child_res -= (obj->coords.x2 - pad_right - border_width); in lv_obj_get_scroll_right()
519 ver_area->x2 = ver_area->x1 + tickness - 1; in lv_obj_get_scrollbar_area()
522 ver_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area()
523 ver_area->x1 = ver_area->x2 - tickness + 1; in lv_obj_get_scrollbar_area()
562 hor_area->x2 = obj->coords.x2; in lv_obj_get_scrollbar_area()
572 hor_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area()
576 hor_area->x2 = obj->coords.x2 - right_space - ver_reg_space - 1; in lv_obj_get_scrollbar_area()
585 hor_area->x2 = hor_area->x1 + sb_w - 1; in lv_obj_get_scrollbar_area()
588 if(hor_area->x1 + SCROLLBAR_MIN_SIZE > hor_area->x2) { in lv_obj_get_scrollbar_area()
[all …]
Dlv_indev_scroll.c247 p->x = find_snap_point_x(obj, obj->coords.x1, obj->coords.x2, 0); in lv_indev_scroll_get_snap_dist()
417 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x1, 0); in init_scroll_limits()
420 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x2, LV_COORD_MAX, 0); in init_scroll_limits()
421 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x2, 0); in init_scroll_limits()
426 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, x_mid - 1, 0); in init_scroll_limits()
431 proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits()
438 if(proc->types.pointer.scroll_area.x2 == 0) proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits()
476 x_child = child->coords.x2; in find_snap_point_x()
477 x_parent = obj->coords.x2 - pad_right; in find_snap_point_x()
570 if(proc->types.pointer.scroll_sum.x + *diff_x > proc->types.pointer.scroll_area.x2) { in scroll_limit_diff()
[all …]
/lvgl-latest/examples/widgets/bar/
Dlv_example_bar_6.c30 txt_area.x2 = dsc->draw_area->x2 - 5; in event_cb()
31 txt_area.x1 = txt_area.x2 - txt_size.x + 1; in event_cb()
36 txt_area.x1 = dsc->draw_area->x2 + 5; in event_cb()
37 txt_area.x2 = txt_area.x1 + txt_size.x - 1; in event_cb()
Dtest.py25 txt_area.x2 = dsc.draw_area.x2 - 5
26 txt_area.x1 = txt_area.x2 - txt_size.x + 1
30 txt_area.x1 = dsc.draw_area.x2 + 5
31 txt_area.x2 = txt_area.x1 + txt_size.x - 1
Dlv_example_bar_6.py22 txt_area.x2 = dsc.draw_area.x2 - 5
23 txt_area.x1 = txt_area.x2 - txt_size.x + 1
27 txt_area.x1 = dsc.draw_area.x2 + 5
28 txt_area.x2 = txt_area.x1 + txt_size.x - 1
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_rect.c144 extension.x2 = LV_MAX(extension.x2, dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect()
151 extension.x2 = LV_MAX(extension.x2, ext); in lv_draw_sdl_draw_rect()
223 lv_area_t blend_coords = {.x1 = 0, .y1 = 0, .x2 = w - 1, .y2 = h - 1}; in lv_draw_sdl_rect_grad_frag_obtain()
224 lv_area_t draw_area = {.x1 = 0, .y1 = 0, .x2 = radius - 1, .y2 = radius - 1}; in lv_draw_sdl_rect_grad_frag_obtain()
290 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
302 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners()
303 corner_area.x2 = coords->x2; in lv_draw_sdl_rect_bg_frag_draw_corners()
316 … SDL_Rect src_rect = {corner_area.x2 - dst_area.x2, dst_area.y1 - corner_area.y1, dw, dh}; in lv_draw_sdl_rect_bg_frag_draw_corners()
335 … SDL_Rect src_rect = {corner_area.x2 - dst_area.x2, corner_area.y2 - dst_area.y2, dw, dh}; in lv_draw_sdl_rect_bg_frag_draw_corners()
341 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
[all …]
Dlv_draw_sdl_composite.c61 if(full_coords.x1 > full_coords.x2) { in lv_draw_sdl_composite_begin()
62 lv_coord_t x2 = full_coords.x2; in lv_draw_sdl_composite_begin() local
63 full_coords.x2 = full_coords.x1; in lv_draw_sdl_composite_begin()
64 full_coords.x1 = x2; in lv_draw_sdl_composite_begin()
74 full_coords.x2 += extension->x2; in lv_draw_sdl_composite_begin()
Dlv_draw_sdl_line.c60 lv_coord_t x1 = point1->x, x2 = point2->x, y1 = point1->y, y2 = point2->y; in lv_draw_sdl_draw_line() local
61 double length = SDL_sqrt(SDL_pow(x2 - x1, 2) + SDL_pow(y2 - y1, 2)); in lv_draw_sdl_draw_line()
66 double angle = SDL_atan2(y2 - y1, x2 - x1) * 180 / M_PI; in lv_draw_sdl_draw_line()
74 lv_area_t coords = {x1, y1, x2, y2}; in lv_draw_sdl_draw_line()
Dlv_draw_sdl_polygon.c57 …lv_area_t poly_coords = {.x1 = LV_COORD_MAX, .y1 = LV_COORD_MAX, .x2 = LV_COORD_MIN, .y2 = LV_COOR… in lv_draw_sdl_polygon()
63 poly_coords.x2 = LV_MAX(poly_coords.x2, polygon_param.cfg.points[i].x); in lv_draw_sdl_polygon()
/lvgl-latest/examples/widgets/table/
Dlv_example_table_2.c20 sw_area.x1 = dsc->draw_area->x2 - 50; in draw_event_cb()
21 sw_area.x2 = sw_area.x1 + 40; in draw_event_cb()
28 sw_area.x2 -= 2; in draw_event_cb()
29 sw_area.x1 = sw_area.x2 - 16; in draw_event_cb()
33 sw_area.x2 = sw_area.x1 + 16; in draw_event_cb()
Dlv_example_table_2.py24 sw_area.x1 = dsc.draw_area.x2 - 50
25 sw_area.x2 = sw_area.x1 + 40
33 sw_area.x2 -= 2
34 sw_area.x1 = sw_area.x2 - 16
37 sw_area.x2 = sw_area.x1 + 16
/lvgl-latest/src/extra/widgets/imgbtn/
Dlv_imgbtn.c233 coords.x2 += tw; in draw_main()
251 coords_part.x2 = coords.x1 + header.w - 1; in draw_main()
260 coords_part.x1 = coords.x2 - header.w + 1; in draw_main()
262 coords_part.x2 = coords.x2; in draw_main()
271 clip_area_center.x2 = coords.x2 - right_w; in draw_main()
286 coords_part.x2 = coords_part.x1 + header.w - 1; in draw_main()
289 … for(i = coords_part.x1; i < (lv_coord_t)(clip_area_center.x2 + header.w - 1); i += header.w) { in draw_main()
291 coords_part.x1 = coords_part.x2 + 1; in draw_main()
292 coords_part.x2 += header.w; in draw_main()
/lvgl-latest/src/widgets/
Dlv_img.c198 a.x2 += obj->coords.x1; in lv_img_set_angle()
214 a.x2 += obj->coords.x1; in lv_img_set_angle()
231 a.x2 += obj->coords.x1; in lv_img_set_pivot()
248 a.x2 += obj->coords.x1; in lv_img_set_pivot()
267 a.x2 += obj->coords.x1 + 1; in lv_img_set_zoom()
283 a.x2 += obj->coords.x1 + 1; in lv_img_set_zoom()
474 *s = LV_MAX(*s, a.x2 - w); in lv_img_event()
492 coords.x2 += obj->coords.x1; in lv_img_event()
560 a.x2 += obj->coords.x1; in draw_img()
596 bg_coords.x2 += obj->coords.x1; in draw_img()
[all …]
Dlv_slider.c25 #define LV_SLIDER_KNOB_COORD(is_rtl, area) (is_rtl ? area.x1 : area.x2)
143 …if((base_dir != LV_BASE_DIR_RTL && p.x > slider->right_knob_area.x2) || (base_dir == LV_BASE_DIR_R… in lv_slider_event()
148 … p.x > slider->left_knob_area.x2)) { in lv_slider_event()
153 …dist_left = LV_ABS((slider->left_knob_area.x1 + (slider->left_knob_area.x2 - slider->left_knob_are… in lv_slider_event()
154 …dist_right = LV_ABS((slider->right_knob_area.x1 + (slider->right_knob_area.x2 - slider->right_knob… in lv_slider_event()
209 new_value = (obj->coords.x2 - bg_right) - p.x; in lv_slider_event()
416 knob_area->x2 = knob_area->x1 + knob_size - 1; in position_knob()
424 knob_area->x2 = obj->coords.x2; in position_knob()
437 knob_area->x2 += knob_right + transf_w; in position_knob()
Dlv_table.c728 if(rtl) cell_area.x1 = obj->coords.x2 - bg_right - 1 - scroll_x - border_width; in draw_main()
729 else cell_area.x2 = obj->coords.x1 + bg_left - 1 - scroll_x + border_width; in draw_main()
736 cell_area.x2 = cell_area.x1 - 1; in draw_main()
737 cell_area.x1 = cell_area.x2 - table->col_w[col] + 1; in draw_main()
740 cell_area.x1 = cell_area.x2 + 1; in draw_main()
741 cell_area.x2 = cell_area.x1 + table->col_w[col] - 1; in draw_main()
755 else cell_area.x2 += offset; in draw_main()
777 …ct_dsc_def.border_side & LV_BORDER_SIDE_RIGHT) && cell_area_border.x2 < obj->coords.x2 - bg_right … in draw_main()
778 … cell_area_border.x2 += rect_dsc_def.border_width / 2 + (rect_dsc_def.border_width & 0x1); in draw_main()
825 txt_area.x2 = cell_area.x2 - cell_right; in draw_main()
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c106 int x1, y1, x2, y2; in ttf_get_glyph_dsc_cb() local
108 stbtt_GetGlyphBitmapBox(&dsc->info, g1, dsc->scale, dsc->scale, &x1, &y1, &x2, &y2); in ttf_get_glyph_dsc_cb()
121 dsc_out->box_w = (x2 - x1 + 1); /*width of the bitmap in [px]*/ in ttf_get_glyph_dsc_cb()
139 int x1, y1, x2, y2; in ttf_get_glyph_bitmap_cb() local
140 stbtt_GetGlyphBitmapBox(info, g1, dsc->scale, dsc->scale, &x1, &y1, &x2, &y2); in ttf_get_glyph_bitmap_cb()
142 w = x2 - x1 + 1; in ttf_get_glyph_bitmap_cb()
/lvgl-latest/src/draw/renesas/
Dlv_gpu_d2_draw_label.c60 fill_area.x2 = pos->x + g->box_w - 1; 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()
147 fill_area.x2 = col_end + pos->x - 1; in draw_letter_normal()
268 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_gpu_letter()
Dlv_gpu_d2_ra6m3.c492 D2_EXEC(d2_cliprect(_d2_handle, dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2));
499 …img_area_scaled.x2 = src_area->x1 + ((((int32_t)w - img_dsc.pivot.x) * img_dsc.zoom) >> 8) + img_d…
519 int x, y, x1, y1, x2, y2, x3, y3, x4, y4, dxu, dxv, dyu, dyv, xx, xy, yx, yy; local
552 x2 = D2_FIX4(img_w);
564 lv_port_gpu_rotate_point(&x2, &y2, cos_angle, sin_angle, pivot_scaled_x, pivot_scaled_y);
583 int minx = MAX(dest_area->x1, D2_INT4(x + MIN(x1, MIN(x2, MIN(x3, x4)))));
584 int maxx = MIN(dest_area->x2, D2_INT4(x + MAX(x1, MAX(x2, MAX(x3, x4)))));
591 (d2_point)(x + x2), (d2_point)(y + y2),
613 MAX(dst_area->x2 + 1, 2), MAX(dst_area->y2 + 1, 2), dst_cf_val));
672 src_area.x2 = src_area.x1 + lv_area_get_width(dsc->blend_area) - 1;

1234