summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-04-26 07:17:04 +0200
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-04-26 15:07:36 +0900
commit3f389c6e1e102610d3c8a539f711f9e842540d3c (patch)
tree7420213acacdd330a3dd9f38c428f3d653d71f47 /src/lib/ecore_win32
parentfd9ec9d1afe172e9142faf02a73ab3c5a70410e4 (diff)
Ecore_Win32: add Property event API
@feature
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/Ecore_Win32.h19
-rw-r--r--src/lib/ecore_win32/ecore_win32.c3
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/ecore_win32/Ecore_Win32.h b/src/lib/ecore_win32/Ecore_Win32.h
index 77f6922879..19a8b2ccb1 100644
--- a/src/lib/ecore_win32/Ecore_Win32.h
+++ b/src/lib/ecore_win32/Ecore_Win32.h
@@ -308,6 +308,13 @@ typedef struct _Ecore_Win32_Event_Window_Configure Ecore_Win32_Event_Window
308typedef struct _Ecore_Win32_Event_Window_Resize Ecore_Win32_Event_Window_Resize; 308typedef struct _Ecore_Win32_Event_Window_Resize Ecore_Win32_Event_Window_Resize;
309 309
310/** 310/**
311 * @typedef Ecore_Win32_Event_Window_Property
312 * Event sent when the window properties are changed.
313 * @since 1.20
314 */
315typedef struct _Ecore_Win32_Event_Window_Property Ecore_Win32_Event_Window_Property;
316
317/**
311 * @typedef Ecore_Win32_Event_Window_Delete_Request 318 * @typedef Ecore_Win32_Event_Window_Delete_Request
312 * Event sent when the window is deleted. 319 * Event sent when the window is deleted.
313 */ 320 */
@@ -457,6 +464,17 @@ struct _Ecore_Win32_Event_Window_Resize
457}; 464};
458 465
459/** 466/**
467 * @struct _Ecore_Win32_Event_Window_Property
468 * Event sent when the window properties are changed.
469 * @since 1.20
470 */
471struct _Ecore_Win32_Event_Window_Property
472{
473 Ecore_Win32_Window *window; /**< The window that received the event */
474 unsigned long timestamp; /**< The time the event occurred */
475};
476
477/**
460 * @struct _Ecore_Win32_Event_Window_Delete_Request 478 * @struct _Ecore_Win32_Event_Window_Delete_Request
461 * Event sent when the window is deleted. 479 * Event sent when the window is deleted.
462 */ 480 */
@@ -510,6 +528,7 @@ EAPI extern int ECORE_WIN32_EVENT_WINDOW_HIDE; /**< Ecore_Event for the Ecore_Wi
510EAPI extern int ECORE_WIN32_EVENT_WINDOW_SHOW; /**< Ecore_Event for the Ecore_Win32_Event_Show event */ 528EAPI extern int ECORE_WIN32_EVENT_WINDOW_SHOW; /**< Ecore_Event for the Ecore_Win32_Event_Show event */
511EAPI extern int ECORE_WIN32_EVENT_WINDOW_CONFIGURE; /**< Ecore_Event for the Ecore_Win32_Event_Configure event */ 529EAPI extern int ECORE_WIN32_EVENT_WINDOW_CONFIGURE; /**< Ecore_Event for the Ecore_Win32_Event_Configure event */
512EAPI extern int ECORE_WIN32_EVENT_WINDOW_RESIZE; /**< Ecore_Event for the Ecore_Win32_Event_Resize event */ 530EAPI extern int ECORE_WIN32_EVENT_WINDOW_RESIZE; /**< Ecore_Event for the Ecore_Win32_Event_Resize event */
531EAPI extern int ECORE_WIN32_EVENT_WINDOW_PROPERTY; /**< Ecore_Event for the Ecore_Win32_Event_Property event @since 1.20 */
513EAPI extern int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_Win32_Event_Window_Delete_Request event */ 532EAPI extern int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_Win32_Event_Window_Delete_Request event */
514EAPI extern int ECORE_WIN32_EVENT_SELECTION_CLEAR; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Clear event @since 1.16 */ 533EAPI extern int ECORE_WIN32_EVENT_SELECTION_CLEAR; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Clear event @since 1.16 */
515EAPI extern int ECORE_WIN32_EVENT_SELECTION_NOTIFY; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Notify event @since 1.16 */ 534EAPI extern int ECORE_WIN32_EVENT_SELECTION_NOTIFY; /**< Ecore_Event for the #Ecore_Win32_Event_Selection_Notify event @since 1.16 */
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c
index 243647ed0c..d7e4961830 100644
--- a/src/lib/ecore_win32/ecore_win32.c
+++ b/src/lib/ecore_win32/ecore_win32.c
@@ -418,6 +418,7 @@ int ECORE_WIN32_EVENT_WINDOW_SHOW = 0;
418int ECORE_WIN32_EVENT_WINDOW_HIDE = 0; 418int ECORE_WIN32_EVENT_WINDOW_HIDE = 0;
419int ECORE_WIN32_EVENT_WINDOW_CONFIGURE = 0; 419int ECORE_WIN32_EVENT_WINDOW_CONFIGURE = 0;
420int ECORE_WIN32_EVENT_WINDOW_RESIZE = 0; 420int ECORE_WIN32_EVENT_WINDOW_RESIZE = 0;
421int ECORE_WIN32_EVENT_WINDOW_PROPERTY = 0;
421int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = 0; 422int ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = 0;
422int ECORE_WIN32_EVENT_SELECTION_CLEAR = 0; 423int ECORE_WIN32_EVENT_SELECTION_CLEAR = 0;
423int ECORE_WIN32_EVENT_SELECTION_NOTIFY = 0; 424int ECORE_WIN32_EVENT_SELECTION_NOTIFY = 0;
@@ -567,6 +568,7 @@ ecore_win32_init()
567 ECORE_WIN32_EVENT_WINDOW_HIDE = ecore_event_type_new(); 568 ECORE_WIN32_EVENT_WINDOW_HIDE = ecore_event_type_new();
568 ECORE_WIN32_EVENT_WINDOW_CONFIGURE = ecore_event_type_new(); 569 ECORE_WIN32_EVENT_WINDOW_CONFIGURE = ecore_event_type_new();
569 ECORE_WIN32_EVENT_WINDOW_RESIZE = ecore_event_type_new(); 570 ECORE_WIN32_EVENT_WINDOW_RESIZE = ecore_event_type_new();
571 ECORE_WIN32_EVENT_WINDOW_PROPERTY = ecore_event_type_new();
570 ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = ecore_event_type_new(); 572 ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST = ecore_event_type_new();
571 ECORE_WIN32_EVENT_SELECTION_CLEAR = ecore_event_type_new(); 573 ECORE_WIN32_EVENT_SELECTION_CLEAR = ecore_event_type_new();
572 ECORE_WIN32_EVENT_SELECTION_NOTIFY = ecore_event_type_new(); 574 ECORE_WIN32_EVENT_SELECTION_NOTIFY = ecore_event_type_new();
@@ -625,6 +627,7 @@ ecore_win32_shutdown()
625 ECORE_WIN32_EVENT_WINDOW_HIDE, 627 ECORE_WIN32_EVENT_WINDOW_HIDE,
626 ECORE_WIN32_EVENT_WINDOW_CONFIGURE, 628 ECORE_WIN32_EVENT_WINDOW_CONFIGURE,
627 ECORE_WIN32_EVENT_WINDOW_RESIZE, 629 ECORE_WIN32_EVENT_WINDOW_RESIZE,
630 ECORE_WIN32_EVENT_WINDOW_PROPERTY,
628 ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST, 631 ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST,
629 ECORE_WIN32_EVENT_SELECTION_CLEAR, 632 ECORE_WIN32_EVENT_SELECTION_CLEAR,
630 ECORE_WIN32_EVENT_SELECTION_NOTIFY); 633 ECORE_WIN32_EVENT_SELECTION_NOTIFY);