forked from enlightenment/efl
ecore-wl2: Add dnd drop event type and event structure
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
2758d6fcba
commit
25f199969c
|
@ -79,6 +79,12 @@ typedef struct _Ecore_Wl2_Event_Dnd_Motion
|
|||
int x, y;
|
||||
} Ecore_Wl2_Event_Dnd_Motion;
|
||||
|
||||
typedef struct _Ecore_Wl2_Event_Dnd_Drop
|
||||
{
|
||||
unsigned int win, source;
|
||||
int x, y;
|
||||
} Ecore_Wl2_Event_Dnd_Drop;
|
||||
|
||||
typedef enum _Ecore_Wl2_Window_Type
|
||||
{
|
||||
ECORE_WL2_WINDOW_TYPE_NONE,
|
||||
|
@ -98,6 +104,7 @@ EAPI extern int ECORE_WL2_EVENT_FOCUS_OUT;
|
|||
EAPI extern int ECORE_WL2_EVENT_DND_ENTER;
|
||||
EAPI extern int ECORE_WL2_EVENT_DND_LEAVE;
|
||||
EAPI extern int ECORE_WL2_EVENT_DND_MOTION;
|
||||
EAPI extern int ECORE_WL2_EVENT_DND_DROP;
|
||||
|
||||
/**
|
||||
* @file
|
||||
|
|
|
@ -18,6 +18,7 @@ EAPI int ECORE_WL2_EVENT_FOCUS_OUT = 0;
|
|||
EAPI int ECORE_WL2_EVENT_DND_ENTER = 0;
|
||||
EAPI int ECORE_WL2_EVENT_DND_LEAVE = 0;
|
||||
EAPI int ECORE_WL2_EVENT_DND_MOTION = 0;
|
||||
EAPI int ECORE_WL2_EVENT_DND_DROP = 0;
|
||||
|
||||
static void
|
||||
_cb_wl_log_print(const char *format, va_list args)
|
||||
|
@ -67,6 +68,7 @@ ecore_wl2_init(void)
|
|||
ECORE_WL2_EVENT_DND_ENTER = ecore_event_type_new();
|
||||
ECORE_WL2_EVENT_DND_LEAVE = ecore_event_type_new();
|
||||
ECORE_WL2_EVENT_DND_MOTION = ecore_event_type_new();
|
||||
ECORE_WL2_EVENT_DND_DROP = ecore_event_type_new();
|
||||
}
|
||||
|
||||
wl_log_set_handler_server(_cb_wl_log_print);
|
||||
|
|
Loading…
Reference in New Issue