Home
last modified time | relevance | path

Searched refs:event_cb (Results 1 – 25 of 55) sorted by relevance

123

/lvgl-3.7.0/src/core/
Dlv_event.c89 while(base && base->event_cb == NULL) base = base->base_class; in lv_obj_event_base()
92 if(base->event_cb == NULL) return LV_RES_OK; in lv_obj_event_base()
96 base->event_cb(base, e); in lv_obj_event_base()
157 struct _lv_event_dsc_t * lv_obj_add_event_cb(lv_obj_t * obj, lv_event_cb_t event_cb, lv_event_code_… in lv_obj_add_event_cb() argument
168 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].cb = event_cb; in lv_obj_add_event_cb()
175 bool lv_obj_remove_event_cb(lv_obj_t * obj, lv_event_cb_t event_cb) in lv_obj_remove_event_cb() argument
182 if(event_cb == NULL || obj->spec_attr->event_dsc[i].cb == event_cb) { in lv_obj_remove_event_cb()
199 bool lv_obj_remove_event_cb_with_user_data(lv_obj_t * obj, lv_event_cb_t event_cb, const void * use… in lv_obj_remove_event_cb_with_user_data() argument
206 if((event_cb == NULL || obj->spec_attr->event_dsc[i].cb == event_cb) && in lv_obj_remove_event_cb_with_user_data()
248 void * lv_obj_get_event_user_data(struct _lv_obj_t * obj, lv_event_cb_t event_cb) in lv_obj_get_event_user_data() argument
[all …]
Dlv_event.h235 struct _lv_event_dsc_t * lv_obj_add_event_cb(struct _lv_obj_t * obj, lv_event_cb_t event_cb, lv_eve…
244 bool lv_obj_remove_event_cb(struct _lv_obj_t * obj, lv_event_cb_t event_cb);
253 bool lv_obj_remove_event_cb_with_user_data(struct _lv_obj_t * obj, lv_event_cb_t event_cb,
271 void * lv_obj_get_event_user_data(struct _lv_obj_t * obj, lv_event_cb_t event_cb);
/lvgl-3.7.0/examples/widgets/msgbox/
Dlv_example_msgbox_1.py1 def event_cb(e): function
8 mbox1.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None)
Dlv_example_msgbox_1.c4 static void event_cb(lv_event_t * e) in event_cb() function
15 lv_obj_add_event_cb(mbox1, event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_msgbox_1()
/lvgl-3.7.0/examples/others/snapshot/
Dlv_example_snapshot_1.c4 static void event_cb(lv_event_t * e) in event_cb() function
53 lv_obj_add_event_cb(img, event_cb, LV_EVENT_PRESSED, snapshot_obj); in lv_example_snapshot_1()
54 lv_obj_add_event_cb(img, event_cb, LV_EVENT_RELEASED, snapshot_obj); in lv_example_snapshot_1()
Dlv_example_snapshot_1.py32 def event_cb(e, snapshot_obj): function
70 img.add_event_cb(lambda e: event_cb(e, snapshot_obj), lv.EVENT.PRESSED, None)
71 img.add_event_cb(lambda e: event_cb(e, snapshot_obj), lv.EVENT.RELEASED, None)
/lvgl-3.7.0/examples/event/
Dlv_example_event_1.c4 static void event_cb(lv_event_t * e) in event_cb() function
23 lv_obj_add_event_cb(btn, event_cb, LV_EVENT_CLICKED, NULL); in lv_example_event_1()
Dlv_example_event_1.py11 btn.add_event_cb(self.event_cb, lv.EVENT.CLICKED, None)
17 def event_cb(self,e): member in Event_1
Dlv_example_event_2.c4 static void event_cb(lv_event_t * e) in event_cb() function
43 lv_obj_add_event_cb(btn, event_cb, LV_EVENT_ALL, info_label); in lv_example_event_2()
Dlv_example_event_2.py1 def event_cb(e,label): function
22 btn.add_event_cb(lambda e: event_cb(e,info_label), lv.EVENT.ALL, None)
Dlv_example_event_3.c4 static void event_cb(lv_event_t * e) in event_cb() function
41 lv_obj_add_event_cb(cont, event_cb, LV_EVENT_CLICKED, NULL); in lv_example_event_3()
Dlv_example_event_3.py1 def event_cb(e): function
32 cont.add_event_cb(event_cb, lv.EVENT.CLICKED, None)
Dlv_example_event_4.c28 static void event_cb(lv_event_t * e) in event_cb() function
62 lv_obj_add_event_cb(cont, event_cb, LV_EVENT_DRAW_MAIN, NULL); in lv_example_event_4()
/lvgl-3.7.0/examples/widgets/dropdown/
Dlv_example_dropdown_3.c4 static void event_cb(lv_event_t * e) in event_cb() function
40 lv_obj_add_event_cb(dropdown, event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_dropdown_3()
Dlv_example_dropdown_3.py21 def event_cb(e): function
52 dropdown.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None)
/lvgl-3.7.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_3.c4 static void event_cb(lv_event_t * e) in event_cb() function
52 lv_obj_add_event_cb(btnm, event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_btnmatrix_3()
Dlv_example_btnmatrix_3.py1 def event_cb(e): function
52 btnm.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None)
Dlv_example_btnmatrix_2.c4 static void event_cb(lv_event_t * e) in event_cb() function
73 lv_obj_add_event_cb(btnm, event_cb, LV_EVENT_ALL, NULL); in lv_example_btnmatrix_2()
/lvgl-3.7.0/examples/widgets/bar/
Dlv_example_bar_6.c9 static void event_cb(lv_event_t * e) in event_cb() function
53 lv_obj_add_event_cb(bar, event_cb, LV_EVENT_DRAW_PART_END, NULL); in lv_example_bar_6()
Dlv_example_bar_6.py4 def event_cb(e): function
41 bar.add_event_cb(event_cb, lv.EVENT.DRAW_PART_END, None)
Dtest.py7 def event_cb(e): function
44 bar.add_event_cb(event_cb, lv.EVENT.DRAW_PART_END, None)
/lvgl-3.7.0/examples/widgets/chart/
Dlv_example_chart_4.c4 static void event_cb(lv_event_t * e) in event_cb() function
69 lv_obj_add_event_cb(chart, event_cb, LV_EVENT_ALL, NULL); in lv_example_chart_4()
Dlv_example_chart_4.py1 def event_cb(e): function
53 chart.add_event_cb(event_cb, lv.EVENT.ALL, None)
Dlv_example_chart_6.c8 static void event_cb(lv_event_t * e) in event_cb() function
69 lv_obj_add_event_cb(chart, event_cb, LV_EVENT_ALL, NULL); in lv_example_chart_6()
/lvgl-3.7.0/tests/src/test_cases/
Dtest_event.c15 .event_cb = event_object_deletion_cb,

123