Lines Matching refs:p1

774     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()
845 p1.x += x_ofs; in draw_div_lines()
846 p2.x = p1.x; in draw_div_lines()
850 part_draw_dsc.p1 = &p1; in draw_div_lines()
855 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_div_lines()
861 part_draw_dsc.p1 = NULL; in draw_div_lines()
880 lv_point_t p1; in draw_series_line() local
921 p1.x = x_ofs; in draw_series_line()
943 p1.x = p2.x; in draw_series_line()
944 p1.y = p2.y; in draw_series_line()
946 if(p1.x > clip_area_ori->x2 + point_w + 1) break; in draw_series_line()
967 if(p1.x != p2.x) { in draw_series_line()
970 p1.x = p2.x; in draw_series_line()
971 p1.y = y_min; in draw_series_line()
973 … if(p1.y == p2.y) p2.y++; /*If they are the same no line will be drawn*/ in draw_series_line()
974 lv_draw_line(draw_ctx, &line_dsc_default, &p1, &p2); in draw_series_line()
983 point_area.x1 = p1.x - point_w; in draw_series_line()
984 point_area.x2 = p1.x + point_w; in draw_series_line()
985 point_area.y1 = p1.y - point_h; in draw_series_line()
986 point_area.y2 = p1.y + point_h; in draw_series_line()
989 part_draw_dsc.p1 = ser->y_points[p_prev] != LV_CHART_POINT_NONE ? &p1 : NULL; in draw_series_line()
997 lv_draw_line(draw_ctx, &line_dsc_default, &p1, &p2); in draw_series_line()
1022 part_draw_dsc.p1 = NULL; in draw_series_line()
1049 lv_point_t p1; in draw_series_scatter() local
1083 p1.x = x_ofs; in draw_series_scatter()
1111 p1.x = p2.x; in draw_series_scatter()
1112 p1.y = p2.y; in draw_series_scatter()
1131 point_area.x1 = p1.x - point_w; in draw_series_scatter()
1132 point_area.x2 = p1.x + point_w; in draw_series_scatter()
1133 point_area.y1 = p1.y - point_h; in draw_series_scatter()
1134 point_area.y2 = p1.y + point_h; in draw_series_scatter()
1137 part_draw_dsc.p1 = ser->y_points[p_prev] != LV_CHART_POINT_NONE ? &p1 : NULL; in draw_series_scatter()
1145 lv_draw_line(draw_ctx, &line_dsc_default, &p1, &p2); in draw_series_scatter()
1167 part_draw_dsc.p1 = NULL; in draw_series_scatter()
1279 lv_point_t p1; in draw_cursors() local
1313 part_draw_dsc.p1 = &p1; in draw_cursors()
1348 p1.x = cursor->dir & LV_DIR_LEFT ? obj->coords.x1 : cx; in draw_cursors()
1349 p1.y = cy; in draw_cursors()
1351 p2.y = p1.y; in draw_cursors()
1354 lv_draw_line(draw_ctx, &line_dsc_tmp, &p1, &p2); in draw_cursors()
1364 p1.x = cx; in draw_cursors()
1365 p1.y = cursor->dir & LV_DIR_TOP ? obj->coords.y1 : cy; in draw_cursors()
1366 p2.x = p1.x; in draw_cursors()
1370 lv_draw_line(draw_ctx, &line_dsc_tmp, &p1, &p2); in draw_cursors()
1398 lv_point_t p1; in draw_y_ticks() local
1444 p2.y = p1.y = y_ofs + (int32_t)((int32_t)(h - line_dsc.width) * i) / total_tick_num; in draw_y_ticks()
1447 p1.x = x_ofs; in draw_y_ticks()
1450 if(axis == LV_CHART_AXIS_PRIMARY_Y) p1.x--; in draw_y_ticks()
1451 else p1.x++; in draw_y_ticks()
1457 if(major) p2.x = p1.x - major_len; /*major tick*/ in draw_y_ticks()
1458 else p2.x = p1.x - minor_len; /*minor tick*/ in draw_y_ticks()
1460 part_draw_dsc.p1 = &p1; in draw_y_ticks()
1506 if(p1.y + line_dsc.width / 2 >= obj->coords.y1 && in draw_y_ticks()
1508 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_y_ticks()
1526 lv_point_t p1; in draw_x_ticks() local
1580 p1.y = y_ofs; in draw_x_ticks()
1586 p2.x = p1.x = x_ofs + (int32_t)((int32_t)(w - line_dsc.width) * i) / total_tick_num; in draw_x_ticks()
1588 if(sec_axis) p2.y = p1.y - (major ? t->major_len : t->minor_len); in draw_x_ticks()
1589 else p2.y = p1.y + (major ? t->major_len : t->minor_len); in draw_x_ticks()
1591 part_draw_dsc.p1 = &p1; in draw_x_ticks()
1643 if(p1.x + line_dsc.width / 2 >= obj->coords.x1 && in draw_x_ticks()
1645 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_x_ticks()