Lines Matching refs:p2
775 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()
862 part_draw_dsc.p2 = NULL; in draw_div_lines()
881 lv_point_t p2; in draw_series_line() local
922 p2.x = x_ofs; in draw_series_line()
928 p2.y = h - y_tmp + y_ofs; in draw_series_line()
939 lv_coord_t y_min = p2.y; in draw_series_line()
940 lv_coord_t y_max = p2.y; in draw_series_line()
943 p1.x = p2.x; in draw_series_line()
944 p1.y = p2.y; in draw_series_line()
947 p2.x = ((w * i) / (chart->point_cnt - 1)) + x_ofs; in draw_series_line()
953 p2.y = h - y_tmp + y_ofs; in draw_series_line()
955 if(p2.x < clip_area_ori->x1 - point_w - 1) { in draw_series_line()
965 y_max = LV_MAX(y_max, p2.y); in draw_series_line()
966 y_min = LV_MIN(y_min, p2.y); in draw_series_line()
967 if(p1.x != p2.x) { in draw_series_line()
968 lv_coord_t y_cur = p2.y; in draw_series_line()
969 p2.x--; /*It's already on the next x value*/ in draw_series_line()
970 p1.x = p2.x; in draw_series_line()
972 p2.y = y_max; 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()
975 p2.x++; /*Compensate the previous x--*/ in draw_series_line()
990 part_draw_dsc.p2 = ser->y_points[p_act] != LV_CHART_POINT_NONE ? &p2 : NULL; in draw_series_line()
997 lv_draw_line(draw_ctx, &line_dsc_default, &p1, &p2); in draw_series_line()
1016 point_area.x1 = p2.x - point_w; in draw_series_line()
1017 point_area.x2 = p2.x + point_w; in draw_series_line()
1018 point_area.y1 = p2.y - point_h; in draw_series_line()
1019 point_area.y2 = p2.y + point_h; in draw_series_line()
1023 part_draw_dsc.p2 = NULL; in draw_series_line()
1050 lv_point_t p2; in draw_series_scatter() local
1084 p2.x = x_ofs; in draw_series_scatter()
1089 …p2.x = lv_map(ser->x_points[p_act], chart->xmin[ser->x_axis_sec], chart->xmax[ser->x_axis_sec], 0,… in draw_series_scatter()
1090 p2.x += x_ofs; in draw_series_scatter()
1092 …p2.y = lv_map(ser->y_points[p_act], chart->ymin[ser->y_axis_sec], chart->ymax[ser->y_axis_sec], 0,… in draw_series_scatter()
1093 p2.y = h - p2.y; in draw_series_scatter()
1094 p2.y += y_ofs; in draw_series_scatter()
1097 p2.x = LV_COORD_MIN; in draw_series_scatter()
1098 p2.y = LV_COORD_MIN; in draw_series_scatter()
1111 p1.x = p2.x; in draw_series_scatter()
1112 p1.y = p2.y; in draw_series_scatter()
1116 …p2.y = lv_map(ser->y_points[p_act], chart->ymin[ser->y_axis_sec], chart->ymax[ser->y_axis_sec], 0,… in draw_series_scatter()
1117 p2.y = h - p2.y; in draw_series_scatter()
1118 p2.y += y_ofs; in draw_series_scatter()
1120 …p2.x = lv_map(ser->x_points[p_act], chart->xmin[ser->x_axis_sec], chart->xmax[ser->x_axis_sec], 0,… in draw_series_scatter()
1121 p2.x += x_ofs; in draw_series_scatter()
1138 part_draw_dsc.p2 = ser->y_points[p_act] != LV_CHART_POINT_NONE ? &p2 : NULL; in draw_series_scatter()
1145 lv_draw_line(draw_ctx, &line_dsc_default, &p1, &p2); in draw_series_scatter()
1161 point_area.x1 = p2.x - point_w; in draw_series_scatter()
1162 point_area.x2 = p2.x + point_w; in draw_series_scatter()
1163 point_area.y1 = p2.y - point_h; in draw_series_scatter()
1164 point_area.y2 = p2.y + point_h; in draw_series_scatter()
1168 part_draw_dsc.p2 = NULL; in draw_series_scatter()
1280 lv_point_t p2; in draw_cursors() local
1314 part_draw_dsc.p2 = &p2; in draw_cursors()
1350 p2.x = cursor->dir & LV_DIR_RIGHT ? obj->coords.x2 : cx; 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()
1366 p2.x = p1.x; in draw_cursors()
1367 p2.y = cursor->dir & LV_DIR_BOTTOM ? obj->coords.y2 : cy; in draw_cursors()
1370 lv_draw_line(draw_ctx, &line_dsc_tmp, &p1, &p2); in draw_cursors()
1399 lv_point_t p2; 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()
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()
1461 part_draw_dsc.p2 = &p2; in draw_y_ticks()
1482 a.y1 = p2.y - size.y / 2; in draw_y_ticks()
1483 a.y2 = p2.y + size.y / 2; in draw_y_ticks()
1486 a.x1 = p2.x - size.x - label_gap; in draw_y_ticks()
1487 a.x2 = p2.x - label_gap; in draw_y_ticks()
1490 a.x1 = p2.x + label_gap; in draw_y_ticks()
1491 a.x2 = p2.x + size.x + label_gap; in draw_y_ticks()
1507 p2.y - line_dsc.width / 2 <= obj->coords.y2) { in draw_y_ticks()
1508 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_y_ticks()
1527 lv_point_t p2; in draw_x_ticks() local
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()
1592 part_draw_dsc.p2 = &p2; in draw_x_ticks()
1620 a.x1 = (p2.x - size.x / 2); in draw_x_ticks()
1621 a.x2 = (p2.x + size.x / 2); in draw_x_ticks()
1623 a.y2 = p2.y - label_gap; in draw_x_ticks()
1627 a.y1 = p2.y + label_gap; in draw_x_ticks()
1644 p2.x - line_dsc.width / 2 <= obj->coords.x2) { in draw_x_ticks()
1645 lv_draw_line(draw_ctx, &line_dsc, &p1, &p2); in draw_x_ticks()