Home
last modified time | relevance | path

Searched refs:last_id (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.4.0/examples/widgets/chart/
Dlv_example_chart_6.c10 static int32_t last_id = -1; in event_cb() local
15 last_id = lv_chart_get_pressed_point(obj); in event_cb()
16 if(last_id != LV_CHART_POINT_NONE) { in event_cb()
17 lv_chart_set_cursor_point(obj, cursor, NULL, last_id); in event_cb()
23 if(dsc->p1 == NULL || dsc->p2 == NULL || dsc->p1->y != dsc->p2->y || last_id < 0) return; in event_cb()
26 lv_coord_t v = data_array[last_id]; in event_cb()
Dlv_example_chart_6.py4 self.last_id = -1
44 self.last_id = chart.get_pressed_point()
45 if self.last_id != lv.CHART_POINT.NONE:
47 chart.get_point_pos_by_id(self.ser, self.last_id, p)
48 chart.set_cursor_point(self.cursor, None, self.last_id)
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:
59 v = self.ser_p[self.last_id]
/lvgl-3.4.0/src/core/
Dlv_event.c146 static uint32_t last_id = _LV_EVENT_LAST; in lv_event_register_id() local
147 last_id ++; in lv_event_register_id()
148 return last_id; in lv_event_register_id()