/lvgl-3.5.0/src/misc/ |
D | lv_area.c | 48 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() 156 a_res_p->x2 = LV_MAX(a1_p->x2, a2_p->x2); in _lv_area_join() 171 if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) && ((p_p->y >= a_p->y1 && p_p->y <= a_p->y2))) { in _lv_area_is_point_on() [all …]
|
D | lv_area.h | 46 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-3.5.0/src/draw/sw/ |
D | lv_draw_sw_rect.c | 111 bg_coords.x2 -= (dsc->border_side & LV_BORDER_SIDE_RIGHT) ? 1 : 0; in draw_bg() 162 blend_area.x2 = clipped_coords.x2; in draw_bg() 282 center_coords.x2 = bg_coords.x2; in draw_bg() 349 a.x2 = a.x1 + size.x - 1; in draw_bg_img() 376 area.x2 = area.x1 + header.w - 1; in draw_bg_img() 389 area.x2 = area.x1 + header.w - 1; in draw_bg_img() 390 for(; area.x1 <= coords->x2; area.x1 += header.w, area.x2 += header.w) { in draw_bg_img() 421 …area_inner.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : - (dsc->border_w… in draw_border() 448 core_area.x2 = coords->x2 + dsc->shadow_ofs_x + dsc->shadow_spread; in draw_shadow() 455 shadow_area.x2 = core_area.x2 + dsc->shadow_width / 2 + 1; in draw_shadow() [all …]
|
D | lv_draw_sw_arc.c | 87 …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 …]
|
D | lv_draw_sw_letter.c | 137 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_sw_letter() 182 fill_area.x2 = pos->x + g->box_w - 1; in draw_letter_normal() 243 …int32_t col_end = pos->x + box_w <= draw_ctx->clip_area->x2 ? box_w : draw_ctx->clip_area->x2 - … in draw_letter_normal() 269 fill_area.x2 = col_end + pos->x - 1; in draw_letter_normal() 395 …_t col_end = pos->x + box_w / 3 <= draw_ctx->clip_area->x2 ? box_w : (draw_ctx->clip_area->x2 - … in draw_letter_subpx() 410 map_area.x2 = col_end / 3 + pos->x - 1; in draw_letter_subpx() 414 if(map_area.x2 <= map_area.x1) return; in draw_letter_subpx()
|
/lvgl-3.5.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite_blend.c | 197 VLC_OP_LINE, dest_area->x2 + 1, dest_area->y1, in lv_gpu_nxp_vglite_fill() 198 VLC_OP_LINE, dest_area->x2 + 1, dest_area->y2 + 1, in lv_gpu_nxp_vglite_fill() 206 … ((vg_lite_float_t) dest_area->x2) + 1.0f, ((vg_lite_float_t) dest_area->y2) + 1.0f); in lv_gpu_nxp_vglite_fill() 301 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split() 302 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split() 314 if((src_area->x2 < LV_GPU_NXP_VG_LITE_BLIT_SPLIT_THR) && in lv_vglite_blit_split() 332 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split() 333 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split() 347 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in lv_vglite_blit_split() 348 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in lv_vglite_blit_split() [all …]
|
D | lv_draw_vglite.c | 194 src_area.x2 = src_area.x1 + lv_area_get_width(dsc->blend_area) - 1; in lv_draw_vglite_blend() 251 src_area.x2 = src_area.x1 + lv_area_get_width(coords) - 1; in lv_draw_vglite_img_decoded() 283 rel_clip_area.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_vglite_line() 369 rel_coords.x2 -= (dsc->border_side & LV_BORDER_SIDE_RIGHT) ? 1 : 0; in lv_draw_vglite_bg() 425 rel_coords.x2 = coords->x2 - floor(border_width / 2.0f); in lv_draw_vglite_border() 455 rel_coords.x2 = coords->x2 + outline_pad + ceil(dsc->outline_width / 2.0f); in lv_draw_vglite_outline()
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_arc.c | 66 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-3.5.0/src/core/ |
D | lv_obj_scroll.c | 222 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() 522 ver_area->x2 = ver_area->x1 + tickness - 1; in lv_obj_get_scrollbar_area() 525 ver_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area() 526 ver_area->x1 = ver_area->x2 - tickness + 1; in lv_obj_get_scrollbar_area() 565 hor_area->x2 = obj->coords.x2; in lv_obj_get_scrollbar_area() 575 hor_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area() 579 hor_area->x2 = obj->coords.x2 - right_space - ver_reg_space - 1; in lv_obj_get_scrollbar_area() 588 hor_area->x2 = hor_area->x1 + sb_w - 1; in lv_obj_get_scrollbar_area() 591 if(hor_area->x1 + SCROLLBAR_MIN_SIZE > hor_area->x2) { in lv_obj_get_scrollbar_area() [all …]
|
D | lv_indev_scroll.c | 250 p->x = find_snap_point_x(obj, obj->coords.x1, obj->coords.x2, 0); in lv_indev_scroll_get_snap_dist() 420 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x1, 0); in init_scroll_limits() 423 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x2, LV_COORD_MAX, 0); in init_scroll_limits() 424 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x2, 0); in init_scroll_limits() 429 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, x_mid - 1, 0); in init_scroll_limits() 434 proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits() 441 if(proc->types.pointer.scroll_area.x2 == 0) proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits() 479 x_child = child->coords.x2; in find_snap_point_x() 480 x_parent = obj->coords.x2 - pad_right; in find_snap_point_x() 573 if(proc->types.pointer.scroll_sum.x + *diff_x > proc->types.pointer.scroll_area.x2) { in scroll_limit_diff() [all …]
|
D | lv_refr.c | 225 scr_area.x2 = lv_disp_get_hor_res(disp) - 1; in _lv_inv_area() 585 sub_area.x2 = area_p->x2; in refr_area() 601 sub_area.x2 = area_p->x2; in refr_area() 978 tmp.x2 = 0; in get_max_row() 1025 tmp_coord = area->x2; in draw_buf_rotate_180() 1026 area->x2 = drv->hor_res - area->x1 - 1; in draw_buf_rotate_180() 1138 area->x2 = init_y_off + area_w - 1; in draw_buf_rotate() 1141 area->x2 = drv->hor_res - 1 - init_y_off; in draw_buf_rotate() 1142 area->x1 = area->x2 - area_w + 1; in draw_buf_rotate() 1152 area->x2 = init_y_off + row + height - 1; in draw_buf_rotate() [all …]
|
D | lv_obj_pos.c | 188 obj->coords.x1 = obj->coords.x2 - w + 1; in lv_obj_refr_size() 191 obj->coords.x2 = obj->coords.x1 + w - 1; in lv_obj_refr_size() 599 area->x2 -= lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_obj_get_content_coords() 763 obj->coords.x2 += diff.x; in lv_obj_move_to() 791 child->coords.x2 += x_diff; in lv_obj_move_children_by() 820 {area->x2, area->y1}, in lv_obj_get_transformed_area() 821 {area->x2, area->y2}, in lv_obj_get_transformed_area() 830 area->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x); in lv_obj_get_transformed_area() 861 obj_coords.x2 += ext_size; in lv_obj_invalidate() 889 obj_coords.x2 += ext_size; in lv_obj_area_is_visible() [all …]
|
/lvgl-3.5.0/examples/widgets/bar/ |
D | lv_example_bar_6.c | 30 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()
|
D | lv_example_bar_6.py | 22 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
|
D | test.py | 25 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
|
/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_rect.c | 144 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() 220 lv_area_t blend_coords = {.x1 = 0, .y1 = 0, .x2 = w - 1, .y2 = h - 1}; in lv_draw_sdl_rect_grad_frag_obtain() 221 lv_area_t draw_area = {.x1 = 0, .y1 = 0, .x2 = radius - 1, .y2 = radius - 1}; in lv_draw_sdl_rect_grad_frag_obtain() 281 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners() 293 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners() 294 corner_area.x2 = coords->x2; in lv_draw_sdl_rect_bg_frag_draw_corners() 307 … 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() 326 … 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() 332 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners() [all …]
|
D | lv_draw_sdl_composite.c | 61 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()
|
D | lv_draw_sdl_polygon.c | 57 …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()
|
D | lv_draw_sdl_line.c | 60 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()
|
/lvgl-3.5.0/examples/widgets/table/ |
D | lv_example_table_2.c | 20 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()
|
D | lv_example_table_2.py | 24 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-3.5.0/src/extra/widgets/imgbtn/ |
D | lv_imgbtn.c | 227 coords.x2 += tw; in draw_main() 245 coords_part.x2 = coords.x1 + header.w - 1; in draw_main() 254 coords_part.x1 = coords.x2 - header.w + 1; in draw_main() 256 coords_part.x2 = coords.x2; in draw_main() 265 clip_area_center.x2 = coords.x2 - right_w; in draw_main() 281 coords_part.x2 = coords_part.x1 + header.w - 1; in draw_main() 284 … for(i = coords_part.x1; i < (lv_coord_t)(clip_area_center.x2 + header.w - 1); i += header.w) { in draw_main() 286 coords_part.x1 = coords_part.x2 + 1; in draw_main() 287 coords_part.x2 += header.w; in draw_main()
|
/lvgl-3.5.0/src/widgets/ |
D | lv_img.c | 198 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() 475 *s = LV_MAX(*s, a.x2 - w); in lv_img_event() 493 coords.x2 += obj->coords.x1; in lv_img_event() 561 a.x2 += obj->coords.x1; in draw_img() 597 bg_coords.x2 += obj->coords.x1; in draw_img() [all …]
|
D | lv_slider.c | 25 #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()
|
D | lv_table.c | 637 if(rtl) cell_area.x1 = obj->coords.x2 - bg_right - 1 - scroll_x - border_width; in draw_main() 638 else cell_area.x2 = obj->coords.x1 + bg_left - 1 - scroll_x + border_width; in draw_main() 645 cell_area.x2 = cell_area.x1 - 1; in draw_main() 646 cell_area.x1 = cell_area.x2 - table->col_w[col] + 1; in draw_main() 649 cell_area.x1 = cell_area.x2 + 1; in draw_main() 650 cell_area.x2 = cell_area.x1 + table->col_w[col] - 1; in draw_main() 664 else cell_area.x2 += offset; in draw_main() 686 …ct_dsc_def.border_side & LV_BORDER_SIDE_RIGHT) && cell_area_border.x2 < obj->coords.x2 - bg_right … in draw_main() 687 … cell_area_border.x2 += rect_dsc_def.border_width / 2 + (rect_dsc_def.border_width & 0x1); in draw_main() 734 txt_area.x2 = cell_area.x2 - cell_right; in draw_main() [all …]
|