Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_line.c282 lv_point_t p1; in draw_line_skew() local
285 p1.y = point1->y; in draw_line_skew()
287 p1.x = point1->x; in draw_line_skew()
291 p1.y = point2->y; in draw_line_skew()
293 p1.x = point2->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/src/extra/widgets/chart/
Dlv_chart.c774 lv_point_t p1; in draw_div_lines() local
793 part_draw_dsc.p1 = NULL; in draw_div_lines()
805 p1.x = obj->coords.x1; in draw_div_lines()
816 p1.y = (int32_t)((int32_t)h * i) / (chart->hdiv_cnt - 1); in draw_div_lines()
817 p1.y += y_ofs; in draw_div_lines()
818 p2.y = p1.y; in draw_div_lines()
822 part_draw_dsc.p1 = &p1; in draw_div_lines()
827 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines()
834 p1.y = obj->coords.y1; in draw_div_lines()
844 p1.x = (int32_t)((int32_t)w * i) / (chart->vdiv_cnt - 1); in draw_div_lines()
[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()
37 a.x1 = dsc->p1->x; 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)
32 a.x1 = dsc.p1.x
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()
38 a.x1 = dsc->p1->x; in draw_event_cb()
40 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
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()
34 a.y2 = dsc->p1->y - 5; in event_cb()
36 a.x1 = dsc->p1->x + 10; in 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)
40 a.x1 = dsc.p1.x
42 a.y1 = min(dsc.p1.y, dsc.p2.y)
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:
67 a.y2 = dsc.p1.y - 5
69 a.x1 = dsc.p1.x + 10
/lvgl-3.7.0/src/draw/
Dlv_draw_label.c310 lv_point_t p1; in lv_draw_label() local
312 p1.x = pos_x_start; in lv_draw_label()
313 p1.y = pos.y + (dsc->font->line_height / 2) + line_dsc.width / 2; 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()
321 lv_point_t p1; in lv_draw_label() local
323 p1.x = pos_x_start; in lv_draw_label()
324 p1.y = pos.y + dsc->font->line_height - dsc->font->base_line - font->underline_position; 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.c315 param->cfg.p1.x = p1x; in lv_draw_mask_line_points_init()
316 param->cfg.p1.y = p1y; in lv_draw_mask_line_points_init()
1254 lv_point_t p1; in lv_draw_mask_polygon() member
1261 lv_point_t p1 = param->cfg.points[i]; 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()
1271 lines[line_cnt].p1 = p1; in lv_draw_mask_polygon()
[all …]
Dlv_draw_mask.h106 lv_point_t p1; member
/lvgl-3.7.0/src/widgets/
Dlv_line.c183 lv_point_t p1; in lv_line_event() local
185 p1.x = line->point_array[i].x + x_ofs; in lv_line_event()
189 p1.y = line->point_array[i].y + y_ofs; in lv_line_event()
193 p1.y = h - line->point_array[i].y + y_ofs; in lv_line_event()
196 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_line_event()
Dlv_arc.c667 part_draw_dsc.p1 = &center; in lv_arc_draw()
692 part_draw_dsc.p1 = &center; in lv_arc_draw()
/lvgl-3.7.0/examples/anim/
Dlv_example_anim_3.c22 uint16_t p1; 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()
107 ginfo.p1 = lv_slider_get_value(slider); in slider_event_cb()
108 lv_snprintf(buf, sizeof(buf), "p1:%d", ginfo.p1); in slider_event_cb()
Dlv_example_anim_3.py20 self.p1 = 0
87 step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
96 self.p1 = slider.get_value()
97 label.set_text("p1: {:d}".format(self.p1))
117 step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
/lvgl-3.7.0/src/extra/widgets/span/
Dlv_span.c997 lv_point_t p1; in lv_draw_span() local
999 p1.x = txt_pos.x; in lv_draw_span()
1000 p1.y = pos.y + ((pinfo->line_h - line_space) >> 1) + (line_dsc.width >> 1); 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()
1007 lv_point_t p1; in lv_draw_span() local
1009 p1.x = txt_pos.x; in lv_draw_span()
1010p1.y = pos.y + pinfo->line_h - line_space - pinfo->font->base_line - pinfo->font->underline_positi… 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/src/core/
Dlv_obj_draw.h58p1; /**< A point calculated during drawing. E.g. a point of chart or the center of an… member
/lvgl-3.7.0/docs/widgets/extra/
Dmeter.md68 - `p1` center of the arc
71 - `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/extra/widgets/meter/
Dlv_meter.c367 part_draw_dsc.p1 = &scale_center; in draw_arcs()
490 part_draw_dsc.p1 = &p_center; in draw_ticks_and_labels()
573 part_draw_dsc.p1 = &scale_center; in draw_needles()
594 part_draw_dsc.p1 = &scale_center; in draw_needles()
596 lv_draw_line(draw_ctx, &line_dsc, part_draw_dsc.p1, &p_end); in draw_needles()
/lvgl-3.7.0/docs/widgets/core/
Darc.md76 - `p1`: center of the arc
81 - `p1`: center of the arc
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c81 float p1; member
347 …float apt = (1.0f - t) * inv_t_sq * cp.p0 + 3.0f * inv_t_sq * t * cp.p1 + 3.0f * (1.0f - 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()
1379 a.x1 = dsc->p1->x; 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/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
4156 recon[i + 1] = s1 + paethPredictor(r1, p1, q1); in unfilterScanline()
4165 unsigned char p0 = precon[i + 0], p1 = precon[i + 1], p2 = precon[i + 2]; in unfilterScanline() local
4168 recon[i + 1] = s1 + paethPredictor(r1, p1, q1); in unfilterScanline()
4176 unsigned char p0 = precon[i + 0], p1 = precon[i + 1]; in unfilterScanline() local
4179 recon[i + 1] = s1 + paethPredictor(r1, p1, q1); in unfilterScanline()
/lvgl-3.7.0/docs/overview/
Ddrawing.md171 const lv_point_t * p1; // A point calculated during drawing. E.g. a point of a chart o…