Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 81) sorted by relevance

1234

/lvgl-3.4.0/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
53 area_p->y2 = y2; in lv_area_set()
73 area_p->y2 = area_p->y1 + h - 1; in lv_area_set_height()
101 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()
111 area->y2 += h_extra; in lv_area_increase()
119 area->y2 += y_ofs; in lv_area_move()
135 res_p->y2 = LV_MIN(a1_p->y2, a2_p->y2); in _lv_area_intersect()
139 if((res_p->x1 > res_p->x2) || (res_p->y1 > res_p->y2)) { in _lv_area_intersect()
157 a_res_p->y2 = LV_MAX(a1_p->y2, a2_p->y2); 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 …]
Dlv_area.h47 lv_coord_t y2; 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);
115 dest->y2 = src->y2; in lv_area_copy()
135 return (lv_coord_t)(area_p->y2 - area_p->y1 + 1); in lv_area_get_height()
/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_rect.c112 bg_coords.y2 -= (dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? 1 : 0; in draw_bg()
223 for(h = clipped_coords.y1; h <= clipped_coords.y2; h++) { in draw_bg()
225 blend_area.y2 = h; in draw_bg()
246 lv_coord_t bottom_y = bg_coords.y2 - h; in draw_bg()
247 …if(top_y < clipped_coords.y1 && bottom_y > clipped_coords.y2) continue; /*This line is clipped n… in draw_bg()
257 blend_area.y2 = top_y; in draw_bg()
266 if(bottom_y <= clipped_coords.y2) { in draw_bg()
268 blend_area.y2 = bottom_y; in draw_bg()
285 center_coords.y2 = bg_coords.y2 - rout; in draw_bg()
289 blend_area.y2 = bg_coords.y2 - rout; in draw_bg()
[all …]
Dlv_draw_sw_line.c64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line()
91 cir_area.y2 = point1->y + r - r_corr ; in lv_draw_sw_line()
99 cir_area.y2 = point2->y + r - r_corr ; in lv_draw_sw_line()
123 blend_area.y2 = point1->y + w_half0; in draw_line_hor()
150 lv_coord_t y2 = blend_area.y2; in draw_line_hor() local
151 blend_area.y2 = blend_area.y1; in draw_line_hor()
162 for(h = blend_area.y1; h <= y2; h++) { in draw_line_hor()
191 blend_area.y2++; in draw_line_hor()
209 blend_area.y2 = LV_MAX(point1->y, point2->y) - 1; in draw_line_ver()
236 lv_coord_t y2 = blend_area.y2; in draw_line_ver() local
[all …]
Dlv_draw_sw_letter.c122 gpos.y > draw_ctx->clip_area->y2) { in lv_draw_sw_letter()
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()
236 fill_area.y2 = fill_area.y1; in draw_letter_normal()
241 mask_area.y2 = mask_area.y1 + row_end; in draw_letter_normal()
283 … blend_dsc.mask_res = lv_draw_mask_apply(mask_buf + mask_p_start, fill_area.x1, fill_area.y2, in draw_letter_normal()
292 fill_area.y2 ++; in draw_letter_normal()
298 fill_area.y1 = fill_area.y2 + 1; in draw_letter_normal()
299 fill_area.y2 = fill_area.y1; in draw_letter_normal()
309 if(fill_area.y1 != fill_area.y2) { in draw_letter_normal()
310 fill_area.y2--; in draw_letter_normal()
[all …]
Dlv_draw_sw_img.c84 blend_area.y2 = blend_area.y1; in lv_draw_sw_img_decoded()
126 blend_area.y2 ++; in lv_draw_sw_img_decoded()
131 blend_area.y1 = blend_area.y2 + 1; in lv_draw_sw_img_decoded()
132 blend_area.y2 = blend_area.y1; in lv_draw_sw_img_decoded()
138 if(blend_area.y1 != blend_area.y2) { in lv_draw_sw_img_decoded()
139 blend_area.y2--; in lv_draw_sw_img_decoded()
288 blend_area.y2 ++; in lv_draw_sw_img_decoded()
293 blend_area.y1 = blend_area.y2 + 1; in lv_draw_sw_img_decoded()
294 blend_area.y2 = blend_area.y1; in lv_draw_sw_img_decoded()
308 if(blend_area.y1 != blend_area.y2) { in lv_draw_sw_img_decoded()
[all …]
Dlv_draw_sw_arc.c88 area_out.y2 = center->y + radius - 1; in lv_draw_sw_arc()
95 area_in.y2 -= dsc->width; in lv_draw_sw_arc()
180 round_area.y2 += center->y; in lv_draw_sw_arc()
196 round_area.y2 += center->y; in lv_draw_sw_arc()
234 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_0()
247 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_0()
262 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_0()
280 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_0()
298 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_1()
316 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_1()
[all …]
/lvgl-3.4.0/examples/widgets/roller/
Dlv_example_roller_3.c28 rect_area.y2 = roller_coords.y1 + (lv_obj_get_height(obj) - font_h - line_space) / 2; in mask_event_cb()
31 …mask_fade_init(fade_mask_top, &rect_area, LV_OPA_TRANSP, rect_area.y1, LV_OPA_COVER, rect_area.y2); in mask_event_cb()
34 rect_area.y1 = rect_area.y2 + font_h + line_space - 1; in mask_event_cb()
35 rect_area.y2 = roller_coords.y2; in mask_event_cb()
38 …k_fade_init(fade_mask_bottom, &rect_area, LV_OPA_COVER, rect_area.y1, LV_OPA_TRANSP, rect_area.y2); in mask_event_cb()
Dlv_example_roller_3.py77 rect_area.y2 = roller_coords.y1 + (obj.get_height() - font_h - line_space) // 2
80 fade_mask_top.init(rect_area, lv.OPA.TRANSP, rect_area.y1, lv.OPA.COVER, rect_area.y2)
83 rect_area.y1 = rect_area.y2 + font_h + line_space - 1
84 rect_area.y2 = roller_coords.y2
87 … fade_mask_bottom.init(rect_area, lv.OPA.COVER, rect_area.y1, lv.OPA.TRANSP, rect_area.y2)
/lvgl-3.4.0/src/draw/nxp_vglite/
Dlv_gpu_nxp_vglite.c167 rect.height = (int32_t) fill_area->y2 - (int32_t) fill_area->y1 + 1; in lv_gpu_nxp_vglite_fill()
195 VLC_OP_LINE, fill_area->x2 + 1, fill_area->y2 + 1, in lv_gpu_nxp_vglite_fill()
196 VLC_OP_LINE, fill_area->x1, fill_area->y2 + 1, in lv_gpu_nxp_vglite_fill()
203 ((vg_lite_float_t) fill_area->y2) + 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()
300 (blit->src_area.y2 < 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()
345 tileBlit.src_area.y2 = totalHeight - tileY * LV_GPU_NXP_VG_LITE_BLIT_SPLIT_THR - 1; in lv_gpu_nxp_vglite_blit()
[all …]
/lvgl-3.4.0/src/draw/
Dlv_draw_arc.c67 area->y2 = y + rout; in lv_draw_arc_get_area()
88 area->y2 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
92 area->y2 = y + ((lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
100 area->y2 = y + ((lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
110 area->y2 = y + ((lv_trigo_sin(end_angle) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
118 area->y2 = y + rout + extra_area; in lv_draw_arc_get_area()
125 area->y2 = y + ((lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
131 area->y2 = y + (LV_MAX(lv_trigo_sin(end_angle) * rin, in lv_draw_arc_get_area()
139 area->y2 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
146 area->y2 = y + rout; in lv_draw_arc_get_area()
/lvgl-3.4.0/src/draw/sdl/
Dlv_draw_sdl_rect.c116 extension.y2 = LV_MAX(extension.y2, dsc->shadow_ofs_y + ext); in lv_draw_sdl_draw_rect()
123 extension.y2 = LV_MAX(extension.y2, ext); in lv_draw_sdl_draw_rect()
171 corner_area.y2 = coords->y1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
201 corner_area.y1 = LV_MAX(coords->y2 - frag_size + 1, coords->y1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners()
202 corner_area.y2 = coords->y2; 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()
234 … SDL_Rect src_rect = {dst_area.x1 - corner_area.x1, corner_area.y2 - dst_area.y2, dw, dh}; in lv_draw_sdl_rect_bg_frag_draw_corners()
289 a.y2 = a.y1 + size.y - 1; in draw_bg_img()
337 area.y2 = area.y1 + header.h - 1; in draw_bg_img()
344 area.y2 = area.y1 + header.h - 1; in draw_bg_img()
[all …]
Dlv_draw_sdl_composite.c67 if(full_coords.y1 > full_coords.y2) { in lv_draw_sdl_composite_begin()
68 lv_coord_t y2 = full_coords.y2; in lv_draw_sdl_composite_begin() local
69 full_coords.y2 = full_coords.y1; in lv_draw_sdl_composite_begin()
70 full_coords.y1 = y2; in lv_draw_sdl_composite_begin()
77 full_coords.y2 += extension->y2; 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()
64 poly_coords.y2 = LV_MAX(poly_coords.y2, polygon_param.cfg.points[i].y); in lv_draw_sdl_polygon()
/lvgl-3.4.0/src/core/
Dlv_refr.c215 scr_area.y2 = lv_disp_get_ver_res(disp) - 1; in _lv_inv_area()
551 lv_coord_t y2 = area_p->y2 >= lv_disp_get_ver_res(disp_refr) ? in lv_refr_area() local
552 lv_disp_get_ver_res(disp_refr) - 1 : area_p->y2; in lv_refr_area()
559 for(row = area_p->y1; row + max_row - 1 <= y2; row += max_row) { in lv_refr_area()
564 sub_area.y2 = row + max_row - 1; in lv_refr_area()
568 if(sub_area.y2 > y2) sub_area.y2 = y2; in lv_refr_area()
569 row_last = sub_area.y2; in lv_refr_area()
570 if(y2 == row_last) disp_refr->driver->draw_buf->last_part = 1; in lv_refr_area()
575 if(y2 != row_last) { in lv_refr_area()
580 sub_area.y2 = y2; in lv_refr_area()
[all …]
Dlv_obj_scroll.c145 child_res = LV_MAX(child_res, child->coords.y2); in lv_obj_get_scroll_bottom()
153 child_res -= (obj->coords.y2 - pad_bottom - border_width); in lv_obj_get_scroll_bottom()
499 ver_area->y2 = obj->coords.y2; in lv_obj_get_scrollbar_area()
516 ver_area->y2 = obj->coords.y2 - bottom_space - hor_req_space - 1; in lv_obj_get_scrollbar_area()
523 ver_area->y2 = ver_area->y1 + sb_h - 1; in lv_obj_get_scrollbar_area()
526 if(ver_area->y1 + SCROLLBAR_MIN_SIZE > ver_area->y2) { in lv_obj_get_scrollbar_area()
527 ver_area->y2 = ver_area->y1 + SCROLLBAR_MIN_SIZE; in lv_obj_get_scrollbar_area()
530 if(ver_area->y2 > obj->coords.y2 - hor_req_space - bottom_space) { in lv_obj_get_scrollbar_area()
531 ver_area->y2 = obj->coords.y2 - hor_req_space - bottom_space; in lv_obj_get_scrollbar_area()
532 if(ver_area->y2 - SCROLLBAR_MIN_SIZE < ver_area->y1) { in lv_obj_get_scrollbar_area()
[all …]
Dlv_indev_scroll.c235 p->y = find_snap_point_y(obj, obj->coords.y1, obj->coords.y2, 0); in lv_indev_scroll_get_snap_dist()
360 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y1 - 1, 0); in init_scroll_limits()
363 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, obj->coords.y2, LV_COORD_MAX, 0); in init_scroll_limits()
364 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y2, 0); in init_scroll_limits()
369 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, y_mid - 1, 0); in init_scroll_limits()
374 proc->types.pointer.scroll_area.y2 = LV_COORD_MAX; in init_scroll_limits()
404 if(proc->types.pointer.scroll_area.y2 == 0) proc->types.pointer.scroll_area.y2 = LV_COORD_MAX; in init_scroll_limits()
495 y_child = child->coords.y2; in find_snap_point_y()
496 y_parent = obj->coords.y2 - pad_bottom; in find_snap_point_y()
524 if(proc->types.pointer.scroll_sum.y + *diff_y > proc->types.pointer.scroll_area.y2) { in scroll_limit_diff()
[all …]
/lvgl-3.4.0/src/widgets/
Dlv_img.c206 a.y2 += obj->coords.y1; in lv_img_set_angle()
216 a.y2 += obj->coords.y1; in lv_img_set_angle()
239 a.y2 += obj->coords.y1; in lv_img_set_pivot()
250 a.y2 += obj->coords.y1; in lv_img_set_pivot()
274 a.y2 += obj->coords.y1 + 1; in lv_img_set_zoom()
284 a.y2 += obj->coords.y1 + 1; in lv_img_set_zoom()
486 *s = LV_MAX(*s, pad_ori + a.y2 - h); in lv_img_event()
509 coords.y2 += obj->coords.y1; in lv_img_event()
583 a.y2 += obj->coords.y1; in draw_img()
625 bg_coords.y2 += obj->coords.y1; in draw_img()
[all …]
Dlv_slider.c25 …R_KNOB_COORD(hor, is_rtl, area) (hor ? (is_rtl ? area.x1 : area.x2) : (is_rtl ? area.y1 : area.y2))
170 else if(p.y > slider->left_knob_area.y2) { in lv_slider_event()
175 …dist_left = LV_ABS((slider->left_knob_area.y1 + (slider->left_knob_area.y2 - slider->left_knob_are… in lv_slider_event()
176 …dist_right = LV_ABS((slider->right_knob_area.y1 + (slider->right_knob_area.y2 - slider->right_knob… in lv_slider_event()
225 … new_value = p.y - (obj->coords.y2 + bg_bottom); /*Make the point relative to the indicator*/ in lv_slider_event()
368 knob_area.y1 = slider->bar.indic_area.y2; in draw_knob()
408 knob_area.y1 = slider->bar.indic_area.y2; in draw_knob()
432 knob_area->y2 = obj->coords.y2; in position_knob()
436 knob_area->y2 = knob_area->y1 + knob_size - 1; in position_knob()
453 knob_area->y2 += knob_bottom + transf_h; in position_knob()
/lvgl-3.4.0/examples/widgets/chart/
Dlv_example_chart_6.c34 a.y2 = dsc->p1->y - 5; in event_cb()
35 a.y1 = a.y2 - size.y - 10; in event_cb()
52 a.y2 -= 5; in event_cb()
Dlv_example_chart_2.py22 fade_mask_param.init(coords, lv.OPA.COVER, coords.y1 + h // 8, lv.OPA.TRANSP,coords.y2)
37 a.y2 = coords.y2
/lvgl-3.4.0/examples/widgets/slider/
Dlv_example_slider_3.c46 label_area.y2 = dsc->draw_area->y1 - 10; in slider_event_cb()
47 label_area.y1 = label_area.y2 - label_size.y; in slider_event_cb()
Dlv_example_slider_3.py21 label_area.y2 = dsc.draw_area.y1 - 10
22 label_area.y1 = label_area.y2 - label_size.y
/lvgl-3.4.0/src/extra/widgets/imgbtn/
Dlv_imgbtn.c229 coords.y2 += th; in draw_main()
246 coords_part.y2 = coords.y1 + header.h - 1; in draw_main()
257 coords_part.y2 = coords.y1 + header.h - 1; in draw_main()
267 clip_area_center.y2 = coords.y2; in draw_main()
282 coords_part.y2 = coords_part.y1 + header.h - 1; in draw_main()

1234