/lvgl-3.4.0/src/draw/sw/ |
D | lv_draw_sw_line.c | 284 lv_point_t p2; in draw_line_skew() local 287 p2.y = point2->y; in draw_line_skew() 289 p2.x = point2->x; in draw_line_skew() 293 p2.y = point1->y; in draw_line_skew() 295 p2.x = point1->x; in draw_line_skew() 298 int32_t xdiff = p2.x - p1.x; in draw_line_skew() 299 int32_t ydiff = p2.y - p1.y; in draw_line_skew() 320 blend_area.x1 = LV_MIN(p1.x, p2.x) - w; in draw_line_skew() 321 blend_area.x2 = LV_MAX(p1.x, p2.x) + w; in draw_line_skew() 322 blend_area.y1 = LV_MIN(p1.y, p2.y) - w; in draw_line_skew() [all …]
|
/lvgl-3.4.0/src/extra/widgets/chart/ |
D | lv_chart.c | 776 lv_point_t p2; in draw_div_lines() local 795 part_draw_dsc.p2 = NULL; in draw_div_lines() 807 p2.x = obj->coords.x2; in draw_div_lines() 819 p2.y = p1.y; in draw_div_lines() 824 part_draw_dsc.p2 = &p2; in draw_div_lines() 828 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines() 836 p2.y = obj->coords.y2; in draw_div_lines() 847 p2.x = p1.x; in draw_div_lines() 852 part_draw_dsc.p2 = &p2; in draw_div_lines() 856 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines() [all …]
|
/lvgl-3.4.0/examples/widgets/chart/ |
D | lv_example_chart_2.c | 15 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, LV… in draw_event_cb() 36 a.x2 = dsc->p2->x - 1; in draw_event_cb() 37 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb() 49 if(dsc->line_dsc == NULL || dsc->p1 == NULL || dsc->p2 == NULL) return; in draw_event_cb() 52 if(dsc->p1->x == dsc->p2->x) { in draw_event_cb()
|
D | lv_example_chart_2.py | 9 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)
|
D | lv_example_chart_8.c | 24 if (!dsc->p1 || !dsc->p2) in draw_event_cb() 29 …lv_draw_mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, LV… in draw_event_cb() 40 a.x2 = dsc->p2->x; in draw_event_cb() 41 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
|
D | lv_example_chart_8.py | 25 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)
|
D | lv_example_chart_6.c | 23 if(dsc->p1 == NULL || dsc->p2 == NULL || dsc->p1->y != dsc->p2->y || last_id < 0) return; in event_cb()
|
D | lv_example_chart_6.py | 57 …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.4.0/src/widgets/ |
D | lv_line.c | 174 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.4.0/src/draw/ |
D | lv_draw_label.c | 311 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()
|
D | lv_draw_mask.c | 316 param->cfg.p2.x = p2x; in lv_draw_mask_line_points_init() 317 param->cfg.p2.y = p2y; in lv_draw_mask_line_points_init() 1260 lv_point_t p2; in lv_draw_mask_polygon() member 1267 lv_point_t p2 = param->cfg.points[i + 1 < param->cfg.point_cnt ? i + 1 : 0]; in lv_draw_mask_polygon() local 1268 int pdiff = p1.y - p2.y, psign = pdiff / LV_ABS(pdiff); 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 = p2; in lv_draw_mask_polygon() 1272 lines[line_cnt].p2 = p1; in lv_draw_mask_polygon() 1275 if(abs_y < p1.y || abs_y > p2.y) continue; in lv_draw_mask_polygon() 1277 lines[line_cnt].p2 = p2; in lv_draw_mask_polygon() [all …]
|
D | lv_draw_mask.h | 112 lv_point_t p2; member
|
/lvgl-3.4.0/examples/anim/ |
D | lv_example_anim_3.c | 23 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()
|
D | lv_example_anim_3.py | 21 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.4.0/src/core/ |
D | lv_obj_draw.h | 53 …const lv_point_t * p2; /**< A point calculated during drawing. E.g. a point of chart.… member
|
/lvgl-3.4.0/src/extra/widgets/span/ |
D | lv_span.c | 985 lv_point_t p2; in lv_draw_span() local 988 p2.x = pos.x; in lv_draw_span() 989 p2.y = p1.y; in lv_draw_span() 990 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_span() 995 lv_point_t p2; in lv_draw_span() local 998 p2.x = pos.x; in lv_draw_span() 999 p2.y = p1.y; in lv_draw_span() 1000 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in lv_draw_span()
|
/lvgl-3.4.0/docs/widgets/extra/ |
D | meter.md | 75 - `p1`, `p2` points of the line 80 - `p1`, `p2` points of the line
|
D | chart.md | 141 - `p1`, `p2`: points of the line 147 - `p1`, `p2`: points of the line 161 - `p1`, `p2`: points of the line
|
/lvgl-3.4.0/demos/widgets/ |
D | lv_demo_widgets.c | 1323 if(dsc->p1 && dsc->p2) { in chart_event_cb() 1325 …mask_line_points_init(&line_mask_param, dsc->p1->x, dsc->p1->y, dsc->p2->x, dsc->p2->y, LV_DRAW_MA… in chart_event_cb() 1346 a.x2 = dsc->p2->x - 1; in chart_event_cb() 1347 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in chart_event_cb()
|
/lvgl-3.4.0/src/extra/widgets/meter/ |
D | lv_meter.c | 602 part_draw_dsc.p2 = &p_end; in draw_needles()
|
/lvgl-3.4.0/docs/overview/ |
D | drawing.md | 176 const lv_point_t * p2; // A point calculated during drawing. E.g. a point of a chart.
|
/lvgl-3.4.0/src/extra/libs/png/ |
D | lodepng.c | 4155 … unsigned char p0 = precon[i + 0], p1 = precon[i + 1], p2 = precon[i + 2], p3 = precon[i + 3]; in unfilterScanline() local 4159 recon[i + 2] = s2 + paethPredictor(r2, p2, q2); in unfilterScanline() 4167 unsigned char p0 = precon[i + 0], p1 = precon[i + 1], p2 = precon[i + 2]; in unfilterScanline() local 4171 recon[i + 2] = s2 + paethPredictor(r2, p2, q2); in unfilterScanline()
|