/lvgl-3.4.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.4.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() 163 blend_area.x2 = clipped_coords.x2; in draw_bg() 283 center_coords.x2 = bg_coords.x2; in draw_bg() 342 a.x2 = a.x1 + size.x - 1; in draw_bg_img() 373 area.x2 = area.x1 + header.w - 1; in draw_bg_img() 386 area.x2 = area.x1 + header.w - 1; in draw_bg_img() 387 for(; area.x1 <= coords->x2; area.x1 += header.w, area.x2 += header.w) { in draw_bg_img() 412 …area_inner.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : - (dsc->border_w… in draw_border() 439 core_area.x2 = coords->x2 + dsc->shadow_ofs_x + dsc->shadow_spread; in draw_shadow() 446 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() 178 round_area.x2 += center->x; in lv_draw_sw_arc() 194 round_area.x2 += center->x; in lv_draw_sw_arc() 232 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0() 250 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0() 259 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0() 279 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0() 299 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_1() 317 …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 | 120 gpos.x > draw_ctx->clip_area->x2 || in lv_draw_sw_letter() 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() 234 fill_area.x2 = col_end + pos->x - 1; in draw_letter_normal() 360 …_t col_end = pos->x + box_w / 3 <= draw_ctx->clip_area->x2 ? box_w : (draw_ctx->clip_area->x2 - … in draw_letter_subpx() 375 map_area.x2 = col_end / 3 + pos->x - 1; in draw_letter_subpx() 379 if(map_area.x2 <= map_area.x1) return; in draw_letter_subpx()
|
/lvgl-3.4.0/src/draw/nxp_vglite/ |
D | lv_gpu_nxp_vglite.c | 166 rect.width = (int32_t) fill_area->x2 - (int32_t) fill_area->x1 + 1; in lv_gpu_nxp_vglite_fill() 194 VLC_OP_LINE, fill_area->x2 + 1, fill_area->y1, in lv_gpu_nxp_vglite_fill() 195 VLC_OP_LINE, fill_area->x2 + 1, fill_area->y2 + 1, in lv_gpu_nxp_vglite_fill() 202 …_float_t) fill_area->x1, (vg_lite_float_t) fill_area->y1, ((vg_lite_float_t) fill_area->x2) + 1.0f, in lv_gpu_nxp_vglite_fill() 282 blit->src_area.x2, blit->src_area.y2, in lv_gpu_nxp_vglite_blit() 289 blit->dst_area.x2, blit->dst_area.y2, in lv_gpu_nxp_vglite_blit() 299 if((blit->src_area.x2 < LV_GPU_NXP_VG_LITE_BLIT_SPLIT_THR) && in lv_gpu_nxp_vglite_blit() 313 blit->src_area.x1, blit->src_area.y1, blit->src_area.x2, blit->src_area.y2, in lv_gpu_nxp_vglite_blit() 314 blit->dst_area.x1, blit->dst_area.y1, blit->dst_area.x2, blit->dst_area.y2, in lv_gpu_nxp_vglite_blit() 378 …tileBlit.src_area.x2 = totalWidth + blit->src_area.x1 - tileX * LV_GPU_NXP_VG_LITE_BLIT_SPLIT_THR … in lv_gpu_nxp_vglite_blit() [all …]
|
/lvgl-3.4.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.4.0/src/core/ |
D | lv_obj_scroll.c | 223 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right() 231 child_res -= (obj->coords.x2 - pad_right - border_width); in lv_obj_get_scroll_right() 502 ver_area->x2 = ver_area->x1 + tickness - 1; in lv_obj_get_scrollbar_area() 505 ver_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area() 506 ver_area->x1 = ver_area->x2 - tickness + 1; in lv_obj_get_scrollbar_area() 545 hor_area->x2 = obj->coords.x2; in lv_obj_get_scrollbar_area() 555 hor_area->x2 = obj->coords.x2 - right_space; in lv_obj_get_scrollbar_area() 559 hor_area->x2 = obj->coords.x2 - right_space - ver_reg_space - 1; in lv_obj_get_scrollbar_area() 568 hor_area->x2 = hor_area->x1 + sb_w - 1; in lv_obj_get_scrollbar_area() 571 if(hor_area->x1 + SCROLLBAR_MIN_SIZE > hor_area->x2) { in lv_obj_get_scrollbar_area() [all …]
|
D | lv_indev_scroll.c | 234 p->x = find_snap_point_x(obj, obj->coords.x1, obj->coords.x2, 0); in lv_indev_scroll_get_snap_dist() 381 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x1, 0); in init_scroll_limits() 384 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x2, LV_COORD_MAX, 0); in init_scroll_limits() 385 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x2, 0); in init_scroll_limits() 390 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, x_mid - 1, 0); in init_scroll_limits() 395 proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits() 402 if(proc->types.pointer.scroll_area.x2 == 0) proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits() 440 x_child = child->coords.x2; in find_snap_point_x() 441 x_parent = obj->coords.x2 - pad_right; in find_snap_point_x() 534 if(proc->types.pointer.scroll_sum.x + *diff_x > proc->types.pointer.scroll_area.x2) { in scroll_limit_diff() [all …]
|
D | lv_refr.c | 214 scr_area.x2 = lv_disp_get_hor_res(disp) - 1; in _lv_inv_area() 562 sub_area.x2 = area_p->x2; in lv_refr_area() 578 sub_area.x2 = area_p->x2; in lv_refr_area() 767 tmp.x2 = 0; in get_max_row() 814 tmp_coord = area->x2; in draw_buf_rotate_180() 815 area->x2 = drv->hor_res - area->x1 - 1; in draw_buf_rotate_180() 927 area->x2 = init_y_off + area_w - 1; in draw_buf_rotate() 930 area->x2 = drv->hor_res - 1 - init_y_off; in draw_buf_rotate() 931 area->x1 = area->x2 - area_w + 1; in draw_buf_rotate() 941 area->x2 = init_y_off + row + height - 1; in draw_buf_rotate() [all …]
|
/lvgl-3.4.0/src/draw/sdl/ |
D | lv_draw_sdl_rect.c | 114 extension.x2 = LV_MAX(extension.x2, dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect() 121 extension.x2 = LV_MAX(extension.x2, ext); in lv_draw_sdl_draw_rect() 170 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners() 182 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners() 183 corner_area.x2 = coords->x2; in lv_draw_sdl_rect_bg_frag_draw_corners() 196 … 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() 215 … 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() 221 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners() 287 a.x2 = a.x1 + size.x - 1; in draw_bg_img() 336 area.x2 = area.x1 + header.w - 1; in draw_bg_img() [all …]
|
D | lv_draw_sdl_composite.c | 62 if(full_coords.x1 > full_coords.x2) { in lv_draw_sdl_composite_begin() 63 lv_coord_t x2 = full_coords.x2; in lv_draw_sdl_composite_begin() local 64 full_coords.x2 = full_coords.x1; in lv_draw_sdl_composite_begin() 65 full_coords.x1 = x2; in lv_draw_sdl_composite_begin() 75 full_coords.x2 += extension->x2; in lv_draw_sdl_composite_begin()
|
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()
|
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()
|
/lvgl-3.4.0/examples/widgets/bar/ |
D | lv_example_bar_6.c | 29 txt_area.x2 = dsc->draw_area->x2 - 5; in event_cb() 30 txt_area.x1 = txt_area.x2 - txt_size.x + 1; in event_cb() 35 txt_area.x1 = dsc->draw_area->x2 + 5; in event_cb() 36 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.4.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() 32 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.4.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.4.0/src/widgets/ |
D | lv_img.c | 205 a.x2 += obj->coords.x1; in lv_img_set_angle() 215 a.x2 += obj->coords.x1; in lv_img_set_angle() 238 a.x2 += obj->coords.x1; in lv_img_set_pivot() 249 a.x2 += obj->coords.x1; in lv_img_set_pivot() 273 a.x2 += obj->coords.x1 + 1; in lv_img_set_zoom() 283 a.x2 += obj->coords.x1 + 1; in lv_img_set_zoom() 485 *s = LV_MAX(*s, pad_ori + a.x2 - w); in lv_img_event() 508 coords.x2 += obj->coords.x1; in lv_img_event() 582 a.x2 += obj->coords.x1; in draw_img() 624 bg_coords.x2 += obj->coords.x1; in draw_img() [all …]
|
D | lv_slider.c | 25 #define LV_SLIDER_KNOB_COORD(hor, is_rtl, area) (hor ? (is_rtl ? area.x1 : area.x2) : (is_rtl ? are… 142 …if((base_dir != LV_BASE_DIR_RTL && p.x > slider->right_knob_area.x2) || (base_dir == LV_BASE_DIR_R… in lv_slider_event() 147 … p.x > slider->left_knob_area.x2)) { in lv_slider_event() 152 …dist_left = LV_ABS((slider->left_knob_area.x1 + (slider->left_knob_area.x2 - slider->left_knob_are… in lv_slider_event() 153 …dist_right = LV_ABS((slider->right_knob_area.x1 + (slider->right_knob_area.x2 - slider->right_knob… in lv_slider_event() 215 … new_value = (obj->coords.x2 - bg_right) - p.x; /*Make the point relative to the indicator*/ in lv_slider_event() 430 knob_area->x2 = knob_area->x1 + knob_size - 1; in position_knob() 438 knob_area->x2 = obj->coords.x2; in position_knob() 451 knob_area->x2 += knob_right + transf_w; in position_knob()
|
D | lv_bar.c | 219 bar->indic_area.x2 = 0; in lv_bar_constructor() 256 bar_coords.x2 += transf_w; in draw_indic() 275 bar->indic_area.x2 -= bg_right; in draw_indic() 285 bar->indic_area.x2 = bar->indic_area.x1 + LV_BAR_SIZE_MIN; in draw_indic() 301 axis2 = &bar->indic_area.x2; in draw_indic() 451 bg_mask_area.x2 = obj->coords.x2 - bg_right; in draw_indic() 470 mask_indic_max_area.x2 -= bg_right; in draw_indic() 478 mask_indic_max_area.x2 = mask_indic_max_area.x1 + LV_BAR_SIZE_MIN; in draw_indic()
|
/lvgl-3.4.0/zephyr/ |
D | lvgl_display_mono.c | 14 uint16_t w = area->x2 - area->x1 + 1; in lvgl_flush_cb_mono() 107 area->x2 = data->cap.x_resolution - 1; in lvgl_rounder_cb_mono() 114 area->x2 |= 0x7; in lvgl_rounder_cb_mono()
|
/lvgl-3.4.0/examples/widgets/roller/ |
D | lv_example_roller_3.c | 26 rect_area.x2 = roller_coords.x2; in mask_event_cb()
|