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:
Mike Blumenkrantz 2020-04-22 13:16:50 -04:00 committed by Stefan Schmidt
parent faed679d53
commit 03d56674c3
2 changed files with 9 additions and 0 deletions

View File

@ -619,6 +619,14 @@ event_callback_that_quits_the_main_loop_when_called()
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
click_object_at(Eo *obj, int x, int y)
{

View File

@ -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_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 smart_callback_that_stores_event_info_to_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info);
void force_render(Eo *win);