Ecore_Win32: add Property event API

@feature
This commit is contained in:
Vincent Torri 2017-04-26 07:17:04 +02:00 committed by Carsten Haitzler (Rasterman)
parent fd9ec9d1af
commit 3f389c6e1e
2 changed files with 22 additions and 0 deletions

View File

@ -307,6 +307,13 @@ typedef struct _Ecore_Win32_Event_Window_Configure Ecore_Win32_Event_Window
*/
typedef struct _Ecore_Win32_Event_Window_Resize Ecore_Win32_Event_Window_Resize;
/**
* @typedef Ecore_Win32_Event_Window_Property
* Event sent when the window properties are changed.
* @since 1.20
*/
typedef struct _Ecore_Win32_Event_Window_Property Ecore_Win32_Event_Window_Property;
/**
* @typedef Ecore_Win32_Event_Window_Delete_Request
* Event sent when the window is deleted.
@ -456,6 +463,17 @@ struct _Ecore_Win32_Event_Window_Resize
unsigned long timestamp; /**< The time the event occurred */
};
/**
* @struct _Ecore_Win32_Event_Window_Property
* Event sent when the window properties are changed.
* @since 1.20
*/
struct _Ecore_Win32_Event_Window_Property
{
Ecore_Win32_Window *window; /**< The window that received the event */
unsigned long timestamp; /**< The time the event occurred */
};
/**
* @struct _Ecore_Win32_Event_Window_Delete_Request
* Event sent when the window is deleted.
@ -510,6 +528,7 @@ EAPI extern int ECORE_WIN32_EVENT_WINDOW_HIDE; /**< Ecore_Event for the Ecore_Wi
EAPI extern int ECORE_WIN32_EVENT_WINDOW_SHOW; /**< Ecore_Event for the Ecore_Win32_Event_Show event */
EAPI extern int ECORE_WIN32_EVENT_WINDOW_CONFIGURE; /**< Ecore_Event for the Ecore_Win32_Event_Configure event */
EAPI extern int ECORE_WIN32_EVENT_WINDOW_RESIZE; /**< Ecore_Event for the Ecore_Win32_Event_Resize event */
EAPI extern int ECORE_WIN32_EVENT_WINDOW_PROPERTY; /**< Ecore_Event for the Ecore_Win32_Event_Property event @since 1.20 */
EAPI extern int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_Win32_Event_Window_Delete_Request event */
EAPI extern int ECORE_WIN32_EVENT_SELECTION_CLEAR; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Clear event @since 1.16 */
EAPI extern int ECORE_WIN32_EVENT_SELECTION_NOTIFY; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Notify event @since 1.16 */

View File

@ -418,6 +418,7 @@ int ECORE_WIN32_EVENT_WINDOW_SHOW = 0;
int ECORE_WIN32_EVENT_WINDOW_HIDE = 0;
int ECORE_WIN32_EVENT_WINDOW_CONFIGURE = 0;
int ECORE_WIN32_EVENT_WINDOW_RESIZE = 0;
int ECORE_WIN32_EVENT_WINDOW_PROPERTY = 0;
int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = 0;
int ECORE_WIN32_EVENT_SELECTION_CLEAR = 0;
int ECORE_WIN32_EVENT_SELECTION_NOTIFY = 0;
@ -567,6 +568,7 @@ ecore_win32_init()
ECORE_WIN32_EVENT_WINDOW_HIDE = ecore_event_type_new();
ECORE_WIN32_EVENT_WINDOW_CONFIGURE = ecore_event_type_new();
ECORE_WIN32_EVENT_WINDOW_RESIZE = ecore_event_type_new();
ECORE_WIN32_EVENT_WINDOW_PROPERTY = ecore_event_type_new();
ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = ecore_event_type_new();
ECORE_WIN32_EVENT_SELECTION_CLEAR = ecore_event_type_new();
ECORE_WIN32_EVENT_SELECTION_NOTIFY = ecore_event_type_new();
@ -625,6 +627,7 @@ ecore_win32_shutdown()
ECORE_WIN32_EVENT_WINDOW_HIDE,
ECORE_WIN32_EVENT_WINDOW_CONFIGURE,
ECORE_WIN32_EVENT_WINDOW_RESIZE,
ECORE_WIN32_EVENT_WINDOW_PROPERTY,
ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST,
ECORE_WIN32_EVENT_SELECTION_CLEAR,
ECORE_WIN32_EVENT_SELECTION_NOTIFY);