2010-01-07 11:26:52 -08:00
|
|
|
#ifndef _ECORE_INPUT_EVAS_H
|
|
|
|
#define _ECORE_INPUT_EVAS_H
|
|
|
|
|
|
|
|
#include <Evas.h>
|
|
|
|
|
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
2018-01-18 01:04:03 -08:00
|
|
|
# ifdef EFL_BUILD
|
2010-01-07 11:26:52 -08:00
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
2018-01-18 01:04:03 -08:00
|
|
|
# endif
|
2010-01-07 11:26:52 -08:00
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
2018-01-18 01:04:03 -08:00
|
|
|
# endif
|
2010-01-07 11:26:52 -08:00
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void (*Ecore_Event_Mouse_Move_Cb)(void *window, int x, int y, unsigned int timestamp);
|
2010-12-07 19:25:23 -08:00
|
|
|
typedef void (*Ecore_Event_Multi_Move_Cb)(void *window, int device, int x, int y, double radius, double radius_x, double radius_y, double pressure, double angle, double mx, double my, unsigned int timestamp);
|
|
|
|
typedef void (*Ecore_Event_Multi_Down_Cb)(void *window, int device, int x, int y, double radius, double radius_x, double radius_y, double pressure, double angle, double mx, double my, Evas_Button_Flags flags, unsigned int timestamp);
|
|
|
|
typedef void (*Ecore_Event_Multi_Up_Cb)(void *window, int device, int x, int y, double radius, double radius_x, double radius_y, double pressure, double angle, double mx, double my, Evas_Button_Flags flags, unsigned int timestamp);
|
|
|
|
|
2010-09-24 22:58:42 -07:00
|
|
|
EAPI int ecore_event_evas_init(void);
|
|
|
|
EAPI int ecore_event_evas_shutdown(void);
|
2010-01-07 11:26:52 -08:00
|
|
|
|
2010-09-24 22:58:42 -07:00
|
|
|
EAPI Eina_Bool ecore_event_evas_key_down(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_key_up(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_button_up(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_button_down(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_wheel(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_move(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_in(void *data, int type, void *event);
|
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_out(void *data, int type, void *event);
|
2015-01-27 02:48:54 -08:00
|
|
|
EAPI Eina_Bool ecore_event_evas_axis_update(void *data, int type, void *event); /**< @since 1.13 */
|
2015-06-30 03:08:09 -07:00
|
|
|
EAPI Eina_Bool ecore_event_evas_mouse_button_cancel(void *data, int type, void *event); /**< @since 1.15 */
|
2010-01-07 11:26:52 -08:00
|
|
|
|
2010-12-07 19:25:23 -08:00
|
|
|
EAPI void ecore_event_window_register(Ecore_Window id, void *window, Evas *evas, Ecore_Event_Mouse_Move_Cb move_mouse, Ecore_Event_Multi_Move_Cb move_multi, Ecore_Event_Multi_Down_Cb down_multi, Ecore_Event_Multi_Up_Cb up_multi);
|
2010-09-24 22:58:42 -07:00
|
|
|
EAPI void ecore_event_window_unregister(Ecore_Window id);
|
|
|
|
EAPI void *ecore_event_window_match(Ecore_Window id);
|
|
|
|
EAPI void ecore_event_window_ignore_events(Ecore_Window id, int ignore_event);
|
2010-01-07 11:26:52 -08:00
|
|
|
|
2010-09-24 22:58:42 -07:00
|
|
|
EAPI void ecore_event_evas_modifier_lock_update(Evas *e, unsigned int modifiers);
|
2010-01-07 11:26:52 -08:00
|
|
|
|
2016-11-09 05:44:18 -08:00
|
|
|
EAPI void ecore_event_evas_seat_modifier_lock_update(Evas *e, unsigned int modifiers,
|
|
|
|
Evas_Device *seat); /**< @since 1.19 */
|
|
|
|
|
2016-05-10 21:01:54 -07:00
|
|
|
#ifdef ECORE_EVAS_INTERNAL
|
|
|
|
typedef Eina_Bool (*Ecore_Event_Direct_Input_Cb)(void *window, int type, const void *info);
|
|
|
|
EAPI void _ecore_event_window_direct_cb_set(Ecore_Window id, Ecore_Event_Direct_Input_Cb fptr);
|
|
|
|
#endif
|
|
|
|
|
2010-01-07 11:26:52 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-28 05:24:48 -07:00
|
|
|
#undef EAPI
|
|
|
|
#define EAPI
|
|
|
|
|
2010-01-07 11:26:52 -08:00
|
|
|
#endif
|