Home
last modified time | relevance | path

Searched refs:point_cnt (Results 1 – 16 of 16) sorted by relevance

/lvgl-3.6.0/src/draw/sw/
Dlv_draw_sw_polygon.c48 uint16_t point_cnt) in lv_draw_sw_polygon() argument
51 if(point_cnt < 3) return; in lv_draw_sw_polygon()
55 lv_point_t * p = lv_mem_buf_get(point_cnt * sizeof(lv_point_t)); in lv_draw_sw_polygon()
60 for(i = 0; i < point_cnt - 1; i++) { in lv_draw_sw_polygon()
67 if(points[0].x != points[point_cnt - 1].x || points[0].y != points[point_cnt - 1].y) { in lv_draw_sw_polygon()
68 p[pcnt] = points[point_cnt - 1]; in lv_draw_sw_polygon()
72 point_cnt = pcnt; in lv_draw_sw_polygon()
73 if(point_cnt < 3) { in lv_draw_sw_polygon()
80 for(i = 0; i < point_cnt; i++) { in lv_draw_sw_polygon()
102 for(i = 1; i < point_cnt; i++) { in lv_draw_sw_polygon()
[all …]
Dlv_draw_sw.h73 const lv_point_t * points, uint16_t point_cnt);
/lvgl-3.6.0/src/draw/sdl/
Dlv_draw_sdl_polygon.c44 uint16_t point_cnt) in lv_draw_sdl_polygon() argument
46 if(point_cnt < 3) return; in lv_draw_sdl_polygon()
50 lv_draw_mask_polygon_init(&polygon_param, points, point_cnt); in lv_draw_sdl_polygon()
52 if(polygon_param.cfg.point_cnt < 3) { in lv_draw_sdl_polygon()
60 for(i = 0; i < point_cnt; i++) { in lv_draw_sdl_polygon()
Dlv_draw_sdl.c38 uint16_t point_cnt);
/lvgl-3.6.0/src/draw/
Dlv_draw_triangle.c39 uint16_t point_cnt) in lv_draw_polygon() argument
41 draw_ctx->draw_polygon(draw_ctx, draw_dsc, points, point_cnt); in lv_draw_polygon()
Dlv_draw_triangle.h31 uint16_t point_cnt);
Dlv_draw_mask.h214 uint16_t point_cnt; member
383 …_polygon_init(lv_draw_mask_polygon_param_t * param, const lv_point_t * points, uint16_t point_cnt);
Dlv_draw.h97 const lv_point_t * points, uint16_t point_cnt);
Dlv_draw_mask.c568 …k_polygon_init(lv_draw_mask_polygon_param_t * param, const lv_point_t * points, uint16_t point_cnt) in lv_draw_mask_polygon_init() argument
571 lv_point_t * p = lv_mem_alloc(point_cnt * sizeof(lv_point_t)); in lv_draw_mask_polygon_init()
576 for(i = 0; i < point_cnt - 1; i++) { in lv_draw_mask_polygon_init()
583 if(points[0].x != points[point_cnt - 1].x || points[0].y != points[point_cnt - 1].y) { in lv_draw_mask_polygon_init()
584 p[pcnt] = points[point_cnt - 1]; in lv_draw_mask_polygon_init()
588 param->cfg.point_cnt = pcnt; in lv_draw_mask_polygon_init()
1263 for(i = 0; i < param->cfg.point_cnt; i++) { in lv_draw_mask_polygon()
1265 lv_point_t p2 = param->cfg.points[i + 1 < param->cfg.point_cnt ? i + 1 : 0]; in lv_draw_mask_polygon()
/lvgl-3.6.0/tests/src/test_cases/
Dtest_line.c45 uint16_t point_cnt = (uint16_t) sizeof(points) / sizeof(lv_point_t); in test_line_size_should_be_updated_after_adding_points() local
46 lv_line_set_points(line, points, point_cnt); in test_line_size_should_be_updated_after_adding_points()
53 for(point_idx = 0; point_idx < point_cnt; point_idx++) { in test_line_size_should_be_updated_after_adding_points()
/lvgl-3.6.0/src/extra/widgets/chart/
Dlv_chart.c93 ser->x_points = lv_mem_alloc(sizeof(lv_point_t) * chart->point_cnt); in lv_chart_set_type()
109 if(chart->point_cnt == cnt) return; in lv_chart_set_point_count()
123 chart->point_cnt = cnt; in lv_chart_set_point_count()
259 return chart->point_cnt; in lv_chart_get_point_count()
277 if(id >= chart->point_cnt) { in lv_chart_get_point_pos_by_id()
288 p_out->x = (w * id) / (chart->point_cnt - 1); in lv_chart_get_point_pos_by_id()
301 lv_coord_t block_w = (w - ((chart->point_cnt - 1) * block_gap)) / chart->point_cnt; in lv_chart_get_point_pos_by_id()
310 p_out->x = (int32_t)((int32_t)(w + block_gap) * id) / chart->point_cnt; in lv_chart_get_point_pos_by_id()
322 id = ((int32_t)start_point + id) % chart->point_cnt; in lv_chart_get_point_pos_by_id()
356 ser->y_points = lv_mem_alloc(sizeof(lv_coord_t) * chart->point_cnt); in lv_chart_add_series()
[all …]
Dlv_chart.h114 uint16_t point_cnt; /**< Point number in a data line*/ member
/lvgl-3.6.0/src/widgets/
Dlv_canvas.h229 void lv_canvas_draw_line(lv_obj_t * canvas, const lv_point_t points[], uint32_t point_cnt,
239 void lv_canvas_draw_polygon(lv_obj_t * canvas, const lv_point_t points[], uint32_t point_cnt,
Dlv_canvas.c639 void lv_canvas_draw_line(lv_obj_t * canvas, const lv_point_t points[], uint32_t point_cnt, in lv_canvas_draw_line() argument
670 for(i = 0; i < point_cnt - 1; i++) { in lv_canvas_draw_line()
681 void lv_canvas_draw_polygon(lv_obj_t * canvas, const lv_point_t points[], uint32_t point_cnt, in lv_canvas_draw_polygon() argument
710 lv_draw_polygon(driver.draw_ctx, draw_dsc, points, point_cnt); in lv_canvas_draw_polygon()
/lvgl-3.6.0/docs/widgets/core/
Dline.md12 …array and passed to the object by the `lv_line_set_points(lines, point_array, point_cnt)` function.
Dcanvas.md49 - `lv_canvas_draw_line(canvas, point_array, point_cnt, &draw_dsc)`
50 - `lv_canvas_draw_polygon(canvas, points_array, point_cnt, &draw_dsc)`