forked from enlightenment/efl
tests/elm: add util callback for capturing event_info in smart callbacks
useful when we want to verify that e.g., a certain object item is passed Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11751
This commit is contained in:
parent
faed679d53
commit
03d56674c3
|
@ -619,6 +619,14 @@ event_callback_that_quits_the_main_loop_when_called()
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
smart_callback_that_stores_event_info_to_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||||
|
{
|
||||||
|
void **real_data = data;
|
||||||
|
|
||||||
|
*real_data = event_info;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
click_object_at(Eo *obj, int x, int y)
|
click_object_at(Eo *obj, int x, int y)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,6 +45,7 @@ void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
|
||||||
void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
||||||
void event_callback_that_quits_the_main_loop_when_called();
|
void event_callback_that_quits_the_main_loop_when_called();
|
||||||
void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
|
void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
|
||||||
|
void smart_callback_that_stores_event_info_to_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info);
|
||||||
|
|
||||||
void force_render(Eo *win);
|
void force_render(Eo *win);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue