Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 23 of 23) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/chart/
Dlv_chart.c775 lv_point_t p2; in draw_div_lines() local
794 part_draw_dsc.p2 = NULL; in draw_div_lines()
806 p2.x = obj->coords.x2; in draw_div_lines()
818 p2.y = p1.y; in draw_div_lines()
823 part_draw_dsc.p2 = &p2; in draw_div_lines()
827 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines()
835 p2.y = obj->coords.y2; in draw_div_lines()
846 p2.x = p1.x; in draw_div_lines()
851 part_draw_dsc.p2 = &p2; in draw_div_lines()
855 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines()
[all …]
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_line.c283 lv_point_t p2; in draw_line_skew() local
286 p2.y = point2->y; in draw_line_skew()
288 p2.x = point2->x; in draw_line_skew()
292 p2.y = point1->y; in draw_line_skew()
294 p2.x = point1->x; in draw_line_skew()
297 int32_t xdiff = p2.x - p1.x; in draw_line_skew()
298 int32_t ydiff = p2.y - p1.y; in draw_line_skew()
319 blend_area.x1 = LV_MIN(p1.x, p2.x) - w; in draw_line_skew()
320 blend_area.x2 = LV_MAX(p1.x, p2.x) + w; in draw_line_skew()
321 blend_area.y1 = LV_MIN(p1.y, p2.y) - w; in draw_line_skew()
[all …]
/lvgl-3.7.0/examples/widgets/chart/
Dlv_example_chart_2.c15 if(!dsc->p1 || !dsc->p2) return; in draw_event_cb()
19 … lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, in draw_event_cb()
38 a.x2 = dsc->p2->x - 1; in draw_event_cb()
39 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
51 if(dsc->line_dsc == NULL || dsc->p1 == NULL || dsc->p2 == NULL) return; in draw_event_cb()
54 if(dsc->p1->x == dsc->p2->x) { in draw_event_cb()
Dlv_example_chart_2.py9 if not dsc.p1 or not dsc.p2:
14 … line_mask_param.points_init(dsc.p1.x, dsc.p1.y, dsc.p2.x, dsc.p2.y, lv.DRAW_MASK_LINE_SIDE.BOTTOM)
33 a.x2 = dsc.p2.x - 1
34 a.y1 = min(dsc.p1.y, dsc.p2.y)
Dlv_example_chart_8.c22 if(!dsc->p1 || !dsc->p2) in draw_event_cb()
27 … lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, in draw_event_cb()
39 a.x2 = dsc->p2->x; in draw_event_cb()
40 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
Dlv_example_chart_8.py25 if not dsc.p1 or not dsc.p2:
30 … line_mask_param.points_init(dsc.p1.x, dsc.p1.y, dsc.p2.x, dsc.p2.y, lv.DRAW_MASK_LINE_SIDE.BOTTOM)
41 a.x2 = dsc.p2.x
42 a.y1 = min(dsc.p1.y, dsc.p2.y)
Dlv_example_chart_6.c23 if(dsc->p1 == NULL || dsc->p2 == NULL || dsc->p1->y != dsc->p2->y || last_id < 0) return; in event_cb()
Dlv_example_chart_6.py57 …if dsc.part == lv.PART.CURSOR and dsc.p1 and dsc.p2 and dsc.p1.y == dsc.p2.y and self.last_id >= 0:
/lvgl-3.7.0/src/widgets/
Dlv_line.c184 lv_point_t p2; in lv_line_event() local
186 p2.x = line->point_array[i + 1].x + x_ofs; in lv_line_event()
190 p2.y = line->point_array[i + 1].y + y_ofs; in lv_line_event()
194 p2.y = h - line->point_array[i + 1].y + y_ofs; in lv_line_event()
196 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_line_event()
/lvgl-3.7.0/src/draw/
Dlv_draw_label.c311 lv_point_t p2; in lv_draw_label() local
314 p2.x = pos.x; in lv_draw_label()
315 p2.y = p1.y; in lv_draw_label()
317 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_label()
322 lv_point_t p2; in lv_draw_label() local
325 p2.x = pos.x; in lv_draw_label()
326 p2.y = p1.y; in lv_draw_label()
328 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_label()
Dlv_draw_mask.c317 param->cfg.p2.x = p2x; in lv_draw_mask_line_points_init()
318 param->cfg.p2.y = p2y; in lv_draw_mask_line_points_init()
1255 lv_point_t p2; in lv_draw_mask_polygon() member
1262 lv_point_t p2 = param->cfg.points[i + 1 < param->cfg.point_cnt ? i + 1 : 0]; in lv_draw_mask_polygon() local
1263 int pdiff = p1.y - p2.y, psign = pdiff / LV_ABS(pdiff); in lv_draw_mask_polygon()
1265 if(abs_y > p1.y || abs_y < p2.y) continue; in lv_draw_mask_polygon()
1266 lines[line_cnt].p1 = p2; in lv_draw_mask_polygon()
1267 lines[line_cnt].p2 = p1; in lv_draw_mask_polygon()
1270 if(abs_y < p1.y || abs_y > p2.y) continue; in lv_draw_mask_polygon()
1272 lines[line_cnt].p2 = p2; in lv_draw_mask_polygon()
[all …]
Dlv_draw_mask.h109 lv_point_t p2; member
/lvgl-3.7.0/examples/anim/
Dlv_example_anim_3.c23 uint16_t p2; member
68 int32_t step = lv_bezier3(t, 0, ginfo.p1, ginfo.p2, 1024); in anim_path_bezier3_cb()
80 int32_t step = lv_bezier3(t, 0, ginfo.p1, ginfo.p2, 1024); in refer_chart_cubic_bezier()
112 ginfo.p2 = lv_slider_get_value(slider); in slider_event_cb()
113 lv_snprintf(buf, sizeof(buf), "p2:%d", ginfo.p2); in slider_event_cb()
Dlv_example_anim_3.py21 self.p2 = 0
87 step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
100 self.p2 = slider.get_value()
101 label.set_text("p1: {:d}".format(self.p2))
117 step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
/lvgl-3.7.0/src/core/
Dlv_obj_draw.h59 const lv_point_t * p2; /**< A point calculated during drawing. E.g. a point of chart.*/ member
/lvgl-3.7.0/src/extra/widgets/span/
Dlv_span.c998 lv_point_t p2; in lv_draw_span() local
1001 p2.x = pos.x; in lv_draw_span()
1002 p2.y = p1.y; in lv_draw_span()
1003 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_span()
1008 lv_point_t p2; in lv_draw_span() local
1011 p2.x = pos.x; in lv_draw_span()
1012 p2.y = p1.y; in lv_draw_span()
1013 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_span()
/lvgl-3.7.0/docs/widgets/extra/
Dmeter.md71 - `p1`, `p2` points of the line
76 - `p1`, `p2` points of the line
Dchart.md137 - `p1`, `p2`: points of the line
143 - `p1`, `p2`: points of the line
157 - `p1`, `p2`: points of the line
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c82 float p2; member
347 …t) * inv_t_sq * cp.p0 + 3.0f * inv_t_sq * t * cp.p1 + 3.0f * (1.0f - t) * t_sq * cp.p2 + t * t_sq * in comp_bezier_point()
452 .p0 = ((float)fullarc.p0x), .p1 = a2x, .p2 = d2x, .p3 = pt2x in get_subarc_control_points()
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c1355 if(dsc->p1 && dsc->p2) { in chart_event_cb()
1357 … lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, in chart_event_cb()
1380 a.x2 = dsc->p2->x - 1; in chart_event_cb()
1381 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in chart_event_cb()
/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.c491 part_draw_dsc.p2 = &p_outer; in draw_ticks_and_labels()
593 part_draw_dsc.p2 = &p_end; in draw_needles()
/lvgl-3.7.0/docs/overview/
Ddrawing.md172 const lv_point_t * p2; // A point calculated during drawing. E.g. a point of a chart.
/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.c4153 … unsigned char p0 = precon[i + 0], p1 = precon[i + 1], p2 = precon[i + 2], p3 = precon[i + 3]; in unfilterScanline() local
4157 recon[i + 2] = s2 + paethPredictor(r2, p2, q2); in unfilterScanline()
4165 unsigned char p0 = precon[i + 0], p1 = precon[i + 1], p2 = precon[i + 2]; in unfilterScanline() local
4169 recon[i + 2] = s2 + paethPredictor(r2, p2, q2); in unfilterScanline()