2019-01-28 10:38:24 -08:00
|
|
|
#ifndef SUITE_HELPERS_H
|
|
|
|
#define SUITE_HELPERS_H
|
|
|
|
|
|
|
|
#include <Evas.h>
|
|
|
|
|
2019-10-24 08:37:32 -07:00
|
|
|
#define DRAG_OBJECT_NUM_MOVES 4
|
2020-01-08 11:40:18 -08:00
|
|
|
#define DRAG_OBJECT_AROUND_NUM_MOVES 60
|
2019-10-24 08:37:32 -07:00
|
|
|
|
2019-01-28 10:38:24 -08:00
|
|
|
int suite_setup(Eina_Bool legacy);
|
|
|
|
void _elm2_suite_init(void);
|
|
|
|
void _elm_suite_shutdown(void);
|
2019-03-21 10:24:47 -07:00
|
|
|
void *real_timer_add(double in, Ecore_Task_Cb cb, void *data);
|
2020-01-09 07:02:26 -08:00
|
|
|
void wait_timer(double in);
|
2019-05-28 09:01:57 -07:00
|
|
|
void fail_on_errors_teardown(void);
|
|
|
|
void fail_on_errors_setup(void);
|
2019-10-31 06:02:47 -07:00
|
|
|
Eina_Bool is_forked(void);
|
2019-10-31 06:02:54 -07:00
|
|
|
Eina_Bool is_buffer(void);
|
|
|
|
void suite_setup_cb_set(void (*cb)(Eo*));
|
2019-01-28 10:38:24 -08:00
|
|
|
|
2019-06-26 09:23:32 -07:00
|
|
|
void get_me_to_those_events(Eo *obj);
|
2019-07-10 12:06:08 -07:00
|
|
|
void click_object(Eo *obj);
|
2019-10-21 07:34:57 -07:00
|
|
|
void click_object_flags(Eo *obj, int flags);
|
2019-07-10 12:15:19 -07:00
|
|
|
void click_part(Eo *obj, const char *part);
|
2019-10-21 07:34:57 -07:00
|
|
|
void click_part_flags(Eo *obj, const char *part, int flags);
|
2019-08-05 10:53:03 -07:00
|
|
|
void click_object_at(Eo *obj, int x, int y);
|
2019-10-21 07:34:57 -07:00
|
|
|
void click_object_at_flags(Eo *obj, int x, int y, int flags);
|
2020-01-09 07:04:06 -08:00
|
|
|
void press_object(Eo *obj);
|
|
|
|
void press_object_flags(Eo *obj, int flags);
|
|
|
|
void press_part(Eo *obj, const char *part);
|
|
|
|
void press_part_flags(Eo *obj, const char *part, int flags);
|
|
|
|
void press_object_at(Eo *obj, int x, int y);
|
|
|
|
void press_object_at_flags(Eo *obj, int x, int y, int flags);
|
2019-10-24 08:37:32 -07:00
|
|
|
void drag_object(Eo *obj, int x, int y, int dx, int dy, Eina_Bool iterate);
|
2020-01-08 11:40:18 -08:00
|
|
|
int drag_object_around(Eo *obj, int cx, int cy, int radius, int degrees);
|
2019-08-19 11:31:57 -07:00
|
|
|
void wheel_object(Eo *obj, Eina_Bool horiz, Eina_Bool down);
|
|
|
|
void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down);
|
|
|
|
void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
|
2019-08-20 08:32:15 -07:00
|
|
|
void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
2019-08-05 10:57:48 -07:00
|
|
|
void event_callback_that_quits_the_main_loop_when_called();
|
2019-10-21 07:30:45 -07:00
|
|
|
void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
|
2019-01-28 10:38:24 -08:00
|
|
|
#endif
|