Imported Upstream version 1.7.8
[platform/upstream/ecore.git] / src / lib / ecore_x / Ecore_X.h
1 #ifndef _ECORE_X_H
2 #define _ECORE_X_H
3
4 #include <Eina.h>
5
6 #ifdef EAPI
7 # undef EAPI
8 #endif // ifdef EAPI
9
10 #ifdef _MSC_VER
11 # ifdef BUILDING_DLL
12 #  define EAPI __declspec(dllexport)
13 # else // ifdef BUILDING_DLL
14 #  define EAPI __declspec(dllimport)
15 # endif // ifdef BUILDING_DLL
16 #else // ifdef _MSC_VER
17 # ifdef __GNUC__
18 #  if __GNUC__ >= 4
19 #   define EAPI __attribute__ ((visibility("default")))
20 #  else // if __GNUC__ >= 4
21 #   define EAPI
22 #  endif // if __GNUC__ >= 4
23 # else // ifdef __GNUC__
24 #  define EAPI
25 # endif // ifdef __GNUC__
26 #endif // ifdef _MSC_VER
27
28 #include <sys/types.h>
29
30 /**
31  * @file
32  * @brief Ecore functions for dealing with the X Windows System
33  *
34  * Ecore_X provides a wrapper and convenience functions for using the
35  * X Windows System.  Function groups for this part of the library
36  * include the following:
37  * @li @ref Ecore_X_Init_Group
38  * @li @ref Ecore_X_Display_Attr_Group
39  * @li @ref Ecore_X_Flush_Group
40  */
41
42 typedef unsigned int   Ecore_X_ID;
43 #ifndef _ECORE_X_WINDOW_PREDEF
44 typedef Ecore_X_ID     Ecore_X_Window;
45 #endif // ifndef _ECORE_X_WINDOW_PREDEF
46 typedef void          *Ecore_X_Visual;
47 typedef Ecore_X_ID     Ecore_X_Pixmap;
48 typedef Ecore_X_ID     Ecore_X_Drawable;
49 #ifdef HAVE_ECORE_X_XCB
50 typedef Ecore_X_ID     Ecore_X_GC;
51 #else // ifdef HAVE_ECORE_X_XCB
52 typedef void          *Ecore_X_GC;
53 #endif /* HAVE_ECORE_X_XCB */
54 typedef Ecore_X_ID     Ecore_X_Atom;
55 typedef Ecore_X_ID     Ecore_X_Colormap;
56 typedef Ecore_X_ID     Ecore_X_Time;
57 typedef Ecore_X_ID     Ecore_X_Cursor;
58 typedef void           Ecore_X_Display;
59 typedef void           Ecore_X_Connection;
60 typedef void           Ecore_X_Screen;
61 typedef Ecore_X_ID     Ecore_X_Sync_Counter;
62 typedef Ecore_X_ID     Ecore_X_Sync_Alarm;
63 typedef void           Ecore_X_XRegion;
64
65 typedef Ecore_X_ID     Ecore_X_Randr_Output;
66 typedef Ecore_X_ID     Ecore_X_Randr_Crtc;
67 typedef Ecore_X_ID     Ecore_X_Randr_Mode;
68 typedef unsigned short Ecore_X_Randr_Size_ID;
69 typedef int            Ecore_X_Randr_Screen;
70
71 typedef Ecore_X_ID     Ecore_X_Device;
72
73 #ifdef __cplusplus
74 extern "C" {
75 #endif // ifdef __cplusplus
76
77 typedef struct _Ecore_X_Rectangle
78 {
79    int          x, y;
80    unsigned int width, height;
81 } Ecore_X_Rectangle;
82
83 typedef struct _Ecore_X_Icon
84 {
85    unsigned int  width, height;
86    unsigned int *data;
87 } Ecore_X_Icon;
88
89 typedef enum _Ecore_X_GC_Value_Mask
90 {
91    ECORE_X_GC_VALUE_MASK_FUNCTION = (1L << 0),
92    ECORE_X_GC_VALUE_MASK_PLANE_MASK = (1L << 1),
93    ECORE_X_GC_VALUE_MASK_FOREGROUND = (1L << 2),
94    ECORE_X_GC_VALUE_MASK_BACKGROUND = (1L << 3),
95    ECORE_X_GC_VALUE_MASK_LINE_WIDTH = (1L << 4),
96    ECORE_X_GC_VALUE_MASK_LINE_STYLE = (1L << 5),
97    ECORE_X_GC_VALUE_MASK_CAP_STYLE = (1L << 6),
98    ECORE_X_GC_VALUE_MASK_JOIN_STYLE = (1L << 7),
99    ECORE_X_GC_VALUE_MASK_FILL_STYLE = (1L << 8),
100    ECORE_X_GC_VALUE_MASK_FILL_RULE = (1L << 9),
101    ECORE_X_GC_VALUE_MASK_TILE = (1L << 10),
102    ECORE_X_GC_VALUE_MASK_STIPPLE = (1L << 11),
103    ECORE_X_GC_VALUE_MASK_TILE_STIPPLE_ORIGIN_X = (1L << 12),
104    ECORE_X_GC_VALUE_MASK_TILE_STIPPLE_ORIGIN_Y = (1L << 13),
105    ECORE_X_GC_VALUE_MASK_FONT = (1L << 14),
106    ECORE_X_GC_VALUE_MASK_SUBWINDOW_MODE = (1L << 15),
107    ECORE_X_GC_VALUE_MASK_GRAPHICS_EXPOSURES = (1L << 16),
108    ECORE_X_GC_VALUE_MASK_CLIP_ORIGIN_X = (1L << 17),
109    ECORE_X_GC_VALUE_MASK_CLIP_ORIGIN_Y = (1L << 18),
110    ECORE_X_GC_VALUE_MASK_CLIP_MASK = (1L << 19),
111    ECORE_X_GC_VALUE_MASK_DASH_OFFSET = (1L << 20),
112    ECORE_X_GC_VALUE_MASK_DASH_LIST = (1L << 21),
113    ECORE_X_GC_VALUE_MASK_ARC_MODE = (1L << 22)
114 } Ecore_X_GC_Value_Mask;
115
116 typedef enum _Ecore_X_Composite_Update_Type
117 {
118    ECORE_X_COMPOSITE_UPDATE_AUTOMATIC,
119    ECORE_X_COMPOSITE_UPDATE_MANUAL
120 } Ecore_X_Composite_Update_Type;
121
122 /**
123  * @typedef _Ecore_X_Window_State
124  * Defines the different states of the window of Ecore_X.
125  */
126 typedef enum _Ecore_X_Window_State
127 {
128    ECORE_X_WINDOW_STATE_UNKNOWN = 0,
129    ECORE_X_WINDOW_STATE_ICONIFIED,  /** The window is iconified. */
130    ECORE_X_WINDOW_STATE_MODAL,  /** The window is a modal dialog box. */
131    ECORE_X_WINDOW_STATE_STICKY, /** The window manager should keep the window's position fixed
132                                  * even if the virtual desktop scrolls. */
133    ECORE_X_WINDOW_STATE_MAXIMIZED_VERT,  /** The window has the maximum vertical size. */
134    ECORE_X_WINDOW_STATE_MAXIMIZED_HORZ,  /** The window has the maximum horizontal size. */
135    ECORE_X_WINDOW_STATE_SHADED,  /** The window is shaded. */
136    ECORE_X_WINDOW_STATE_SKIP_TASKBAR,  /** The window should not be included in the taskbar. */
137    ECORE_X_WINDOW_STATE_SKIP_PAGER,  /** The window should not be included in the pager. */
138    ECORE_X_WINDOW_STATE_HIDDEN,  /** The window is invisible (i.e. minimized/iconified) */
139    ECORE_X_WINDOW_STATE_FULLSCREEN,  /** The window should fill the entire screen and have no
140                                       * window border/decorations */
141    ECORE_X_WINDOW_STATE_ABOVE,
142    ECORE_X_WINDOW_STATE_BELOW,
143    ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION
144 } Ecore_X_Window_State;
145
146 typedef enum _Ecore_X_Window_State_Action
147 {
148    ECORE_X_WINDOW_STATE_ACTION_REMOVE,
149    ECORE_X_WINDOW_STATE_ACTION_ADD,
150    ECORE_X_WINDOW_STATE_ACTION_TOGGLE
151 } Ecore_X_Window_State_Action;
152
153 typedef enum _Ecore_X_Window_Stack_Mode
154 {
155    ECORE_X_WINDOW_STACK_ABOVE = 0,
156    ECORE_X_WINDOW_STACK_BELOW = 1,
157    ECORE_X_WINDOW_STACK_TOP_IF = 2,
158    ECORE_X_WINDOW_STACK_BOTTOM_IF = 3,
159    ECORE_X_WINDOW_STACK_OPPOSITE = 4
160 } Ecore_X_Window_Stack_Mode;
161
162 typedef enum _Ecore_X_Randr_Orientation
163 {
164    ECORE_X_RANDR_ORIENTATION_ROT_0 = (1 << 0),
165    ECORE_X_RANDR_ORIENTATION_ROT_90 = (1 << 1),
166    ECORE_X_RANDR_ORIENTATION_ROT_180 = (1 << 2),
167    ECORE_X_RANDR_ORIENTATION_ROT_270 = (1 << 3),
168    ECORE_X_RANDR_ORIENTATION_FLIP_X = (1 << 4),
169    ECORE_X_RANDR_ORIENTATION_FLIP_Y = (1 << 5)
170 } Ecore_X_Randr_Orientation;
171
172 typedef enum _Ecore_X_Randr_Connection_Status
173 {
174    ECORE_X_RANDR_CONNECTION_STATUS_CONNECTED = 0,
175    ECORE_X_RANDR_CONNECTION_STATUS_DISCONNECTED = 1,
176    ECORE_X_RANDR_CONNECTION_STATUS_UNKNOWN = 2
177 } Ecore_X_Randr_Connection_Status;
178
179 typedef enum _Ecore_X_Randr_Output_Policy
180 {
181    ECORE_X_RANDR_OUTPUT_POLICY_ABOVE = 1,
182    ECORE_X_RANDR_OUTPUT_POLICY_RIGHT = 2,
183    ECORE_X_RANDR_OUTPUT_POLICY_BELOW = 3,
184    ECORE_X_RANDR_OUTPUT_POLICY_LEFT = 4,
185    ECORE_X_RANDR_OUTPUT_POLICY_CLONE = 5,
186    ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6,
187    ECORE_X_RANDR_OUTPUT_POLICY_ASK = 7
188 } Ecore_X_Randr_Output_Policy;
189
190 typedef enum _Ecore_X_Randr_Relative_Alignment
191 {
192    ECORE_X_RANDR_RELATIVE_ALIGNMENT_NONE = 0,
193    ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_REL = 1,
194    ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_SCR = 2
195 } Ecore_X_Randr_Relative_Alignment;
196
197 typedef enum _Ecore_X_Render_Subpixel_Order
198 {
199    ECORE_X_RENDER_SUBPIXEL_ORDER_UNKNOWN = 0,
200    ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_RGB = 1,
201    ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_BGR = 2,
202    ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_RGB = 3,
203    ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_BGR = 4,
204    ECORE_X_RENDER_SUBPIXEL_ORDER_NONE = 5
205 } Ecore_X_Render_Subpixel_Order;
206
207 typedef enum _Ecore_X_Randr_Edid_Display_Interface_Type
208 {
209    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_UNDEFINED,
210    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DVI,
211    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_A,
212    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_B,
213    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_MDDI,
214    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DISPLAY_PORT
215 } Ecore_X_Randr_Edid_Display_Interface_Type;
216
217 typedef enum _Ecore_X_Randr_Edid_Display_Colorscheme
218 {
219    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_MONOCHROME_GRAYSCALE = 0x00,
220    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB = 0x08,
221    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_NON_RGB = 0x10,
222    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_UNDEFINED = 0x18,
223    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_4_4_4 = 0x444000,
224    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_4_4 = 0x444,
225    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_2_2 = 0x422
226 } Ecore_X_Randr_Edid_Display_Colorscheme;
227
228 typedef enum _Ecore_X_Randr_Edid_Aspect_Ratio
229 {
230    ECORE_X_RANDR_EDID_ASPECT_RATIO_4_3 = 0x0,
231    ECORE_X_RANDR_EDID_ASPECT_RATIO_16_9 = 0x1,
232    ECORE_X_RANDR_EDID_ASPECT_RATIO_16_10 = 0x2,
233    ECORE_X_RANDR_EDID_ASPECT_RATIO_5_4 = 0x4,
234    ECORE_X_RANDR_EDID_ASPECT_RATIO_15_9 = 0x8
235 } Ecore_X_Randr_Edid_Aspect_Ratio;
236
237 #define ECORE_X_RANDR_EDID_UNKNOWN_VALUE       -1
238
239 #define ECORE_X_SELECTION_TARGET_TARGETS       "TARGETS"
240 #define ECORE_X_SELECTION_TARGET_TEXT          "TEXT"
241 #define ECORE_X_SELECTION_TARGET_COMPOUND_TEXT "COMPOUND_TEXT"
242 #define ECORE_X_SELECTION_TARGET_STRING        "STRING"
243 #define ECORE_X_SELECTION_TARGET_UTF8_STRING   "UTF8_STRING"
244 #define ECORE_X_SELECTION_TARGET_FILENAME      "FILENAME"
245
246 #define ECORE_X_DND_VERSION                    5
247
248 typedef enum _Ecore_X_Selection
249 {
250    ECORE_X_SELECTION_PRIMARY,
251    ECORE_X_SELECTION_SECONDARY,
252    ECORE_X_SELECTION_XDND,
253    ECORE_X_SELECTION_CLIPBOARD,
254    ECORE_X_SELECTION_OTHER
255 } Ecore_X_Selection;
256
257 typedef enum _Ecore_X_Event_Mode
258 {
259    ECORE_X_EVENT_MODE_NORMAL,
260    ECORE_X_EVENT_MODE_WHILE_GRABBED,
261    ECORE_X_EVENT_MODE_GRAB,
262    ECORE_X_EVENT_MODE_UNGRAB
263 } Ecore_X_Event_Mode;
264
265 typedef enum _Ecore_X_Event_Detail
266 {
267    ECORE_X_EVENT_DETAIL_ANCESTOR,
268    ECORE_X_EVENT_DETAIL_VIRTUAL,
269    ECORE_X_EVENT_DETAIL_INFERIOR,
270    ECORE_X_EVENT_DETAIL_NON_LINEAR,
271    ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL,
272    ECORE_X_EVENT_DETAIL_POINTER,
273    ECORE_X_EVENT_DETAIL_POINTER_ROOT,
274    ECORE_X_EVENT_DETAIL_DETAIL_NONE
275 } Ecore_X_Event_Detail;
276
277 typedef enum _Ecore_X_Event_Mask
278 {
279    ECORE_X_EVENT_MASK_NONE = 0L,
280    ECORE_X_EVENT_MASK_KEY_DOWN = (1L << 0),
281    ECORE_X_EVENT_MASK_KEY_UP = (1L << 1),
282    ECORE_X_EVENT_MASK_MOUSE_DOWN = (1L << 2),
283    ECORE_X_EVENT_MASK_MOUSE_UP = (1L << 3),
284    ECORE_X_EVENT_MASK_MOUSE_IN = (1L << 4),
285    ECORE_X_EVENT_MASK_MOUSE_OUT = (1L << 5),
286    ECORE_X_EVENT_MASK_MOUSE_MOVE = (1L << 6),
287    ECORE_X_EVENT_MASK_WINDOW_DAMAGE = (1L << 15),
288    ECORE_X_EVENT_MASK_WINDOW_VISIBILITY = (1L << 16),
289    ECORE_X_EVENT_MASK_WINDOW_CONFIGURE = (1L << 17),
290    ECORE_X_EVENT_MASK_WINDOW_RESIZE_MANAGE = (1L << 18),
291    ECORE_X_EVENT_MASK_WINDOW_MANAGE = (1L << 19),
292    ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE = (1L << 20),
293    ECORE_X_EVENT_MASK_WINDOW_FOCUS_CHANGE = (1L << 21),
294    ECORE_X_EVENT_MASK_WINDOW_PROPERTY = (1L << 22),
295    ECORE_X_EVENT_MASK_WINDOW_COLORMAP = (1L << 23),
296    ECORE_X_EVENT_MASK_WINDOW_GRAB = (1L << 24),
297    ECORE_X_EVENT_MASK_MOUSE_WHEEL = (1L << 29),
298    ECORE_X_EVENT_MASK_WINDOW_FOCUS_IN = (1L << 30),
299    ECORE_X_EVENT_MASK_WINDOW_FOCUS_OUT = (1L << 31)
300 } Ecore_X_Event_Mask;
301
302 typedef enum _Ecore_X_Gravity
303 {
304    ECORE_X_GRAVITY_FORGET = 0,
305    ECORE_X_GRAVITY_UNMAP = 0,
306    ECORE_X_GRAVITY_NW = 1,
307    ECORE_X_GRAVITY_N = 2,
308    ECORE_X_GRAVITY_NE = 3,
309    ECORE_X_GRAVITY_W = 4,
310    ECORE_X_GRAVITY_CENTER = 5,
311    ECORE_X_GRAVITY_E = 6,
312    ECORE_X_GRAVITY_SW = 7,
313    ECORE_X_GRAVITY_S = 8,
314    ECORE_X_GRAVITY_SE = 9,
315    ECORE_X_GRAVITY_STATIC = 10
316 } Ecore_X_Gravity;
317
318 /* Needed for ecore_x_region_window_shape_set */
319 typedef enum _Ecore_X_Shape_Type
320 {
321    ECORE_X_SHAPE_BOUNDING,
322    ECORE_X_SHAPE_CLIP,
323    ECORE_X_SHAPE_INPUT
324 } Ecore_X_Shape_Type;
325
326 typedef enum _Ecore_X_Mapping_Type
327 {
328    ECORE_X_MAPPING_MODIFIER,
329    ECORE_X_MAPPING_KEYBOARD,
330    ECORE_X_MAPPING_MOUSE
331 } Ecore_X_Mapping_Type;
332
333 typedef enum _Ecore_X_Randr_Property_Change
334 {
335    ECORE_X_RANDR_PROPERTY_CHANGE_ADD,
336    ECORE_X_RANDR_PROPERTY_CHANGE_DEL
337 } Ecore_X_Randr_Property_Change;
338
339 typedef enum _Ecore_X_Netwm_Direction
340 {
341    ECORE_X_NETWM_DIRECTION_SIZE_TL = 0,
342    ECORE_X_NETWM_DIRECTION_SIZE_T = 1,
343    ECORE_X_NETWM_DIRECTION_SIZE_TR = 2,
344    ECORE_X_NETWM_DIRECTION_SIZE_R = 3,
345    ECORE_X_NETWM_DIRECTION_SIZE_BR = 4,
346    ECORE_X_NETWM_DIRECTION_SIZE_B = 5,
347    ECORE_X_NETWM_DIRECTION_SIZE_BL = 6,
348    ECORE_X_NETWM_DIRECTION_SIZE_L = 7,
349    ECORE_X_NETWM_DIRECTION_MOVE = 8,
350    ECORE_X_NETWM_DIRECTION_CANCEL = 11,
351 } Ecore_X_Netwm_Direction;
352
353 /**
354  * @typedef _Ecore_X_Error_Code
355  * Defines the error codes of Ecore_X which wraps the X Window Systems
356  * protocol's errors.
357  *
358  * @since 1.7.0
359  */
360 typedef enum _Ecore_X_Error_Code
361 {
362    /** Everything is okay. */
363    ECORE_X_ERROR_CODE_SUCCESS = 0, /** Bad request code */
364    ECORE_X_ERROR_CODE_BAD_REQUEST = 1, /** Int parameter out of range */
365    ECORE_X_ERROR_CODE_BAD_VALUE = 2, /** Parameter not a Window */
366    ECORE_X_ERROR_CODE_BAD_WINDOW = 3, /** Parameter not a Pixmap */
367    ECORE_X_ERROR_CODE_BAD_PIXMAP = 4, /** Parameter not an Atom */
368    ECORE_X_ERROR_CODE_BAD_ATOM = 5, /** Parameter not a Cursor */
369    ECORE_X_ERROR_CODE_BAD_CURSOR = 6, /** Parameter not a Font */
370    ECORE_X_ERROR_CODE_BAD_FONT = 7, /** Parameter mismatch */
371    ECORE_X_ERROR_CODE_BAD_MATCH = 8, /** Parameter not a Pixmap or Window */
372    ECORE_X_ERROR_CODE_BAD_DRAWABLE = 9, /** Bad access */
373    ECORE_X_ERROR_CODE_BAD_ACCESS = 10, /** Insufficient resources */
374    ECORE_X_ERROR_CODE_BAD_ALLOC = 11, /** No such colormap */
375    ECORE_X_ERROR_CODE_BAD_COLOR = 12, /** Parameter not a GC */
376    ECORE_X_ERROR_CODE_BAD_GC = 13, /** Choice not in range or already used */
377    ECORE_X_ERROR_CODE_BAD_ID_CHOICE = 14, /** Font or color name doesn't exist */
378    ECORE_X_ERROR_CODE_BAD_NAME = 15, /** Request length incorrect */
379    ECORE_X_ERROR_CODE_BAD_LENGTH = 16, /** Server is defective */
380    ECORE_X_ERROR_CODE_BAD_IMPLEMENTATION = 17,
381 } Ecore_X_Error_Code;
382
383 typedef struct _Ecore_X_Event_Mouse_In                     Ecore_X_Event_Mouse_In;
384 typedef struct _Ecore_X_Event_Mouse_Out                    Ecore_X_Event_Mouse_Out;
385 typedef struct _Ecore_X_Event_Window_Focus_In              Ecore_X_Event_Window_Focus_In;
386 typedef struct _Ecore_X_Event_Window_Focus_Out             Ecore_X_Event_Window_Focus_Out;
387 typedef struct _Ecore_X_Event_Window_Keymap                Ecore_X_Event_Window_Keymap;
388 typedef struct _Ecore_X_Event_Window_Damage                Ecore_X_Event_Window_Damage;
389 typedef struct _Ecore_X_Event_Window_Visibility_Change     Ecore_X_Event_Window_Visibility_Change;
390 typedef struct _Ecore_X_Event_Window_Create                Ecore_X_Event_Window_Create;
391 typedef struct _Ecore_X_Event_Window_Destroy               Ecore_X_Event_Window_Destroy;
392 typedef struct _Ecore_X_Event_Window_Hide                  Ecore_X_Event_Window_Hide;
393 typedef struct _Ecore_X_Event_Window_Show                  Ecore_X_Event_Window_Show;
394 typedef struct _Ecore_X_Event_Window_Show_Request          Ecore_X_Event_Window_Show_Request;
395 typedef struct _Ecore_X_Event_Window_Reparent              Ecore_X_Event_Window_Reparent;
396 typedef struct _Ecore_X_Event_Window_Configure             Ecore_X_Event_Window_Configure;
397 typedef struct _Ecore_X_Event_Window_Configure_Request     Ecore_X_Event_Window_Configure_Request;
398 typedef struct _Ecore_X_Event_Window_Gravity               Ecore_X_Event_Window_Gravity;
399 typedef struct _Ecore_X_Event_Window_Resize_Request        Ecore_X_Event_Window_Resize_Request;
400 typedef struct _Ecore_X_Event_Window_Stack                 Ecore_X_Event_Window_Stack;
401 typedef struct _Ecore_X_Event_Window_Stack_Request         Ecore_X_Event_Window_Stack_Request;
402 typedef struct _Ecore_X_Event_Window_Property              Ecore_X_Event_Window_Property;
403 typedef struct _Ecore_X_Event_Window_Colormap              Ecore_X_Event_Window_Colormap;
404 typedef struct _Ecore_X_Event_Mapping_Change               Ecore_X_Event_Mapping_Change;
405 typedef struct _Ecore_X_Event_Window_Mapping               Ecore_X_Event_Window_Mapping;
406 typedef struct _Ecore_X_Event_Selection_Clear              Ecore_X_Event_Selection_Clear;
407 typedef struct _Ecore_X_Event_Selection_Request            Ecore_X_Event_Selection_Request;
408 typedef struct _Ecore_X_Event_Selection_Notify             Ecore_X_Event_Selection_Notify;
409 typedef struct _Ecore_X_Event_Fixes_Selection_Notify       Ecore_X_Event_Fixes_Selection_Notify;
410 typedef struct _Ecore_X_Selection_Data                     Ecore_X_Selection_Data;
411 typedef struct _Ecore_X_Selection_Data_Files               Ecore_X_Selection_Data_Files;
412 typedef struct _Ecore_X_Selection_Data_Text                Ecore_X_Selection_Data_Text;
413 typedef struct _Ecore_X_Selection_Data_Targets             Ecore_X_Selection_Data_Targets;
414 typedef struct _Ecore_X_Event_Xdnd_Enter                   Ecore_X_Event_Xdnd_Enter;
415 typedef struct _Ecore_X_Event_Xdnd_Position                Ecore_X_Event_Xdnd_Position;
416 typedef struct _Ecore_X_Event_Xdnd_Status                  Ecore_X_Event_Xdnd_Status;
417 typedef struct _Ecore_X_Event_Xdnd_Leave                   Ecore_X_Event_Xdnd_Leave;
418 typedef struct _Ecore_X_Event_Xdnd_Drop                    Ecore_X_Event_Xdnd_Drop;
419 typedef struct _Ecore_X_Event_Xdnd_Finished                Ecore_X_Event_Xdnd_Finished;
420 typedef struct _Ecore_X_Event_Client_Message               Ecore_X_Event_Client_Message;
421 typedef struct _Ecore_X_Event_Window_Shape                 Ecore_X_Event_Window_Shape;
422 typedef struct _Ecore_X_Event_Screensaver_Notify           Ecore_X_Event_Screensaver_Notify;
423 typedef struct _Ecore_X_Event_Gesture_Notify_Flick         Ecore_X_Event_Gesture_Notify_Flick;
424 typedef struct _Ecore_X_Event_Gesture_Notify_Pan           Ecore_X_Event_Gesture_Notify_Pan;
425 typedef struct _Ecore_X_Event_Gesture_Notify_PinchRotation Ecore_X_Event_Gesture_Notify_PinchRotation;
426 typedef struct _Ecore_X_Event_Gesture_Notify_Tap           Ecore_X_Event_Gesture_Notify_Tap;
427 typedef struct _Ecore_X_Event_Gesture_Notify_TapNHold      Ecore_X_Event_Gesture_Notify_TapNHold;
428 typedef struct _Ecore_X_Event_Gesture_Notify_Hold          Ecore_X_Event_Gesture_Notify_Hold;
429 typedef struct _Ecore_X_Event_Gesture_Notify_Group         Ecore_X_Event_Gesture_Notify_Group;
430 typedef struct _Ecore_X_Event_Sync_Counter                 Ecore_X_Event_Sync_Counter;
431 typedef struct _Ecore_X_Event_Sync_Alarm                   Ecore_X_Event_Sync_Alarm;
432 typedef struct _Ecore_X_Event_Screen_Change                Ecore_X_Event_Screen_Change;
433 typedef struct _Ecore_X_Event_Randr_Crtc_Change            Ecore_X_Event_Randr_Crtc_Change;
434 typedef struct _Ecore_X_Event_Randr_Output_Change          Ecore_X_Event_Randr_Output_Change;
435 typedef struct _Ecore_X_Event_Randr_Output_Property_Notify Ecore_X_Event_Randr_Output_Property_Notify;
436
437 typedef struct _Ecore_X_Event_Window_Delete_Request        Ecore_X_Event_Window_Delete_Request;
438 typedef struct _Ecore_X_Event_Window_Move_Resize_Request   Ecore_X_Event_Window_Move_Resize_Request;
439 typedef struct _Ecore_X_Event_Window_State_Request         Ecore_X_Event_Window_State_Request;
440 typedef struct _Ecore_X_Event_Frame_Extents_Request        Ecore_X_Event_Frame_Extents_Request;
441 typedef struct _Ecore_X_Event_Ping                         Ecore_X_Event_Ping;
442 typedef struct _Ecore_X_Event_Desktop_Change               Ecore_X_Event_Desktop_Change;
443
444 typedef struct _Ecore_X_Event_Startup_Sequence             Ecore_X_Event_Startup_Sequence;
445
446 typedef struct _Ecore_X_Event_Generic                      Ecore_X_Event_Generic;
447
448 typedef struct _Ecore_X_Randr_Screen_Size                  Ecore_X_Randr_Screen_Size;
449 typedef struct _Ecore_X_Randr_Screen_Size_MM               Ecore_X_Randr_Screen_Size_MM;
450 typedef struct _Ecore_X_Randr_Crtc_Info                    Ecore_X_Randr_Crtc_Info; /**< @since 1.8 */
451
452 typedef struct _Ecore_X_Xdnd_Position                      Ecore_X_Xdnd_Position;
453
454 struct _Ecore_X_Event_Mouse_In
455 {
456    int                  modifiers;
457    int                  x, y;
458    Eina_Bool            same_screen : 1;
459    struct
460    {
461       int x, y;
462    } root;
463    Ecore_X_Window       win;
464    Ecore_X_Window       event_win;
465    Ecore_X_Window       root_win;
466    Ecore_X_Event_Mode   mode;
467    Ecore_X_Event_Detail detail;
468    Ecore_X_Time         time;
469 };
470
471 struct _Ecore_X_Event_Mouse_Out
472 {
473    int                  modifiers;
474    int                  x, y;
475    int                  same_screen;
476    struct
477    {
478       int x, y;
479    } root;
480    Ecore_X_Window       win;
481    Ecore_X_Window       event_win;
482    Ecore_X_Window       root_win;
483    Ecore_X_Event_Mode   mode;
484    Ecore_X_Event_Detail detail;
485    Ecore_X_Time         time;
486 };
487
488 struct _Ecore_X_Event_Window_Focus_In
489 {
490    Ecore_X_Window       win;
491    Ecore_X_Event_Mode   mode;
492    Ecore_X_Event_Detail detail;
493    Ecore_X_Time         time;
494 };
495
496 struct _Ecore_X_Event_Window_Focus_Out
497 {
498    Ecore_X_Window       win;
499    Ecore_X_Event_Mode   mode;
500    Ecore_X_Event_Detail detail;
501    Ecore_X_Time         time;
502 };
503
504 struct _Ecore_X_Event_Window_Keymap
505 {
506    Ecore_X_Window win;
507 };
508
509 struct _Ecore_X_Event_Window_Damage
510 {
511    Ecore_X_Window win;
512    int            x, y, w, h;
513    int            count;
514    Ecore_X_Time   time;
515 };
516
517 struct _Ecore_X_Event_Window_Visibility_Change
518 {
519    Ecore_X_Window win;
520    int            fully_obscured;
521    Ecore_X_Time   time;
522 };
523
524 struct _Ecore_X_Event_Window_Create
525 {
526    Ecore_X_Window win;
527    Ecore_X_Window parent;
528    int            override;
529    int            x, y, w, h;
530    int            border;
531    Ecore_X_Time   time;
532 };
533
534 struct _Ecore_X_Event_Window_Destroy
535 {
536    Ecore_X_Window win;
537    Ecore_X_Window event_win;
538    Ecore_X_Time   time;
539 };
540
541 struct _Ecore_X_Event_Window_Hide
542 {
543    Ecore_X_Window win;
544    Ecore_X_Window event_win;
545    Ecore_X_Time   time;
546 };
547
548 struct _Ecore_X_Event_Window_Show
549 {
550    Ecore_X_Window win;
551    Ecore_X_Window event_win;
552    Ecore_X_Time   time;
553 };
554
555 struct _Ecore_X_Event_Window_Show_Request
556 {
557    Ecore_X_Window win;
558    Ecore_X_Window parent;
559    Ecore_X_Time   time;
560 };
561
562 struct _Ecore_X_Event_Window_Reparent
563 {
564    Ecore_X_Window win;
565    Ecore_X_Window event_win;
566    Ecore_X_Window parent;
567    Ecore_X_Time   time;
568 };
569
570 struct _Ecore_X_Event_Window_Configure
571 {
572    Ecore_X_Window win;
573    Ecore_X_Window event_win;
574    Ecore_X_Window abovewin;
575    int            x, y, w, h;
576    int            border;
577    Eina_Bool      override : 1;
578    Eina_Bool      from_wm : 1;
579    Ecore_X_Time   time;
580 };
581
582 struct _Ecore_X_Event_Window_Configure_Request
583 {
584    Ecore_X_Window            win;
585    Ecore_X_Window            parent_win;
586    Ecore_X_Window            abovewin;
587    int                       x, y, w, h;
588    int                       border;
589    Ecore_X_Window_Stack_Mode detail;
590    unsigned long             value_mask;
591    Ecore_X_Time              time;
592 };
593
594 struct _Ecore_X_Event_Window_Gravity
595 {
596    Ecore_X_Window win;
597    Ecore_X_Window event_win;
598    Ecore_X_Time   time;
599 };
600
601 struct _Ecore_X_Event_Window_Resize_Request
602 {
603    Ecore_X_Window win;
604    int            w, h;
605    Ecore_X_Time   time;
606 };
607
608 struct _Ecore_X_Event_Window_Stack
609 {
610    Ecore_X_Window            win;
611    Ecore_X_Window            event_win;
612    Ecore_X_Window_Stack_Mode detail;
613    Ecore_X_Time              time;
614 };
615
616 struct _Ecore_X_Event_Window_Stack_Request
617 {
618    Ecore_X_Window            win;
619    Ecore_X_Window            parent;
620    Ecore_X_Window_Stack_Mode detail;
621    Ecore_X_Time              time;
622 };
623
624 struct _Ecore_X_Event_Window_Property
625 {
626    Ecore_X_Window win;
627    Ecore_X_Atom   atom;
628    Ecore_X_Time   time;
629 };
630
631 struct _Ecore_X_Event_Window_Colormap
632 {
633    Ecore_X_Window   win;
634    Ecore_X_Colormap cmap;
635    Eina_Bool        installed : 1;
636    Ecore_X_Time     time;
637 };
638
639 struct _Ecore_X_Event_Mapping_Change
640 {
641    Ecore_X_Mapping_Type type;
642    int                  keycode;
643    int                  num;
644 };
645
646 struct _Ecore_X_Event_Selection_Clear
647 {
648    Ecore_X_Window    win;
649    Ecore_X_Selection selection;
650    Ecore_X_Atom      atom;
651    Ecore_X_Time      time;
652 };
653
654 struct _Ecore_X_Event_Selection_Request
655 {
656    Ecore_X_Window owner;
657    Ecore_X_Window requestor;
658    Ecore_X_Time   time;
659    Ecore_X_Atom   selection;
660    Ecore_X_Atom   target;
661    Ecore_X_Atom   property;
662 };
663
664 typedef enum
665 {
666    ECORE_X_OWNER_CHANGE_REASON_NEW_OWNER,
667    ECORE_X_OWNER_CHANGE_REASON_DESTROY,
668    ECORE_X_OWNER_CHANGE_REASON_CLOSE
669 } Ecore_X_Owner_Change_Reason;
670
671 struct _Ecore_X_Event_Fixes_Selection_Notify
672 {
673    Ecore_X_Window              win;
674    Ecore_X_Window              owner;
675    Ecore_X_Time                time;
676    Ecore_X_Time                selection_time;
677    Ecore_X_Selection           selection;
678    Ecore_X_Atom                atom;
679    Ecore_X_Owner_Change_Reason reason;
680 };
681
682 struct _Ecore_X_Event_Selection_Notify
683 {
684    Ecore_X_Window    win;
685    Ecore_X_Time      time;
686    Ecore_X_Selection selection;
687    Ecore_X_Atom      atom;
688    char             *target;
689    void             *data;
690 };
691
692 struct _Ecore_X_Selection_Data
693 {
694    enum
695    {
696       ECORE_X_SELECTION_CONTENT_NONE,
697       ECORE_X_SELECTION_CONTENT_TEXT,
698       ECORE_X_SELECTION_CONTENT_FILES,
699       ECORE_X_SELECTION_CONTENT_TARGETS,
700       ECORE_X_SELECTION_CONTENT_CUSTOM
701    } content;
702    unsigned char *data;
703    int            length;
704    int            format;
705    int            (*free)(void *data);
706 };
707
708 struct _Ecore_X_Selection_Data_Files
709 {
710    Ecore_X_Selection_Data data;
711    char                 **files;
712    int                    num_files;
713 };
714
715 struct _Ecore_X_Selection_Data_Text
716 {
717    Ecore_X_Selection_Data data;
718    char                  *text;
719 };
720
721 struct _Ecore_X_Selection_Data_Targets
722 {
723    Ecore_X_Selection_Data data;
724    char                 **targets;
725    int                    num_targets;
726 };
727
728 struct _Ecore_X_Event_Xdnd_Enter
729 {
730    Ecore_X_Window win, source;
731
732    char         **types;
733    int            num_types;
734 };
735
736 struct _Ecore_X_Event_Xdnd_Position
737 {
738    Ecore_X_Window win, source;
739    struct
740    {
741       int x, y;
742    } position;
743    Ecore_X_Atom   action;
744 };
745
746 struct _Ecore_X_Xdnd_Position
747 {
748    Ecore_X_Window win, prev;
749    struct
750    {
751       int x, y;
752    } position;
753 };
754
755 struct _Ecore_X_Event_Xdnd_Status
756 {
757    Ecore_X_Window    win, target;
758    Eina_Bool         will_accept : 1;
759    Ecore_X_Rectangle rectangle;
760    Ecore_X_Atom      action;
761 };
762
763 struct _Ecore_X_Event_Xdnd_Leave
764 {
765    Ecore_X_Window win, source;
766 };
767
768 struct _Ecore_X_Event_Xdnd_Drop
769 {
770    Ecore_X_Window win, source;
771    Ecore_X_Atom   action;
772    struct
773    {
774       int x, y;
775    } position;
776 };
777
778 struct _Ecore_X_Event_Xdnd_Finished
779 {
780    Ecore_X_Window win, target;
781    Eina_Bool      completed : 1;
782    Ecore_X_Atom   action;
783 };
784
785 struct _Ecore_X_Event_Client_Message
786 {
787    Ecore_X_Window win;
788    Ecore_X_Atom   message_type;
789    int            format;
790    union
791    {
792       char  b[20];
793       short s[10];
794       long  l[5];
795    } data;
796    Ecore_X_Time   time;
797 };
798
799 struct _Ecore_X_Event_Window_Shape
800 {
801    Ecore_X_Window     win;
802    Ecore_X_Time       time;
803    Ecore_X_Shape_Type type;
804    int                x, y, w, h;
805    Eina_Bool          shaped : 1;
806 };
807
808 struct _Ecore_X_Event_Screensaver_Notify
809 {
810    Ecore_X_Window win;
811    Eina_Bool      on : 1;
812    Ecore_X_Time   time;
813 };
814
815 struct _Ecore_X_Event_Sync_Counter
816 {
817    Ecore_X_Time time;
818 };
819
820 struct _Ecore_X_Event_Sync_Alarm
821 {
822    Ecore_X_Time       time;
823    Ecore_X_Sync_Alarm alarm;
824 };
825
826 struct _Ecore_X_Randr_Screen_Size
827 {
828    int width, height;
829 };
830
831 struct _Ecore_X_Randr_Screen_Size_MM
832 {
833    int width, height, width_mm, height_mm;
834 };
835
836 struct _Ecore_X_Randr_Crtc_Info
837 {
838    Ecore_X_Time timestamp;
839    int x, y;
840    unsigned int width, height;
841    Ecore_X_Randr_Mode mode;
842    Ecore_X_Randr_Orientation rotation;
843    int noutput;
844    Ecore_X_Randr_Output *outputs;
845    Ecore_X_Randr_Orientation rotations;
846    int npossible;
847    Ecore_X_Randr_Output *possible;
848 }; /**< @since 1.8 */
849
850 struct _Ecore_X_Event_Screen_Change
851 {
852    Ecore_X_Window                win;
853    Ecore_X_Window                root;
854    Ecore_X_Randr_Screen_Size_MM  size;  /* in pixel and millimeters */
855    Ecore_X_Time                  time;
856    Ecore_X_Time                  config_time;
857    Ecore_X_Randr_Orientation     orientation;
858    Ecore_X_Render_Subpixel_Order subpixel_order;
859    Ecore_X_Randr_Size_ID         size_id;
860 };
861
862 struct _Ecore_X_Event_Randr_Crtc_Change
863 {
864    Ecore_X_Window            win;
865    Ecore_X_Randr_Crtc        crtc;
866    Ecore_X_Randr_Mode        mode;
867    Ecore_X_Randr_Orientation orientation;
868    Eina_Rectangle            geo;
869 };
870
871 struct _Ecore_X_Event_Randr_Output_Change
872 {
873    Ecore_X_Window                  win;
874    Ecore_X_Randr_Output            output;
875    Ecore_X_Randr_Crtc              crtc;
876    Ecore_X_Randr_Mode              mode;
877    Ecore_X_Randr_Orientation       orientation;
878    Ecore_X_Randr_Connection_Status connection;
879    Ecore_X_Render_Subpixel_Order   subpixel_order;
880 };
881
882 struct _Ecore_X_Event_Randr_Output_Property_Notify
883 {
884    Ecore_X_Window                win;
885    Ecore_X_Randr_Output          output;
886    Ecore_X_Atom                  property;
887    Ecore_X_Time                  time;
888    Ecore_X_Randr_Property_Change state;
889 };
890
891 struct _Ecore_X_Event_Window_Delete_Request
892 {
893    Ecore_X_Window win;
894    Ecore_X_Time   time;
895 };
896
897 struct _Ecore_X_Event_Window_Prop_Title_Change
898 {
899    Ecore_X_Window win;
900    char          *title;
901    Ecore_X_Time   time;
902 };
903
904 struct _Ecore_X_Event_Window_Prop_Visible_Title_Change
905 {
906    Ecore_X_Window win;
907    char          *title;
908    Ecore_X_Time   time;
909 };
910
911 struct _Ecore_X_Event_Window_Prop_Icon_Name_Change
912 {
913    Ecore_X_Window win;
914    char          *name;
915    Ecore_X_Time   time;
916 };
917
918 struct _Ecore_X_Event_Window_Prop_Visible_Icon_Name_Change
919 {
920    Ecore_X_Window win;
921    char          *name;
922    Ecore_X_Time   time;
923 };
924
925 struct _Ecore_X_Event_Window_Prop_Client_Machine_Change
926 {
927    Ecore_X_Window win;
928    char          *name;
929    Ecore_X_Time   time;
930 };
931
932 struct _Ecore_X_Event_Window_Prop_Name_Class_Change
933 {
934    Ecore_X_Window win;
935    char          *name;
936    char          *clas;
937    Ecore_X_Time   time;
938 };
939
940 struct _Ecore_X_Event_Window_Prop_Pid_Change
941 {
942    Ecore_X_Window win;
943    pid_t          pid;
944    Ecore_X_Time   time;
945 };
946
947 struct _Ecore_X_Event_Window_Prop_Desktop_Change
948 {
949    Ecore_X_Window win;
950    long           desktop;
951    Ecore_X_Time   time;
952 };
953
954 struct _Ecore_X_Event_Startup_Sequence
955 {
956    Ecore_X_Window win;
957 };
958
959 struct _Ecore_X_Event_Window_Move_Resize_Request
960 {
961    Ecore_X_Window win;
962    int            x, y;
963    int            direction;
964    int            button;
965    int            source;
966 };
967
968 struct _Ecore_X_Event_Window_State_Request
969 {
970    Ecore_X_Window              win;
971    Ecore_X_Window_State_Action action;
972    Ecore_X_Window_State        state[2];
973    int                         source;
974 };
975
976 struct _Ecore_X_Event_Frame_Extents_Request
977 {
978    Ecore_X_Window win;
979 };
980
981 struct _Ecore_X_Event_Ping
982 {
983    Ecore_X_Window win;
984    Ecore_X_Window event_win;
985    Ecore_X_Time   time;
986 };
987
988 struct _Ecore_X_Event_Desktop_Change
989 {
990    Ecore_X_Window win;
991    unsigned int   desk;
992    int            source;
993 };
994
995 struct _Ecore_X_Event_Generic
996 {
997    int          extension;
998    int          evtype;
999    unsigned int cookie;
1000    void        *data;
1001 };
1002
1003 EAPI extern int ECORE_X_EVENT_ANY; /**< low level event dependent on
1004                                         backend in use, if Xlib will be XEvent, if XCB will be xcb_generic_event_t.
1005                                         @warning avoid using it.
1006                                     */
1007 EAPI extern int ECORE_X_EVENT_MOUSE_IN;
1008 EAPI extern int ECORE_X_EVENT_MOUSE_OUT;
1009 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_IN;
1010 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_OUT;
1011 EAPI extern int ECORE_X_EVENT_WINDOW_KEYMAP;
1012 EAPI extern int ECORE_X_EVENT_WINDOW_DAMAGE;
1013 EAPI extern int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE;
1014 EAPI extern int ECORE_X_EVENT_WINDOW_CREATE;
1015 EAPI extern int ECORE_X_EVENT_WINDOW_DESTROY;
1016 EAPI extern int ECORE_X_EVENT_WINDOW_HIDE;
1017 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW;
1018 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW_REQUEST;
1019 EAPI extern int ECORE_X_EVENT_WINDOW_REPARENT;
1020 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE;
1021 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST;
1022 EAPI extern int ECORE_X_EVENT_WINDOW_GRAVITY;
1023 EAPI extern int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST;
1024 EAPI extern int ECORE_X_EVENT_WINDOW_STACK;
1025 EAPI extern int ECORE_X_EVENT_WINDOW_STACK_REQUEST;
1026 EAPI extern int ECORE_X_EVENT_WINDOW_PROPERTY;
1027 EAPI extern int ECORE_X_EVENT_WINDOW_COLORMAP;
1028 EAPI extern int ECORE_X_EVENT_WINDOW_MAPPING;
1029 EAPI extern int ECORE_X_EVENT_MAPPING_CHANGE;
1030 EAPI extern int ECORE_X_EVENT_SELECTION_CLEAR;
1031 EAPI extern int ECORE_X_EVENT_SELECTION_REQUEST;
1032 EAPI extern int ECORE_X_EVENT_SELECTION_NOTIFY;
1033 EAPI extern int ECORE_X_EVENT_FIXES_SELECTION_NOTIFY;
1034 EAPI extern int ECORE_X_EVENT_CLIENT_MESSAGE;
1035 EAPI extern int ECORE_X_EVENT_WINDOW_SHAPE;
1036 EAPI extern int ECORE_X_EVENT_SCREENSAVER_NOTIFY;
1037 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_FLICK;
1038 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_PAN;
1039 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_PINCHROTATION;
1040 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_TAP;
1041 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_TAPNHOLD;
1042 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_HOLD;
1043 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_GROUP;
1044 EAPI extern int ECORE_X_EVENT_SYNC_COUNTER;
1045 EAPI extern int ECORE_X_EVENT_SYNC_ALARM;
1046 EAPI extern int ECORE_X_EVENT_SCREEN_CHANGE;
1047 EAPI extern int ECORE_X_EVENT_RANDR_CRTC_CHANGE;
1048 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_CHANGE;
1049 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY;
1050 EAPI extern int ECORE_X_EVENT_DAMAGE_NOTIFY;
1051
1052 EAPI extern int ECORE_X_EVENT_WINDOW_DELETE_REQUEST;
1053
1054 EAPI extern int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST;
1055 EAPI extern int ECORE_X_EVENT_WINDOW_STATE_REQUEST;
1056 EAPI extern int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST;
1057 EAPI extern int ECORE_X_EVENT_PING;
1058 EAPI extern int ECORE_X_EVENT_DESKTOP_CHANGE;
1059
1060 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW;
1061 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE;
1062 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE;
1063 EAPI extern int ECORE_X_EVENT_XKB_STATE_NOTIFY; /** @since 1.7 */
1064 EAPI extern int ECORE_X_EVENT_XKB_NEWKBD_NOTIFY; /** @since 1.7 */
1065
1066 EAPI extern int ECORE_X_EVENT_GENERIC;
1067
1068 EAPI extern int ECORE_X_EVENT_XDND_ENTER;
1069 EAPI extern int ECORE_X_EVENT_XDND_POSITION;
1070 EAPI extern int ECORE_X_EVENT_XDND_STATUS;
1071 EAPI extern int ECORE_X_EVENT_XDND_LEAVE;
1072 EAPI extern int ECORE_X_EVENT_XDND_DROP;
1073 EAPI extern int ECORE_X_EVENT_XDND_FINISHED;
1074
1075 EAPI extern int ECORE_X_MODIFIER_SHIFT; /**< @since 1.7 */
1076 EAPI extern int ECORE_X_MODIFIER_CTRL;  /**< @since 1.7 */
1077 EAPI extern int ECORE_X_MODIFIER_ALT;   /**< @since 1.7 */
1078 EAPI extern int ECORE_X_MODIFIER_WIN;   /**< @since 1.7 */
1079 EAPI extern int ECORE_X_MODIFIER_ALTGR; /**< @since 1.7 */
1080
1081 EAPI extern int ECORE_X_LOCK_SCROLL;
1082 EAPI extern int ECORE_X_LOCK_NUM;
1083 EAPI extern int ECORE_X_LOCK_CAPS;
1084 EAPI extern int ECORE_X_LOCK_SHIFT;
1085
1086 typedef enum _Ecore_X_WM_Protocol
1087 {
1088    /** If enabled the window manager will be asked to send a
1089     * delete message instead of just closing (destroying) the window. */
1090    ECORE_X_WM_PROTOCOL_DELETE_REQUEST,
1091
1092    /** If enabled the window manager will be told that the window
1093     * explicitly sets input focus. */
1094    ECORE_X_WM_PROTOCOL_TAKE_FOCUS,
1095
1096    /** If enabled the window manager can ping the window to check
1097     * if it is alive. */
1098    ECORE_X_NET_WM_PROTOCOL_PING,
1099
1100    /** If enabled the window manager can sync updating with the
1101     * window (?) */
1102    ECORE_X_NET_WM_PROTOCOL_SYNC_REQUEST,
1103
1104    /** Number of defined items */
1105    ECORE_X_WM_PROTOCOL_NUM
1106 } Ecore_X_WM_Protocol;
1107
1108 typedef enum _Ecore_X_Window_Input_Mode
1109 {
1110    /** The window can never be focused */
1111    ECORE_X_WINDOW_INPUT_MODE_NONE,
1112
1113    /** The window can be focused by the WM but doesn't focus itself */
1114    ECORE_X_WINDOW_INPUT_MODE_PASSIVE,
1115
1116    /** The window sets the focus itself if one of its sub-windows
1117     * already is focused */
1118    ECORE_X_WINDOW_INPUT_MODE_ACTIVE_LOCAL,
1119
1120    /** The window sets the focus itself even if another window
1121     * is currently focused */
1122    ECORE_X_WINDOW_INPUT_MODE_ACTIVE_GLOBAL
1123 } Ecore_X_Window_Input_Mode;
1124
1125 /**
1126  * @typedef _Ecore_X_Window_State_Hint
1127  * Defines the different state hint of the window of Ecore_X.
1128  */
1129 typedef enum _Ecore_X_Window_State_Hint
1130 {
1131    /** Do not provide any state hint to the window manager */
1132    ECORE_X_WINDOW_STATE_HINT_NONE = -1,
1133
1134    /** The window wants to remain hidden and NOT iconified */
1135    ECORE_X_WINDOW_STATE_HINT_WITHDRAWN,
1136
1137    /** The window wants to be mapped normally */
1138    ECORE_X_WINDOW_STATE_HINT_NORMAL,
1139
1140    /** The window wants to start in an iconified state */
1141    ECORE_X_WINDOW_STATE_HINT_ICONIC
1142 } Ecore_X_Window_State_Hint;
1143
1144 typedef enum _Ecore_X_Window_Type
1145 {
1146    ECORE_X_WINDOW_TYPE_UNKNOWN = 0,
1147    ECORE_X_WINDOW_TYPE_DESKTOP,
1148    ECORE_X_WINDOW_TYPE_DOCK,
1149    ECORE_X_WINDOW_TYPE_TOOLBAR,
1150    ECORE_X_WINDOW_TYPE_MENU,
1151    ECORE_X_WINDOW_TYPE_UTILITY,
1152    ECORE_X_WINDOW_TYPE_SPLASH,
1153    ECORE_X_WINDOW_TYPE_DIALOG,
1154    ECORE_X_WINDOW_TYPE_NORMAL,
1155    ECORE_X_WINDOW_TYPE_DROPDOWN_MENU,
1156    ECORE_X_WINDOW_TYPE_POPUP_MENU,
1157    ECORE_X_WINDOW_TYPE_TOOLTIP,
1158    ECORE_X_WINDOW_TYPE_NOTIFICATION,
1159    ECORE_X_WINDOW_TYPE_COMBO,
1160    ECORE_X_WINDOW_TYPE_DND
1161 } Ecore_X_Window_Type;
1162
1163 typedef enum _Ecore_X_Action
1164 {
1165    ECORE_X_ACTION_MOVE,
1166    ECORE_X_ACTION_RESIZE,
1167    ECORE_X_ACTION_MINIMIZE,
1168    ECORE_X_ACTION_SHADE,
1169    ECORE_X_ACTION_STICK,
1170    ECORE_X_ACTION_MAXIMIZE_HORZ,
1171    ECORE_X_ACTION_MAXIMIZE_VERT,
1172    ECORE_X_ACTION_FULLSCREEN,
1173    ECORE_X_ACTION_CHANGE_DESKTOP,
1174    ECORE_X_ACTION_CLOSE,
1175    ECORE_X_ACTION_ABOVE,
1176    ECORE_X_ACTION_BELOW
1177 } Ecore_X_Action;
1178
1179 typedef enum _Ecore_X_Window_Configure_Mask
1180 {
1181    ECORE_X_WINDOW_CONFIGURE_MASK_X = (1 << 0),
1182    ECORE_X_WINDOW_CONFIGURE_MASK_Y = (1 << 1),
1183    ECORE_X_WINDOW_CONFIGURE_MASK_W = (1 << 2),
1184    ECORE_X_WINDOW_CONFIGURE_MASK_H = (1 << 3),
1185    ECORE_X_WINDOW_CONFIGURE_MASK_BORDER_WIDTH = (1 << 4),
1186    ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING = (1 << 5),
1187    ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE = (1 << 6)
1188 } Ecore_X_Window_Configure_Mask;
1189
1190 typedef enum _Ecore_X_Virtual_Keyboard_State
1191 {
1192    ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN = 0,
1193    ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF,
1194    ECORE_X_VIRTUAL_KEYBOARD_STATE_ON,
1195    ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA,
1196    ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC,
1197    ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN,
1198    ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER,
1199    ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX,
1200    ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL,
1201    ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD,
1202    ECORE_X_VIRTUAL_KEYBOARD_STATE_IP,
1203    ECORE_X_VIRTUAL_KEYBOARD_STATE_HOST,
1204    ECORE_X_VIRTUAL_KEYBOARD_STATE_FILE,
1205    ECORE_X_VIRTUAL_KEYBOARD_STATE_URL,
1206    ECORE_X_VIRTUAL_KEYBOARD_STATE_KEYPAD,
1207    ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME
1208 } Ecore_X_Virtual_Keyboard_State;
1209
1210 typedef enum _Ecore_X_Illume_Mode
1211 {
1212    ECORE_X_ILLUME_MODE_UNKNOWN = 0,
1213    ECORE_X_ILLUME_MODE_SINGLE,
1214    ECORE_X_ILLUME_MODE_DUAL_TOP,
1215    ECORE_X_ILLUME_MODE_DUAL_LEFT
1216 } Ecore_X_Illume_Mode;
1217
1218 typedef enum _Ecore_X_Illume_Quickpanel_State
1219 {
1220    ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN = 0,
1221    ECORE_X_ILLUME_QUICKPANEL_STATE_OFF,
1222    ECORE_X_ILLUME_QUICKPANEL_STATE_ON
1223 } Ecore_X_Illume_Quickpanel_State;
1224
1225 typedef enum _Ecore_X_Illume_Indicator_State
1226 {
1227    ECORE_X_ILLUME_INDICATOR_STATE_UNKNOWN = 0,
1228    ECORE_X_ILLUME_INDICATOR_STATE_OFF,
1229    ECORE_X_ILLUME_INDICATOR_STATE_ON
1230 } Ecore_X_Illume_Indicator_State;
1231
1232 typedef enum _Ecore_X_Illume_Clipboard_State
1233 {
1234    ECORE_X_ILLUME_CLIPBOARD_STATE_UNKNOWN = 0,
1235    ECORE_X_ILLUME_CLIPBOARD_STATE_OFF,
1236    ECORE_X_ILLUME_CLIPBOARD_STATE_ON
1237 } Ecore_X_Illume_Clipboard_State;
1238
1239 typedef enum _Ecore_X_Illume_Indicator_Opacity_Mode
1240 {
1241    ECORE_X_ILLUME_INDICATOR_OPACITY_UNKNOWN = 0,
1242    ECORE_X_ILLUME_INDICATOR_OPAQUE,
1243    ECORE_X_ILLUME_INDICATOR_TRANSLUCENT,
1244    ECORE_X_ILLUME_INDICATOR_TRANSPARENT
1245 } Ecore_X_Illume_Indicator_Opacity_Mode;
1246
1247 typedef enum _Ecore_X_Illume_Window_State
1248 {
1249    ECORE_X_ILLUME_WINDOW_STATE_NORMAL = 0,
1250    ECORE_X_ILLUME_WINDOW_STATE_FLOATING
1251 } Ecore_X_Illume_Window_State;
1252
1253 /* Window layer constants */
1254 #define ECORE_X_WINDOW_LAYER_BELOW  2
1255 #define ECORE_X_WINDOW_LAYER_NORMAL 4
1256 #define ECORE_X_WINDOW_LAYER_ABOVE  6
1257
1258 /* Property list operations */
1259 #define ECORE_X_PROP_LIST_REMOVE    0
1260 #define ECORE_X_PROP_LIST_ADD       1
1261 #define ECORE_X_PROP_LIST_TOGGLE    2
1262
1263 EAPI int                       ecore_x_init(const char *name);
1264 EAPI int                       ecore_x_shutdown(void);
1265 EAPI int                       ecore_x_disconnect(void);
1266 EAPI Ecore_X_Display          *ecore_x_display_get(void);
1267 EAPI Ecore_X_Connection       *ecore_x_connection_get(void);
1268 EAPI int                       ecore_x_fd_get(void);
1269 EAPI Ecore_X_Screen           *ecore_x_default_screen_get(void);
1270 EAPI void                      ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h);
1271 EAPI int                       ecore_x_screen_count_get(void);
1272 EAPI int                       ecore_x_screen_index_get(const Ecore_X_Screen *screen);
1273 EAPI Ecore_X_Screen           *ecore_x_screen_get(int index);
1274
1275 EAPI void                      ecore_x_double_click_time_set(double t);
1276 EAPI double                    ecore_x_double_click_time_get(void);
1277 EAPI void                      ecore_x_flush(void);
1278 EAPI void                      ecore_x_sync(void);
1279 EAPI void                      ecore_x_killall(Ecore_X_Window root);
1280 EAPI void                      ecore_x_kill(Ecore_X_Window win);
1281 EAPI int                       ecore_x_dpi_get(void);
1282 EAPI Eina_Bool                 ecore_x_bell(int percent);
1283 EAPI unsigned int              ecore_x_visual_id_get(Ecore_X_Visual visual);
1284
1285 EAPI Ecore_X_Visual            ecore_x_default_visual_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1286 EAPI Ecore_X_Colormap          ecore_x_default_colormap_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1287 EAPI int                       ecore_x_default_depth_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1288
1289 EAPI Ecore_X_Time              ecore_x_current_time_get(void);
1290
1291 EAPI void                      ecore_x_error_handler_set(void (*func)(void *data), const void *data);
1292 EAPI void                      ecore_x_io_error_handler_set(void (*func)(void *data), const void *data);
1293 EAPI int                       ecore_x_error_request_get(void);
1294 EAPI int                       ecore_x_error_code_get(void);
1295 EAPI Ecore_X_ID                ecore_x_error_resource_id_get(void);
1296
1297 EAPI void                      ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask);
1298 EAPI void                      ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask);
1299
1300 EAPI Eina_Bool                 ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property, Ecore_X_Time time);
1301 EAPI Eina_Bool                 ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size);
1302 EAPI Eina_Bool                 ecore_x_selection_primary_clear(void);
1303 EAPI Eina_Bool                 ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size);
1304 EAPI Eina_Bool                 ecore_x_selection_secondary_clear(void);
1305 EAPI Eina_Bool                 ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size);
1306 EAPI Eina_Bool                 ecore_x_selection_xdnd_clear(void);
1307 EAPI Eina_Bool                 ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size);
1308 EAPI Eina_Bool                 ecore_x_selection_clipboard_clear(void);
1309 EAPI void                      ecore_x_selection_primary_request(Ecore_X_Window w, const char *target);
1310 EAPI void                      ecore_x_selection_secondary_request(Ecore_X_Window w, const char *target);
1311 EAPI void                      ecore_x_selection_xdnd_request(Ecore_X_Window w, const char *target);
1312 EAPI void                      ecore_x_selection_clipboard_request(Ecore_X_Window w, const char *target);
1313 EAPI Eina_Bool                 ecore_x_selection_convert(Ecore_X_Atom selection, Ecore_X_Atom target, void **data_ret, int *len, Ecore_X_Atom *targprop, int *targsize);
1314 EAPI void                      ecore_x_selection_converter_add(char *target, Eina_Bool (*func)(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *, int *));
1315 EAPI void                      ecore_x_selection_converter_atom_add(Ecore_X_Atom target, Eina_Bool (*func)(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *tprop, int *tsize));
1316 EAPI void                      ecore_x_selection_converter_del(char *target);
1317 EAPI void                      ecore_x_selection_converter_atom_del(Ecore_X_Atom target);
1318 EAPI void                      ecore_x_selection_parser_add(const char *target, void *(*func)(const char *target, void *data, int size, int format));
1319 EAPI void                      ecore_x_selection_parser_del(const char *target);
1320 EAPI void                      ecore_x_selection_owner_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Time tm);
1321 EAPI Ecore_X_Window            ecore_x_selection_owner_get(Ecore_X_Atom atom);
1322
1323 EAPI void                      ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on);
1324 EAPI int                       ecore_x_dnd_version_get(Ecore_X_Window win);
1325 EAPI Eina_Bool                 ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type);
1326 EAPI void                      ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, Eina_Bool on);
1327 EAPI void                      ecore_x_dnd_types_set(Ecore_X_Window win, const char **types, unsigned int num_types);
1328 EAPI void                      ecore_x_dnd_actions_set(Ecore_X_Window win, Ecore_X_Atom *actions, unsigned int num_actions);
1329 EAPI Eina_Bool                 ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size);
1330 EAPI Eina_Bool                 ecore_x_dnd_drop(void);
1331 EAPI void                      ecore_x_dnd_send_status(Eina_Bool will_accept, Eina_Bool suppress, Ecore_X_Rectangle rectangle, Ecore_X_Atom action);
1332 EAPI void                      ecore_x_dnd_send_finished(void);
1333 EAPI void                      ecore_x_dnd_source_action_set(Ecore_X_Atom action);
1334 EAPI Ecore_X_Atom              ecore_x_dnd_source_action_get(void);
1335 EAPI void                      ecore_x_dnd_callback_pos_update_set(void (*cb)(void *, Ecore_X_Xdnd_Position *data), const void *data);
1336
1337 EAPI Ecore_X_Window            ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h);
1338 EAPI Ecore_X_Window            ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h);
1339 EAPI int                       ecore_x_window_argb_get(Ecore_X_Window win);
1340 EAPI Ecore_X_Window            ecore_x_window_manager_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1341 EAPI Ecore_X_Window            ecore_x_window_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1342 EAPI Ecore_X_Window            ecore_x_window_override_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1343 EAPI Ecore_X_Window            ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h);
1344 EAPI void                      ecore_x_window_configure(Ecore_X_Window win, Ecore_X_Window_Configure_Mask mask, int x, int y, int w, int h, int border_width, Ecore_X_Window sibling, int stack_mode);
1345 EAPI void                      ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c);
1346 EAPI void                      ecore_x_window_free(Ecore_X_Window win);
1347 EAPI void                      ecore_x_window_ignore_set(Ecore_X_Window win, int ignore);
1348 EAPI Ecore_X_Window           *ecore_x_window_ignore_list(int *num);
1349
1350 EAPI void                      ecore_x_window_delete_request_send(Ecore_X_Window win);
1351 EAPI void                      ecore_x_window_show(Ecore_X_Window win);
1352 EAPI void                      ecore_x_window_hide(Ecore_X_Window win);
1353 EAPI void                      ecore_x_window_move(Ecore_X_Window win, int x, int y);
1354 EAPI void                      ecore_x_window_resize(Ecore_X_Window win, int w, int h);
1355 EAPI void                      ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h);
1356 EAPI void                      ecore_x_window_focus(Ecore_X_Window win);
1357 EAPI void                      ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t);
1358 EAPI Ecore_X_Window            ecore_x_window_focus_get(void);
1359 EAPI void                      ecore_x_window_raise(Ecore_X_Window win);
1360 EAPI void                      ecore_x_window_lower(Ecore_X_Window win);
1361 EAPI void                      ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y);
1362 EAPI void                      ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h);
1363 EAPI void                      ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1364 EAPI int                       ecore_x_window_border_width_get(Ecore_X_Window win);
1365 EAPI void                      ecore_x_window_border_width_set(Ecore_X_Window win, int width);
1366 EAPI int                       ecore_x_window_depth_get(Ecore_X_Window win);
1367 EAPI void                      ecore_x_window_cursor_show(Ecore_X_Window win, Eina_Bool show);
1368 EAPI void                      ecore_x_window_defaults_set(Ecore_X_Window win);
1369 EAPI int                       ecore_x_window_visible_get(Ecore_X_Window win);
1370 EAPI Ecore_X_Window            ecore_x_window_shadow_tree_at_xy_with_skip_get(Ecore_X_Window base, int x, int y, Ecore_X_Window *skip, int skip_num);
1371 EAPI Ecore_X_Window            ecore_x_window_shadow_parent_get(Ecore_X_Window root, Ecore_X_Window win);
1372 EAPI void                      ecore_x_window_shadow_tree_flush(void);
1373 EAPI Ecore_X_Window            ecore_x_window_root_get(Ecore_X_Window win);
1374 EAPI Ecore_X_Window            ecore_x_window_at_xy_get(int x, int y);
1375 EAPI Ecore_X_Window            ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_num);
1376 EAPI Ecore_X_Window            ecore_x_window_at_xy_begin_get(Ecore_X_Window begin, int x, int y);
1377 EAPI Ecore_X_Window            ecore_x_window_parent_get(Ecore_X_Window win);
1378
1379 EAPI void                      ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r, unsigned short g, unsigned short b);
1380 EAPI void                      ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav);
1381 EAPI void                      ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav);
1382 EAPI void                      ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap);
1383 EAPI void                      ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h);
1384 EAPI void                      ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h);
1385 EAPI void                      ecore_x_window_override_set(Ecore_X_Window win, Eina_Bool override);
1386
1387 EAPI void                      ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int *val, unsigned int num);
1388 EAPI int                       ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int *val, unsigned int len);
1389 EAPI int                       ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int **plst);
1390
1391 EAPI void                      ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID *lst, unsigned int num);
1392 EAPI int                       ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID *lst, unsigned int len);
1393 EAPI int                       ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID **plst);
1394 EAPI void                      ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID item, int op);
1395 EAPI void                      ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom *val, unsigned int num);
1396 EAPI int                       ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom *val, unsigned int len);
1397 EAPI int                       ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom **plst);
1398 EAPI void                      ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom item, int op);
1399 EAPI void                      ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window *val, unsigned int num);
1400 EAPI int                       ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window *val, unsigned int len);
1401 EAPI int                       ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window **plst);
1402
1403 EAPI Ecore_X_Atom              ecore_x_window_prop_any_type(void);
1404 EAPI void                      ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Atom format, int size, void *data, int number);
1405 EAPI int                       ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, unsigned char **data, int *num);
1406 EAPI void                      ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property);
1407 EAPI Ecore_X_Atom             *ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret);
1408 EAPI void                      ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str);
1409 EAPI char                     *ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type);
1410 EAPI Eina_Bool                 ecore_x_window_prop_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol);
1411 EAPI Ecore_X_WM_Protocol      *ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret);
1412
1413 EAPI void                      ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask);
1414 EAPI void                      ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win);
1415 EAPI void                      ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1416 EAPI void                      ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h);
1417 EAPI void                      ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1418 EAPI void                      ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h);
1419 EAPI void                      ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1420 EAPI void                      ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h);
1421 EAPI void                      ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, int x, int y, int w, int h);
1422 EAPI void                      ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, int x, int y, int w, int h);
1423 EAPI void                      ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1424 EAPI void                      ecore_x_window_shape_input_window_set(Ecore_X_Window win, Ecore_X_Window shape_win);
1425 EAPI void                      ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win);
1426 EAPI void                      ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1427 EAPI void                      ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1428 EAPI void                      ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h);
1429 EAPI void                      ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h);
1430 EAPI void                      ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h);
1431 EAPI void                      ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1432 EAPI void                      ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1433 EAPI Ecore_X_Rectangle        *ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret);
1434 EAPI Ecore_X_Rectangle        *ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, int *num_ret);
1435 EAPI void                      ecore_x_window_shape_events_select(Ecore_X_Window win, Eina_Bool on);
1436 EAPI void                      ecore_x_window_shape_input_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask);
1437
1438 EAPI Ecore_X_Pixmap            ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep);
1439 EAPI void                      ecore_x_pixmap_free(Ecore_X_Pixmap pmap);
1440 EAPI void                      ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest, Ecore_X_GC gc, int sx, int sy, int w, int h, int dx, int dy);
1441 EAPI void                      ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h);
1442 EAPI int                       ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap);
1443
1444 EAPI Ecore_X_GC                ecore_x_gc_new(Ecore_X_Drawable draw, Ecore_X_GC_Value_Mask value_mask, const unsigned int *value_list);
1445 EAPI void                      ecore_x_gc_free(Ecore_X_GC gc);
1446 EAPI void                      ecore_x_gc_foreground_set(Ecore_X_GC gc, unsigned long foreground);
1447 EAPI void                      ecore_x_gc_background_set(Ecore_X_GC gc, unsigned long background);
1448
1449 EAPI Eina_Bool                 ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Event_Mask mask, long d0, long d1, long d2, long d3, long d4);
1450 EAPI Eina_Bool                 ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type, const void *data, int len);
1451 EAPI Eina_Bool                 ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y);
1452 EAPI Eina_Bool                 ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b);
1453 EAPI Eina_Bool                 ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b);
1454 EAPI Eina_Bool                 ecore_x_mouse_in_send(Ecore_X_Window win, int x, int y);
1455 EAPI Eina_Bool                 ecore_x_mouse_out_send(Ecore_X_Window win, int x, int y);
1456
1457 EAPI void                      ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h);
1458 EAPI int                       ecore_x_drawable_border_width_get(Ecore_X_Drawable d);
1459 EAPI int                       ecore_x_drawable_depth_get(Ecore_X_Drawable d);
1460 EAPI void                      ecore_x_drawable_rectangle_fill(Ecore_X_Drawable d, Ecore_X_GC gc, int x, int y, int width, int height);
1461
1462 EAPI Eina_Bool                 ecore_x_cursor_color_supported_get(void);
1463 EAPI Ecore_X_Cursor            ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y);
1464 EAPI void                      ecore_x_cursor_free(Ecore_X_Cursor c);
1465 EAPI Ecore_X_Cursor            ecore_x_cursor_shape_get(int shape);
1466 EAPI void                      ecore_x_cursor_size_set(int size);
1467 EAPI int                       ecore_x_cursor_size_get(void);
1468
1469 /* FIXME: these funcs need categorising */
1470 EAPI Ecore_X_Window           *ecore_x_window_root_list(int *num_ret);
1471 EAPI Ecore_X_Window            ecore_x_window_root_first_get(void);
1472 EAPI Eina_Bool                 ecore_x_window_manage(Ecore_X_Window win);
1473 EAPI void                      ecore_x_window_container_manage(Ecore_X_Window win);
1474 EAPI void                      ecore_x_window_client_manage(Ecore_X_Window win);
1475 EAPI void                      ecore_x_window_sniff(Ecore_X_Window win);
1476 EAPI void                      ecore_x_window_client_sniff(Ecore_X_Window win);
1477
1478 EAPI Ecore_X_Atom              ecore_x_atom_get(const char *name);
1479 EAPI void                      ecore_x_atoms_get(const char **names, int num, Ecore_X_Atom *atoms);
1480 EAPI char                     *ecore_x_atom_name_get(Ecore_X_Atom atom);
1481
1482 EAPI void                      ecore_x_icccm_init(void);
1483 EAPI void                      ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state);
1484 EAPI Ecore_X_Window_State_Hint ecore_x_icccm_state_get(Ecore_X_Window win);
1485 EAPI void                      ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t);
1486 EAPI void                      ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t);
1487 EAPI void                      ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t);
1488 EAPI void                      ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h);
1489 EAPI void                      ecore_x_icccm_hints_set(Ecore_X_Window win, Eina_Bool accepts_focus, Ecore_X_Window_State_Hint initial_state, Ecore_X_Pixmap icon_pixmap, Ecore_X_Pixmap icon_mask, Ecore_X_Window icon_window, Ecore_X_Window window_group, Eina_Bool is_urgent);
1490 EAPI Eina_Bool                 ecore_x_icccm_hints_get(Ecore_X_Window win, Eina_Bool *accepts_focus, Ecore_X_Window_State_Hint *initial_state, Ecore_X_Pixmap *icon_pixmap, Ecore_X_Pixmap *icon_mask, Ecore_X_Window *icon_window, Ecore_X_Window *window_group, Eina_Bool *is_urgent);
1491 EAPI void                      ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win, Eina_Bool request_pos, Ecore_X_Gravity gravity, int min_w, int min_h, int max_w, int max_h, int base_w, int base_h, int step_x, int step_y, double min_aspect, double max_aspect);
1492 EAPI Eina_Bool                 ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win, Eina_Bool *request_pos, Ecore_X_Gravity *gravity, int *min_w, int *min_h, int *max_w, int *max_h, int *base_w, int *base_h, int *step_x, int *step_y, double *min_aspect, double *max_aspect);
1493 EAPI void                      ecore_x_icccm_title_set(Ecore_X_Window win, const char *t);
1494 EAPI char                     *ecore_x_icccm_title_get(Ecore_X_Window win);
1495 EAPI void                      ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win, Ecore_X_Atom *protos, int num);
1496 EAPI void                      ecore_x_icccm_protocol_set(Ecore_X_Window win, Ecore_X_WM_Protocol protocol, Eina_Bool on);
1497 EAPI Eina_Bool                 ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol);
1498 EAPI void                      ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c);
1499 EAPI void                      ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c);
1500 EAPI char                     *ecore_x_icccm_client_machine_get(Ecore_X_Window win);
1501 EAPI void                      ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv);
1502 EAPI void                      ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv);
1503 EAPI char                     *ecore_x_icccm_icon_name_get(Ecore_X_Window win);
1504 EAPI void                      ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t);
1505 EAPI void                      ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin);
1506 EAPI void                      ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin);
1507 EAPI void                      ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin);
1508 EAPI void                      ecore_x_icccm_transient_for_unset(Ecore_X_Window win);
1509 EAPI Ecore_X_Window            ecore_x_icccm_transient_for_get(Ecore_X_Window win);
1510 EAPI void                      ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role);
1511 EAPI char                     *ecore_x_icccm_window_role_get(Ecore_X_Window win);
1512 EAPI void                      ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l);
1513 EAPI Ecore_X_Window            ecore_x_icccm_client_leader_get(Ecore_X_Window win);
1514 EAPI void                      ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root);
1515
1516 typedef enum _Ecore_X_MWM_Hint_Func
1517 {
1518    ECORE_X_MWM_HINT_FUNC_ALL = (1 << 0),
1519    ECORE_X_MWM_HINT_FUNC_RESIZE = (1 << 1),
1520    ECORE_X_MWM_HINT_FUNC_MOVE = (1 << 2),
1521    ECORE_X_MWM_HINT_FUNC_MINIMIZE = (1 << 3),
1522    ECORE_X_MWM_HINT_FUNC_MAXIMIZE = (1 << 4),
1523    ECORE_X_MWM_HINT_FUNC_CLOSE = (1 << 5)
1524 } Ecore_X_MWM_Hint_Func;
1525
1526 typedef enum _Ecore_X_MWM_Hint_Decor
1527 {
1528    ECORE_X_MWM_HINT_DECOR_ALL = (1 << 0),
1529    ECORE_X_MWM_HINT_DECOR_BORDER = (1 << 1),
1530    ECORE_X_MWM_HINT_DECOR_RESIZEH = (1 << 2),
1531    ECORE_X_MWM_HINT_DECOR_TITLE = (1 << 3),
1532    ECORE_X_MWM_HINT_DECOR_MENU = (1 << 4),
1533    ECORE_X_MWM_HINT_DECOR_MINIMIZE = (1 << 5),
1534    ECORE_X_MWM_HINT_DECOR_MAXIMIZE = (1 << 6)
1535 } Ecore_X_MWM_Hint_Decor;
1536
1537 typedef enum _Ecore_X_MWM_Hint_Input
1538 {
1539    ECORE_X_MWM_HINT_INPUT_MODELESS = 0,
1540    ECORE_X_MWM_HINT_INPUT_PRIMARY_APPLICATION_MODAL = 1,
1541    ECORE_X_MWM_HINT_INPUT_SYSTEM_MODAL = 2,
1542    ECORE_X_MWM_HINT_INPUT_FULL_APPLICATION_MODAL = 3
1543 } Ecore_X_MWM_Hint_Input;
1544
1545 EAPI Eina_Bool                       ecore_x_mwm_hints_get(Ecore_X_Window win, Ecore_X_MWM_Hint_Func *fhint, Ecore_X_MWM_Hint_Decor *dhint, Ecore_X_MWM_Hint_Input *ihint);
1546 EAPI void                            ecore_x_mwm_borderless_set(Ecore_X_Window win, Eina_Bool borderless);
1547
1548 /* netwm */
1549 EAPI void                            ecore_x_netwm_init(void);
1550 EAPI void                            ecore_x_netwm_shutdown(void);
1551 EAPI void                            ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check, const char *wm_name);
1552 EAPI void                            ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num);
1553 EAPI Eina_Bool                       ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *num);
1554 EAPI void                            ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks);
1555 EAPI void                            ecore_x_netwm_desk_roots_set(Ecore_X_Window root, Ecore_X_Window *vroots, unsigned int n_desks);
1556 EAPI void                            ecore_x_netwm_desk_names_set(Ecore_X_Window root, const char **names, unsigned int n_desks);
1557 EAPI void                            ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width, unsigned int height);
1558 EAPI void                            ecore_x_netwm_desk_workareas_set(Ecore_X_Window root, unsigned int *areas, unsigned int n_desks);
1559 EAPI unsigned int                   *ecore_x_netwm_desk_workareas_get(Ecore_X_Window root, unsigned int *n_desks);
1560 EAPI void                            ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk);
1561 EAPI void                            ecore_x_netwm_desk_viewports_set(Ecore_X_Window root, unsigned int *origins, unsigned int n_desks);
1562 EAPI void                            ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation, int columns, int rows, int starting_corner);
1563 EAPI void                            ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, Eina_Bool on);
1564 EAPI void                            ecore_x_netwm_client_list_set(Ecore_X_Window root, Ecore_X_Window *p_clients, unsigned int n_clients);
1565 EAPI void                            ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root, Ecore_X_Window *p_clients, unsigned int n_clients);
1566 EAPI void                            ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win);
1567 EAPI void                            ecore_x_netwm_client_active_request(Ecore_X_Window root, Ecore_X_Window win, int type, Ecore_X_Window current_win);
1568 EAPI void                            ecore_x_netwm_name_set(Ecore_X_Window win, const char *name);
1569 EAPI int                             ecore_x_netwm_name_get(Ecore_X_Window win, char **name);
1570 EAPI void                            ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id);
1571 EAPI int                             ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id);
1572 EAPI void                            ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name);
1573 EAPI int                             ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name);
1574 EAPI void                            ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name);
1575 EAPI int                             ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name);
1576 EAPI void                            ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name);
1577 EAPI int                             ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name);
1578 EAPI void                            ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk);
1579 EAPI Eina_Bool                       ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk);
1580 EAPI void                            ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right, int top, int bottom);
1581 EAPI Eina_Bool                       ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right, int *top, int *bottom);
1582 EAPI void                            ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right, int top, int bottom, int left_start_y, int left_end_y, int right_start_y, int right_end_y, int top_start_x, int top_end_x, int bottom_start_x, int bottom_end_x);
1583 EAPI Eina_Bool                       ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right, int *top, int *bottom, int *left_start_y, int *left_end_y, int *right_start_y, int *right_end_y, int *top_start_x, int *top_end_x, int *bottom_start_x, int *bottom_end_x);
1584
1585 EAPI void                            ecore_x_netwm_icons_set(Ecore_X_Window win, Ecore_X_Icon *icon, int num);
1586
1587 EAPI Eina_Bool                       ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num);
1588 EAPI void                            ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int height);
1589 EAPI Eina_Bool                       ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width, int *height);
1590 EAPI void                            ecore_x_netwm_pid_set(Ecore_X_Window win, int pid);
1591 EAPI Eina_Bool                       ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid);
1592 EAPI void                            ecore_x_netwm_handled_icons_set(Ecore_X_Window win);
1593 EAPI Eina_Bool                       ecore_x_netwm_handled_icons_get(Ecore_X_Window win);
1594 EAPI void                            ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time);
1595 EAPI Eina_Bool                       ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time);
1596 EAPI void                            ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state, unsigned int num);
1597 EAPI Eina_Bool                       ecore_x_netwm_window_state_get(Ecore_X_Window win, Ecore_X_Window_State **state, unsigned int *num);
1598 EAPI void                            ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type);
1599 EAPI Eina_Bool                       ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type);
1600 EAPI int                             ecore_x_netwm_window_types_get(Ecore_X_Window win, Ecore_X_Window_Type **types);
1601 EAPI Eina_Bool                       ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action);
1602 EAPI void                            ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action *action, unsigned int num);
1603 EAPI Eina_Bool                       ecore_x_netwm_allowed_action_get(Ecore_X_Window win, Ecore_X_Action **action, unsigned int *num);
1604 EAPI void                            ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity);
1605 EAPI Eina_Bool                       ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity);
1606 EAPI void                            ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
1607 EAPI Eina_Bool                       ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb);
1608 EAPI Eina_Bool                       ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter);
1609 EAPI void                            ecore_x_netwm_ping_send(Ecore_X_Window win);
1610 EAPI void                            ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial);
1611 EAPI void                            ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root, Ecore_X_Window_State s1, Ecore_X_Window_State s2, Eina_Bool set);
1612 EAPI void                            ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsigned int desktop);
1613 EAPI void                            ecore_x_netwm_moveresize_request_send(Ecore_X_Window win, int x, int y, Ecore_X_Netwm_Direction direction, unsigned int button);
1614
1615 EAPI void                            ecore_x_e_init(void);
1616 EAPI void                            ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
1617 EAPI void                            ecore_x_e_virtual_keyboard_set(Ecore_X_Window win, unsigned int is_keyboard);
1618 EAPI Eina_Bool                       ecore_x_e_virtual_keyboard_get(Ecore_X_Window win);
1619 EAPI void                            ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state);
1620 EAPI Ecore_X_Virtual_Keyboard_State  ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win);
1621 EAPI void                            ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state);
1622
1623 /* Illume functions */
1624 EAPI void                            ecore_x_e_illume_zone_set(Ecore_X_Window win, Ecore_X_Window zone);
1625 EAPI Ecore_X_Window                  ecore_x_e_illume_zone_get(Ecore_X_Window win);
1626 EAPI void                            ecore_x_e_illume_zone_list_set(Ecore_X_Window win, Ecore_X_Window *zones, unsigned int n_zones);
1627 EAPI void                            ecore_x_e_illume_conformant_set(Ecore_X_Window win, unsigned int is_conformant);
1628 EAPI Eina_Bool                       ecore_x_e_illume_conformant_get(Ecore_X_Window win);
1629 EAPI void                            ecore_x_e_illume_mode_set(Ecore_X_Window win, Ecore_X_Illume_Mode mode);
1630 EAPI Ecore_X_Illume_Mode             ecore_x_e_illume_mode_get(Ecore_X_Window win);
1631 EAPI void                            ecore_x_e_illume_mode_send(Ecore_X_Window win, Ecore_X_Illume_Mode mode);
1632 EAPI void                            ecore_x_e_illume_focus_back_send(Ecore_X_Window win);
1633 EAPI void                            ecore_x_e_illume_focus_forward_send(Ecore_X_Window win);
1634 EAPI void                            ecore_x_e_illume_focus_home_send(Ecore_X_Window win);
1635 EAPI void                            ecore_x_e_illume_close_send(Ecore_X_Window win);
1636 EAPI void                            ecore_x_e_illume_home_new_send(Ecore_X_Window win);
1637 EAPI void                            ecore_x_e_illume_home_del_send(Ecore_X_Window win);
1638 EAPI void                            ecore_x_e_illume_access_action_next_send(Ecore_X_Window win);
1639 EAPI void                            ecore_x_e_illume_access_action_prev_send(Ecore_X_Window win);
1640 EAPI void                            ecore_x_e_illume_access_action_activate_send(Ecore_X_Window win);
1641 EAPI void                            ecore_x_e_illume_access_action_read_send(Ecore_X_Window win);
1642 EAPI void                            ecore_x_e_illume_access_action_read_next_send(Ecore_X_Window win);
1643 EAPI void                            ecore_x_e_illume_access_action_read_prev_send(Ecore_X_Window win);
1644
1645 EAPI void                            ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag);
1646 EAPI Eina_Bool                       ecore_x_e_illume_drag_get(Ecore_X_Window win);
1647 EAPI void                            ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked);
1648 EAPI Eina_Bool                       ecore_x_e_illume_drag_locked_get(Ecore_X_Window win);
1649 EAPI void                            ecore_x_e_illume_drag_start_send(Ecore_X_Window win);
1650 EAPI void                            ecore_x_e_illume_drag_end_send(Ecore_X_Window win);
1651 EAPI void                            ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1652 EAPI Eina_Bool                       ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1653 EAPI void                            ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1654 EAPI Eina_Bool                       ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1655 EAPI void                            ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1656 EAPI Eina_Bool                       ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1657 EAPI void                            ecore_x_e_illume_quickpanel_set(Ecore_X_Window win, unsigned int is_quickpanel);
1658 EAPI Eina_Bool                       ecore_x_e_illume_quickpanel_get(Ecore_X_Window win);
1659 EAPI void                            ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win, Ecore_X_Illume_Quickpanel_State state);
1660 EAPI Ecore_X_Illume_Quickpanel_State ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win);
1661 EAPI void                            ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win, Ecore_X_Illume_Quickpanel_State state);
1662 EAPI void                            ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win);
1663 EAPI void                            ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win, unsigned int priority);
1664 EAPI int                             ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win);
1665 EAPI void                            ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win, unsigned int priority);
1666 EAPI int                             ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win);
1667 EAPI void                            ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win, unsigned int zone);
1668 EAPI int                             ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win);
1669 EAPI void                            ecore_x_e_illume_quickpanel_zone_request_send(Ecore_X_Window win);
1670 EAPI void                            ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win);
1671
1672 EAPI void                            ecore_x_e_illume_clipboard_state_set(Ecore_X_Window win, Ecore_X_Illume_Clipboard_State state);
1673
1674 EAPI Ecore_X_Illume_Clipboard_State  ecore_x_e_illume_clipboard_state_get(Ecore_X_Window win);
1675
1676 EAPI void                            ecore_x_e_illume_clipboard_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1677 EAPI Eina_Bool                       ecore_x_e_illume_clipboard_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1678 EAPI void                            ecore_x_e_comp_sync_counter_set(Ecore_X_Window win, Ecore_X_Sync_Counter counter);
1679 EAPI Ecore_X_Sync_Counter            ecore_x_e_comp_sync_counter_get(Ecore_X_Window win);
1680 EAPI void                            ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root, Ecore_X_Window win);
1681 EAPI void                            ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root, Ecore_X_Window win, int w, int h);
1682 EAPI void                            ecore_x_e_comp_sync_supported_set(Ecore_X_Window root, Eina_Bool enabled);
1683 EAPI Eina_Bool                       ecore_x_e_comp_sync_supported_get(Ecore_X_Window root);
1684 EAPI void                            ecore_x_e_comp_sync_begin_send(Ecore_X_Window win);
1685 EAPI void                            ecore_x_e_comp_sync_end_send(Ecore_X_Window win);
1686 EAPI void                            ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win);
1687
1688 EAPI void                            ecore_x_e_comp_flush_send(Ecore_X_Window win);
1689 EAPI void                            ecore_x_e_comp_dump_send(Ecore_X_Window win);
1690 EAPI void                            ecore_x_e_comp_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pixmap);
1691 EAPI Ecore_X_Pixmap                  ecore_x_e_comp_pixmap_get(Ecore_X_Window win);
1692
1693 EAPI char                            *ecore_x_e_window_profile_get(Ecore_X_Window win);
1694 EAPI void                             ecore_x_e_window_profile_set(Ecore_X_Window win, const char *profile);
1695 EAPI void                             ecore_x_e_window_profile_list_set(Ecore_X_Window  win, const char **profiles, unsigned int num_profiles);
1696 EAPI Eina_Bool                        ecore_x_e_window_profile_list_get(Ecore_X_Window win, const char ***profiles, int *ret_num);
1697
1698 EAPI Ecore_X_Sync_Alarm              ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter);
1699 EAPI Eina_Bool                       ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm);
1700 EAPI Eina_Bool                       ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val);
1701 EAPI Ecore_X_Sync_Counter            ecore_x_sync_counter_new(int val);
1702 EAPI void                            ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter);
1703 EAPI void                            ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter, int by);
1704 EAPI void                            ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter, int val);
1705
1706 EAPI void                            ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter, int val);
1707 EAPI void                            ecore_x_sync_counter_2_set(Ecore_X_Sync_Counter counter, int val_hi, unsigned int val_lo);
1708 EAPI Eina_Bool                       ecore_x_sync_counter_2_query(Ecore_X_Sync_Counter counter, int *val_hi, unsigned int *val_lo);
1709
1710 EAPI int                             ecore_x_xinerama_screen_count_get(void);
1711 EAPI Eina_Bool                       ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h);
1712
1713 EAPI Eina_Bool                       ecore_x_screensaver_event_available_get(void);
1714 EAPI int                             ecore_x_screensaver_idle_time_get(void);
1715 EAPI void                            ecore_x_screensaver_set(int timeout, int interval, int prefer_blanking, int allow_exposures);
1716 EAPI void                            ecore_x_screensaver_timeout_set(int timeout);
1717 EAPI int                             ecore_x_screensaver_timeout_get(void);
1718 EAPI void                            ecore_x_screensaver_blank_set(int timeout);
1719 EAPI int                             ecore_x_screensaver_blank_get(void);
1720 EAPI void                            ecore_x_screensaver_expose_set(int timeout);
1721 EAPI int                             ecore_x_screensaver_expose_get(void);
1722 EAPI void                            ecore_x_screensaver_interval_set(int timeout);
1723 EAPI int                             ecore_x_screensaver_interval_get(void);
1724 EAPI void                            ecore_x_screensaver_event_listen_set(Eina_Bool on);
1725 EAPI Eina_Bool                       ecore_x_screensaver_custom_blanking_enable(void); /** @since 1.7 */
1726 EAPI Eina_Bool                       ecore_x_screensaver_custom_blanking_disable(void); /** @since 1.7 */
1727        
1728 /* FIXME: these funcs need categorising */
1729
1730 typedef struct _Ecore_X_Window_Attributes
1731 {
1732    Ecore_X_Window   root;
1733    int              x, y, w, h;
1734    int              border;
1735    int              depth;
1736    Eina_Bool        visible : 1;
1737    Eina_Bool        viewable : 1;
1738    Eina_Bool        override : 1;
1739    Eina_Bool        input_only : 1;
1740    Eina_Bool        save_under : 1;
1741    struct
1742    {
1743       Ecore_X_Event_Mask mine;
1744       Ecore_X_Event_Mask all;
1745       Ecore_X_Event_Mask no_propagate;
1746    } event_mask;
1747    Ecore_X_Gravity  window_gravity;
1748    Ecore_X_Gravity  pixel_gravity;
1749    Ecore_X_Colormap colormap;
1750    Ecore_X_Visual   visual;
1751    /* FIXME: missing
1752     * int map_installed;
1753     * Screen *screen;
1754     */
1755 } Ecore_X_Window_Attributes;
1756
1757 EAPI Eina_Bool        ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att_ret);
1758 EAPI void             ecore_x_window_save_set_add(Ecore_X_Window win);
1759 EAPI void             ecore_x_window_save_set_del(Ecore_X_Window win);
1760 EAPI Ecore_X_Window  *ecore_x_window_children_get(Ecore_X_Window win, int *num);
1761
1762 EAPI Eina_Bool        ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold);
1763 EAPI Eina_Bool        ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold);
1764 EAPI Eina_Bool        ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
1765 EAPI Eina_Bool        ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
1766 EAPI Eina_Bool        ecore_x_pointer_grab(Ecore_X_Window win);
1767 EAPI Eina_Bool        ecore_x_pointer_confine_grab(Ecore_X_Window win);
1768 EAPI void             ecore_x_pointer_ungrab(void);
1769 EAPI Eina_Bool        ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
1770 EAPI Eina_Bool        ecore_x_keyboard_grab(Ecore_X_Window win);
1771 EAPI void             ecore_x_keyboard_ungrab(void);
1772 EAPI void             ecore_x_grab(void);
1773 EAPI void             ecore_x_ungrab(void);
1774 EAPI void             ecore_x_passive_grab_replay_func_set(Eina_Bool (*func)(void *data, int event_type, void *event), void *data);
1775 EAPI void             ecore_x_window_button_grab(Ecore_X_Window win, int button, Ecore_X_Event_Mask event_mask, int mod, int any_mod);
1776 EAPI void             ecore_x_window_button_ungrab(Ecore_X_Window win, int button, int mod, int any_mod);
1777 EAPI void             ecore_x_window_key_grab(Ecore_X_Window win, const char *key, int mod, int any_mod);
1778 EAPI void             ecore_x_window_key_ungrab(Ecore_X_Window win, const char *key, int mod, int any_mod);
1779
1780 EAPI void             ecore_x_focus_reset(void);
1781 EAPI void             ecore_x_events_allow_all(void);
1782 EAPI void             ecore_x_pointer_last_xy_get(int *x, int *y);
1783 EAPI void             ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y);
1784
1785 /* ecore_x_region.c */
1786 EAPI Ecore_X_XRegion *ecore_x_xregion_new(void);
1787 EAPI void             ecore_x_xregion_free(Ecore_X_XRegion *region);
1788 EAPI Eina_Bool        ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc);
1789 EAPI void             ecore_x_xregion_translate(Ecore_X_XRegion *region, int x, int y);
1790 EAPI Eina_Bool        ecore_x_xregion_intersect(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1791 EAPI Eina_Bool        ecore_x_xregion_union(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1792 EAPI Eina_Bool        ecore_x_xregion_union_rect(Ecore_X_XRegion *dst, Ecore_X_XRegion *src, Ecore_X_Rectangle *rect);
1793 EAPI Eina_Bool        ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1794 EAPI Eina_Bool        ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
1795 EAPI Eina_Bool        ecore_x_xregion_is_equal(Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1796 EAPI Eina_Bool        ecore_x_xregion_point_contain(Ecore_X_XRegion *region, int x, int y);
1797 EAPI Eina_Bool        ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, Ecore_X_Rectangle *rect);
1798
1799 /* ecore_x_randr.c */
1800
1801 /* The usage of 'Ecore_X_Randr_None' or 'Ecore_X_Randr_Unset'
1802  * depends on the context. In most cases 'Ecore_X_Randr_Unset'
1803  * can be used, but in some cases -1 is a special value to
1804  * functions, thus 'Ecore_X_Randr_None' (=0) must be used.
1805  */
1806
1807 typedef short Ecore_X_Randr_Refresh_Rate;
1808 typedef int   Ecore_X_Randr_Crtc_Gamma;
1809 typedef int   Ecore_X_Randr_Signal_Format;
1810 typedef int   Ecore_X_Randr_Signal_Property;
1811 typedef int   Ecore_X_Randr_Connector_Type;
1812
1813 typedef struct _Ecore_X_Randr_Mode_Info
1814 {
1815    Ecore_X_ID    xid;
1816    unsigned int  width;
1817    unsigned int  height;
1818    unsigned long dotClock;
1819    unsigned int  hSyncStart;
1820    unsigned int  hSyncEnd;
1821    unsigned int  hTotal;
1822    unsigned int  hSkew;
1823    unsigned int  vSyncStart;
1824    unsigned int  vSyncEnd;
1825    unsigned int  vTotal;
1826    char         *name;
1827    unsigned int  nameLength;
1828    unsigned long modeFlags;
1829 } Ecore_X_Randr_Mode_Info;
1830
1831 typedef struct _Ecore_X_Randr_Crtc_Gamma_Info
1832 {
1833    int size;
1834    unsigned short *red;
1835    unsigned short *green;
1836    unsigned short *blue;
1837 } Ecore_X_Randr_Crtc_Gamma_Info;
1838
1839 EAPI int                                       ecore_x_randr_version_get(void);
1840 EAPI Eina_Bool                                 ecore_x_randr_query(void);
1841 EAPI Ecore_X_Time                              ecore_x_randr_config_timestamp_get(Ecore_X_Window root); /** @since 1.8 */
1842 EAPI Ecore_X_Randr_Orientation                 ecore_x_randr_screen_primary_output_orientations_get(Ecore_X_Window root);
1843 EAPI Ecore_X_Randr_Orientation                 ecore_x_randr_screen_primary_output_orientation_get(Ecore_X_Window root);
1844 EAPI Eina_Bool                                 ecore_x_randr_screen_primary_output_orientation_set(Ecore_X_Window root, Ecore_X_Randr_Orientation orientation);
1845 EAPI Ecore_X_Randr_Screen_Size_MM             *ecore_x_randr_screen_primary_output_sizes_get(Ecore_X_Window root, int *num);
1846
1847 /**
1848  * @brief get the current set size of a given screen's primary output
1849  * @param root window which's primary output will be queried
1850  * @param w the current size's width
1851  * @param h the current size's height
1852  * @param w_mm the current size's width in mm
1853  * @param h_mm the current size's height in mm
1854  * @param size_index of current set size to be used with ecore_x_randr_primary_output_size_set()
1855  */
1856 EAPI void                                      ecore_x_randr_screen_primary_output_current_size_get(Ecore_X_Window root, int *w, int *h, int *w_mm, int *h_mm, int *size_index);
1857 EAPI Eina_Bool                                 ecore_x_randr_screen_primary_output_size_set(Ecore_X_Window root, int size_index);
1858 EAPI Ecore_X_Randr_Refresh_Rate                ecore_x_randr_screen_primary_output_current_refresh_rate_get(Ecore_X_Window root);
1859 EAPI Ecore_X_Randr_Refresh_Rate               *ecore_x_randr_screen_primary_output_refresh_rates_get(Ecore_X_Window root, int size_index, int *num);
1860 EAPI Eina_Bool                                 ecore_x_randr_screen_primary_output_refresh_rate_set(Ecore_X_Window root, int size_index, Ecore_X_Randr_Refresh_Rate rate);
1861
1862 EAPI void                                      ecore_x_randr_events_select(Ecore_X_Window win, Eina_Bool on);
1863
1864 EAPI void                                      ecore_x_randr_screen_current_size_get(Ecore_X_Window root, int *w, int *h, int *w_mm, int *h_mm);
1865 EAPI void                                      ecore_x_randr_screen_size_range_get(Ecore_X_Window root, int *wmin, int *hmin, int *wmax, int *hmax);
1866 EAPI void                                      ecore_x_randr_screen_reset(Ecore_X_Window root);
1867 EAPI Eina_Bool                                 ecore_x_randr_screen_current_size_set(Ecore_X_Window root, int w, int h, int w_mm, int h_mm);
1868 EAPI Ecore_X_Randr_Mode_Info                 **ecore_x_randr_modes_info_get(Ecore_X_Window root, int *num);
1869 EAPI Ecore_X_Randr_Mode                        ecore_x_randr_mode_info_add(Ecore_X_Window root, Ecore_X_Randr_Mode_Info *mode_info);
1870 EAPI void                                      ecore_x_randr_mode_del(Ecore_X_Randr_Mode mode);
1871 EAPI Ecore_X_Randr_Mode_Info                  *ecore_x_randr_mode_info_get(Ecore_X_Window root, Ecore_X_Randr_Mode mode);
1872 EAPI void                                      ecore_x_randr_mode_info_free(Ecore_X_Randr_Mode_Info *mode_info);
1873 EAPI Ecore_X_Randr_Crtc                       *ecore_x_randr_crtcs_get(Ecore_X_Window root, int *num);
1874 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_outputs_get(Ecore_X_Window root, int *num);
1875 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_window_outputs_get(Ecore_X_Window window, int *num);
1876 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_current_output_get(Ecore_X_Window window, int *num);
1877 EAPI Ecore_X_Randr_Crtc                       *ecore_x_randr_window_crtcs_get(Ecore_X_Window window, int *num);
1878 EAPI Ecore_X_Randr_Crtc                       *ecore_x_randr_current_crtc_get(Ecore_X_Window window, int *num);
1879 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_crtc_outputs_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *num);
1880 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_crtc_possible_outputs_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *num);
1881 EAPI void                                      ecore_x_randr_crtc_geometry_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h);
1882 EAPI void                                      ecore_x_randr_crtc_pos_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y);
1883 EAPI Eina_Bool                                 ecore_x_randr_crtc_pos_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int x, int y);
1884 EAPI Ecore_X_Randr_Mode                        ecore_x_randr_crtc_mode_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1885 EAPI Eina_Bool                                 ecore_x_randr_crtc_mode_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Output *outputs, int noutputs, Ecore_X_Randr_Mode mode);
1886 EAPI void                                      ecore_x_randr_crtc_size_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *w, int *h);
1887 EAPI Ecore_X_Randr_Refresh_Rate                ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Mode mode);
1888 EAPI Ecore_X_Randr_Orientation                 ecore_x_randr_crtc_orientations_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1889 EAPI Ecore_X_Randr_Orientation                 ecore_x_randr_crtc_orientation_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1890 EAPI Eina_Bool                                 ecore_x_randr_crtc_orientation_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, const Ecore_X_Randr_Orientation orientation);
1891 EAPI Eina_Bool                                 ecore_x_randr_crtc_clone_set(Ecore_X_Window root, Ecore_X_Randr_Crtc original, Ecore_X_Randr_Crtc clone);
1892 EAPI Eina_Bool                                 ecore_x_randr_crtc_settings_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Output *outputs, int noutputs, int x, int y, Ecore_X_Randr_Mode mode, Ecore_X_Randr_Orientation orientation);
1893 EAPI Eina_Bool                                 ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc_r1, Ecore_X_Randr_Crtc crtc_r2, Ecore_X_Randr_Output_Policy policy, Ecore_X_Randr_Relative_Alignment alignment);
1894 EAPI Ecore_X_Randr_Crtc_Info                  *ecore_x_randr_crtc_info_get(Ecore_X_Window root, const Ecore_X_Randr_Crtc crtc); /**< @since 1.8 */
1895 EAPI void                                      ecore_x_randr_crtc_info_free(Ecore_X_Randr_Crtc_Info *info); /**< @since 1.8 */
1896 EAPI Eina_Bool                                 ecore_x_randr_output_mode_add(Ecore_X_Randr_Output output, Ecore_X_Randr_Mode mode);
1897 EAPI void                                      ecore_x_randr_output_mode_del(Ecore_X_Randr_Output output, Ecore_X_Randr_Mode mode);
1898 EAPI Ecore_X_Randr_Mode                       *ecore_x_randr_output_modes_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num, int *npreferred);
1899 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_output_clones_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
1900 EAPI Ecore_X_Randr_Crtc                       *ecore_x_randr_output_possible_crtcs_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
1901 EAPI Ecore_X_Randr_Crtc                        ecore_x_randr_output_crtc_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
1902 EAPI char                                     *ecore_x_randr_output_name_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *len);
1903 EINA_DEPRECATED EAPI int                       ecore_x_randr_crtc_gamma_ramp_size_get(Ecore_X_Randr_Crtc crtc);
1904 EINA_DEPRECATED EAPI Ecore_X_Randr_Crtc_Gamma **ecore_x_randr_crtc_gamma_ramps_get(Ecore_X_Randr_Crtc crtc);
1905 EINA_DEPRECATED EAPI Eina_Bool                 ecore_x_randr_crtc_gamma_ramps_set(Ecore_X_Randr_Crtc crtc, const Ecore_X_Randr_Crtc_Gamma *red, const Ecore_X_Randr_Crtc_Gamma *green, const Ecore_X_Randr_Crtc_Gamma *blue);
1906 EAPI Eina_Bool                                 ecore_x_randr_move_all_crtcs_but(Ecore_X_Window root, const Ecore_X_Randr_Crtc *not_moved, int nnot_moved, int dx, int dy);
1907 EAPI Eina_Bool                                 ecore_x_randr_move_crtcs(Ecore_X_Window root, const Ecore_X_Randr_Crtc *crtcs, int ncrtc, int dx, int dy);
1908 EAPI void                                      ecore_x_randr_mode_size_get(Ecore_X_Window root, Ecore_X_Randr_Mode mode, int *w, int *h);
1909 EAPI Ecore_X_Randr_Connection_Status           ecore_x_randr_output_connection_status_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
1910 EAPI void                                      ecore_x_randr_output_size_mm_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *w, int *h);
1911 EAPI Eina_Bool                                 ecore_x_randr_output_crtc_set(Ecore_X_Window root, Ecore_X_Randr_Output output, const Ecore_X_Randr_Crtc crtc);
1912
1913 EAPI int                                       ecore_x_randr_crtc_gamma_size_get(Ecore_X_Randr_Crtc crtc); /**< @since 1.8 */
1914 EAPI Ecore_X_Randr_Crtc_Gamma_Info            *ecore_x_randr_crtc_gamma_get(Ecore_X_Randr_Crtc crtc); /**< @since 1.8 */
1915 EAPI Eina_Bool                                 ecore_x_randr_crtc_gamma_set(Ecore_X_Randr_Crtc crtc, const Ecore_X_Randr_Crtc_Gamma_Info *gamma); /**< @since 1.8 */
1916
1917 /**
1918  * @brief Validates the header from raw EDID data.
1919  *
1920  * @param edid The edid structure.
1921  * @param edid_length Length of the edid structure.
1922  * @return @c EINA_TRUE, if the header is valid, @c EINA_FALSE otherwise.
1923  */
1924 EAPI Eina_Bool                                 ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length);
1925
1926 /**
1927  * @brief Checks whether a display's EDID has a valid checksum.
1928  *
1929  * @param edid The edid structure.
1930  * @param edid_length Length of the edid structure.
1931  * @return @c EINA_TRUE, if the checksum is valid, @c EINA_FALSE otherwise.
1932  */
1933 EAPI Eina_Bool                                 ecore_x_randr_edid_info_has_valid_checksum(unsigned char *edid, unsigned long edid_length);
1934
1935 /**
1936  * @brief Get the encoded version from raw EDID data.
1937  *
1938  * The return value has the minor version in the lowest 8 bits, and the major
1939  * version in all the rest of the bits. i.e.
1940  *
1941  * minor = (version & 0x000000ff);
1942  * major = (version & 0xffffff00) >> 8;
1943  *
1944  * @param edid the edid structure
1945  * @param edid_length length of the edid structure
1946  * @return The encoded major and minor version encasuplated an int.
1947  */
1948 EAPI int                                       ecore_x_randr_edid_version_get(unsigned char *edid, unsigned long edid_length);
1949
1950 /**
1951  * @brief Get the encoded manufacturer from raw EDID data.
1952  *
1953  * @param edid the edid structure
1954  * @param edid_length length of the edid structure
1955  * @return The encoded manufacturer identifier.
1956  */
1957 EAPI char                                     *ecore_x_randr_edid_manufacturer_name_get(unsigned char *edid, unsigned long edid_length);
1958
1959 /**
1960  * @brief Get the encoded name from raw EDID data.
1961  *
1962  * @param edid the edid structure
1963  * @param edid_length length of the edid structure
1964  * @return The encoded manufacturer identifier.
1965  */
1966 EAPI char                                     *ecore_x_randr_edid_display_name_get(unsigned char *edid, unsigned long edid_length);
1967
1968 /**
1969  * @brief Get the encoded ASCII from raw EDID data.
1970  *
1971  * @param edid the edid structure
1972  * @param edid_length length of the edid structure
1973  * @return The encoded ASCII display identifier.
1974  */
1975 EAPI char                                     *ecore_x_randr_edid_display_ascii_get(unsigned char *edid, unsigned long edid_length);
1976
1977 /**
1978  * @brief Get the encoded serial identifier from raw EDID data.
1979  *
1980  * @param edid the edid structure
1981  * @param edid_length length of the edid structure
1982  * @return The encoded serial identifier.
1983  */
1984 EAPI char                                     *ecore_x_randr_edid_display_serial_get(unsigned char *edid, unsigned long edid_length);
1985
1986 /**
1987  * @brief Get the encoded model number from raw EDID data.
1988  *
1989  * The manufacturer ID table is necessary for a useful description.
1990  *
1991  * @param edid the edid structure
1992  * @param edid_length length of the edid structure
1993  * @return The encoded model number.
1994  */
1995 EAPI int                                       ecore_x_randr_edid_model_get(unsigned char *edid, unsigned long edid_length);
1996
1997 /**
1998  * @brief Get the manufacturer serial number from raw EDID data.
1999  *
2000  * @param edid the edid structure
2001  * @param edid_length length of the edid structure
2002  * @return The encoded serial manufacturer serial number.
2003  */
2004 EAPI int                                       ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned long edid_length);
2005
2006 /**
2007  * @brief Get the manufacturer model number from raw EDID data.
2008  *
2009  * @param edid the edid structure
2010  * @param edid_length length of the edid structure
2011  * @return The manufacturer's model number.
2012  */
2013 EAPI int                                       ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid, unsigned long edid_length);
2014
2015 /**
2016  * @brief Looks up the DPMS support from raw EDID data.
2017  *
2018  * @param edid The edid structure.
2019  * @param edid_length Length of the edid structure.
2020  * @return @c EINA_TRUE, if DPMS is supported in some way, @c EINA_FALSE
2021  * otherwise.
2022  */
2023 EAPI Eina_Bool                                 ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_length);
2024
2025 /**
2026  * @brief Looks up the DPMS Standby support from raw EDID data.
2027  *
2028  * @param edid The edid structure.
2029  * @param edid_length Length of the edid structure.
2030  * @return @c EINA_TRUE, if DPMS Standby is supported, @c EINA_FALSE otherwise.
2031  */
2032 EAPI Eina_Bool                                 ecore_x_randr_edid_dpms_standby_available_get(unsigned char *edid, unsigned long edid_length);
2033
2034 /**
2035  * @brief Looks up the DPMS Suspend support from raw EDID data.
2036  *
2037  * @param edid The edid structure.
2038  * @param edid_length Length of the edid structure.
2039  * @return @c EINA_TRUE, if DPMS Suspend is supported, @c EINA_FALSE otherwise.
2040  */
2041 EAPI Eina_Bool                                 ecore_x_randr_edid_dpms_suspend_available_get(unsigned char *edid, unsigned long edid_length);
2042
2043 /**
2044  * @brief Looks up the DPMS Off support from raw EDID data.
2045  *
2046  * @param edid The edid structure.
2047  * @param edid_length Length of the edid structure.
2048  * @return @c EINA_TRUE, if DPMS Off is supported, @c EINA_FALSE otherwise.
2049  */
2050 EAPI Eina_Bool                                 ecore_x_randr_edid_dpms_off_available_get(unsigned char *edid, unsigned long edid_length);
2051
2052 /**
2053  * @brief Get the preferred aspect ratio from raw EDID data.
2054  *
2055  * @param edid the edid structure
2056  * @param edid_length length of the edid structure
2057  * @return The preferred aspect ratio.
2058  */
2059 EAPI Ecore_X_Randr_Edid_Aspect_Ratio           ecore_x_randr_edid_display_aspect_ratio_preferred_get(unsigned char *edid, unsigned long edid_length);
2060
2061 /**
2062  * @brief Get the supported aspect ratios from raw EDID data.
2063  *
2064  * @param edid the edid structure
2065  * @param edid_length length of the edid structure
2066  * @return The supported aspect ratios.
2067  */
2068 EAPI Ecore_X_Randr_Edid_Aspect_Ratio           ecore_x_randr_edid_display_aspect_ratios_get(unsigned char *edid, unsigned long edid_length);
2069
2070 /**
2071  * @brief Get the supported colorschemes from raw EDID data.
2072  *
2073  * @param edid the edid structure
2074  * @param edid_length length of the edid structure
2075  * @return The supported colorschemes.
2076  */
2077 EAPI Ecore_X_Randr_Edid_Display_Colorscheme    ecore_x_randr_edid_display_colorscheme_get(unsigned char *edid, unsigned long edid_length);
2078
2079 /**
2080  * @brief Get the display type from raw EDID data.
2081  *
2082  * @param edid The edid structure.
2083  * @param edid_length Length of the edid structure.
2084  * @return @c EINA_TRUE, if the display is a digital one, @c EINA_FALSE
2085  * otherwise.
2086  */
2087 EAPI Eina_Bool                                 ecore_x_randr_edid_display_type_digital_get(unsigned char *edid, unsigned long edid_length);
2088
2089 /**
2090  * @brief Get the display interface type from raw EDID data.
2091  *
2092  * @param edid the edid structure
2093  * @param edid_length length of the edid structure
2094  * @return The interface type.
2095  */
2096 EAPI Ecore_X_Randr_Edid_Display_Interface_Type ecore_x_randr_edid_display_interface_type_get(unsigned char *edid, unsigned long edid_length);
2097
2098 EAPI Eina_Bool                                 ecore_x_randr_output_backlight_available(void);
2099 EAPI void                                      ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level);
2100 EAPI double                                    ecore_x_randr_output_backlight_level_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2101 EAPI Eina_Bool                                 ecore_x_randr_output_backlight_level_set(Ecore_X_Window root, Ecore_X_Randr_Output output, double level);
2102 EAPI Ecore_X_Randr_Output                      ecore_x_randr_primary_output_get(Ecore_X_Window root);
2103 EAPI void                                      ecore_x_randr_primary_output_set(Ecore_X_Window root, Ecore_X_Randr_Output output);
2104 EAPI Ecore_X_Render_Subpixel_Order             ecore_x_randr_output_subpixel_order_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2105 EAPI unsigned char                            *ecore_x_randr_output_edid_get(Ecore_X_Window root, Ecore_X_Randr_Output output, unsigned long *length);
2106 EAPI Ecore_X_Randr_Output                     *ecore_x_randr_output_wired_clones_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2107 EAPI Ecore_X_Randr_Output                    **ecore_x_randr_output_compatibility_list_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2108 EAPI Ecore_X_Randr_Signal_Format              *ecore_x_randr_output_signal_formats_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2109 EAPI Eina_Bool                                 ecore_x_randr_output_signal_format_set(Ecore_X_Window root, Ecore_X_Randr_Output output, Ecore_X_Randr_Signal_Format *signal);
2110 EAPI Ecore_X_Randr_Signal_Property            *ecore_x_randr_output_signal_properties_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2111 EAPI int                                       ecore_x_randr_output_connector_number_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2112 EAPI Ecore_X_Randr_Connector_Type              ecore_x_randr_output_connector_type_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2113 EAPI void                                      ecore_x_randr_crtc_panning_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h); /**< @since 1.8 */
2114 EAPI Eina_Bool                                 ecore_x_randr_crtc_panning_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, const int x, const int y, const int w, const int h); /**< @since 1.8 */
2115 EAPI void                                      ecore_x_randr_crtc_tracking_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h); /**< @since 1.8 */
2116 EAPI Eina_Bool                                 ecore_x_randr_crtc_tracking_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, const int x, const int y, const int w, const int h); /**< @since 1.8 */
2117 EAPI void                                      ecore_x_randr_crtc_border_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h); /**< @since 1.8 */
2118 EAPI Eina_Bool                                 ecore_x_randr_crtc_border_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, const int left, const int top, const int right, const int bottom); /**< @since 1.8 */
2119
2120 /* XRender Support (horrendously incomplete) */
2121 typedef Ecore_X_ID Ecore_X_Picture;
2122
2123 /* XFixes Extension Support */
2124 typedef Ecore_X_ID Ecore_X_Region;
2125
2126 typedef enum _Ecore_X_Region_Type
2127 {
2128    ECORE_X_REGION_BOUNDING,
2129    ECORE_X_REGION_CLIP
2130 } Ecore_X_Region_Type;
2131
2132 EAPI Ecore_X_Region     ecore_x_region_new(Ecore_X_Rectangle *rects, int num);
2133 EAPI Ecore_X_Region     ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap);
2134 EAPI Ecore_X_Region     ecore_x_region_new_from_window(Ecore_X_Window win, Ecore_X_Region_Type type);
2135 EAPI Ecore_X_Region     ecore_x_region_new_from_gc(Ecore_X_GC gc);
2136 EAPI Ecore_X_Region     ecore_x_region_new_from_picture(Ecore_X_Picture picture);
2137 EAPI void               ecore_x_region_free(Ecore_X_Region region);
2138 EAPI void               ecore_x_region_set(Ecore_X_Region region, Ecore_X_Rectangle *rects, int num);
2139 EAPI void               ecore_x_region_copy(Ecore_X_Region dest, Ecore_X_Region source);
2140 EAPI void               ecore_x_region_combine(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2141 EAPI void               ecore_x_region_intersect(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2142 EAPI void               ecore_x_region_subtract(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2143 EAPI void               ecore_x_region_invert(Ecore_X_Region dest, Ecore_X_Rectangle *bounds, Ecore_X_Region source);
2144 EAPI void               ecore_x_region_translate(Ecore_X_Region region, int dx, int dy);
2145 EAPI void               ecore_x_region_extents(Ecore_X_Region dest, Ecore_X_Region source);
2146 EAPI Ecore_X_Rectangle *ecore_x_region_fetch(Ecore_X_Region region, int *num, Ecore_X_Rectangle *bounds);
2147 EAPI void               ecore_x_region_expand(Ecore_X_Region dest, Ecore_X_Region source, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom);
2148 EAPI void               ecore_x_region_gc_clip_set(Ecore_X_Region region, Ecore_X_GC gc, int x_origin, int y_origin);
2149 EAPI void               ecore_x_region_window_shape_set(Ecore_X_Region region, Ecore_X_Window win, Ecore_X_Shape_Type type, int x_offset, int y_offset);
2150 EAPI void               ecore_x_region_picture_clip_set(Ecore_X_Region region, Ecore_X_Picture picture, int x_origin, int y_origin);
2151
2152 /**
2153  * xfixes selection notification request.
2154  *
2155  * This lets you choose which selections you want to get notifications for.
2156  * @param selection The selection atom.
2157  * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
2158  * @since 1.1.0
2159  */
2160 EAPI Eina_Bool          ecore_x_fixes_selection_notification_request(Ecore_X_Atom selection);
2161
2162 /* XComposite Extension Support */
2163 EAPI Eina_Bool          ecore_x_composite_query(void);
2164 EAPI void               ecore_x_composite_redirect_window(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2165 EAPI void               ecore_x_composite_redirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2166 EAPI void               ecore_x_composite_unredirect_window(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2167 EAPI void               ecore_x_composite_unredirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2168 EAPI Ecore_X_Pixmap     ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win);
2169 EAPI void               ecore_x_composite_window_events_disable(Ecore_X_Window win);
2170 EAPI void               ecore_x_composite_window_events_enable(Ecore_X_Window win);
2171 EAPI Ecore_X_Window     ecore_x_composite_render_window_enable(Ecore_X_Window root);
2172 EAPI void               ecore_x_composite_render_window_disable(Ecore_X_Window root);
2173
2174 /* XDamage Extension Support */
2175 typedef Ecore_X_ID Ecore_X_Damage;
2176
2177 typedef enum _Ecore_X_Damage_Report_Level
2178 {
2179    ECORE_X_DAMAGE_REPORT_RAW_RECTANGLES,
2180    ECORE_X_DAMAGE_REPORT_DELTA_RECTANGLES,
2181    ECORE_X_DAMAGE_REPORT_BOUNDING_BOX,
2182    ECORE_X_DAMAGE_REPORT_NON_EMPTY
2183 } Ecore_X_Damage_Report_Level;
2184
2185 struct _Ecore_X_Event_Damage
2186 {
2187    Ecore_X_Damage_Report_Level level;
2188    Ecore_X_Drawable            drawable;
2189    Ecore_X_Damage              damage;
2190    int                         more;
2191    Ecore_X_Time                time;
2192    Ecore_X_Rectangle           area;
2193    Ecore_X_Rectangle           geometry;
2194 };
2195
2196 typedef struct _Ecore_X_Event_Damage Ecore_X_Event_Damage;
2197
2198 struct _Ecore_X_Event_Xkb
2199 {
2200    int group;
2201 };
2202 typedef struct _Ecore_X_Event_Xkb Ecore_X_Event_Xkb; /** @since 1.7 */
2203
2204 EAPI Eina_Bool      ecore_x_damage_query(void);
2205 EAPI Ecore_X_Damage ecore_x_damage_new(Ecore_X_Drawable d, Ecore_X_Damage_Report_Level level);
2206 EAPI void           ecore_x_damage_free(Ecore_X_Damage damage);
2207 EAPI void           ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Region parts);
2208
2209 EAPI Eina_Bool      ecore_x_screen_is_composited(int screen);
2210 EAPI void           ecore_x_screen_is_composited_set(int screen, Ecore_X_Window win);
2211
2212 EAPI Eina_Bool      ecore_x_dpms_query(void);
2213 EAPI Eina_Bool      ecore_x_dpms_capable_get(void);
2214 EAPI Eina_Bool      ecore_x_dpms_enabled_get(void);
2215 EAPI void           ecore_x_dpms_enabled_set(int enabled);
2216 EAPI void           ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off);
2217 EAPI Eina_Bool      ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off);
2218 EAPI unsigned int   ecore_x_dpms_timeout_standby_get(void);
2219 EAPI unsigned int   ecore_x_dpms_timeout_suspend_get(void);
2220 EAPI unsigned int   ecore_x_dpms_timeout_off_get(void);
2221 EAPI void           ecore_x_dpms_timeout_standby_set(unsigned int new_timeout);
2222 EAPI void           ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout);
2223 EAPI void           ecore_x_dpms_timeout_off_set(unsigned int new_timeout);
2224
2225 EAPI Eina_Bool      ecore_x_test_fake_key_down(const char *key);
2226 EAPI Eina_Bool      ecore_x_test_fake_key_up(const char *key);
2227 EAPI Eina_Bool      ecore_x_test_fake_key_press(const char *key);
2228 EAPI const char    *ecore_x_keysym_string_get(int keysym);
2229
2230 /**
2231  * Given a keyname, return the keycode representing that key
2232  * @param keyname The key from which to get the keycode.
2233  * @return The keycode of the key.
2234  *
2235  * @since 1.2.0
2236  */
2237 EAPI int            ecore_x_keysym_keycode_get(const char *keyname);
2238
2239 typedef struct _Ecore_X_Image Ecore_X_Image;
2240
2241 EAPI Ecore_X_Image *ecore_x_image_new(int w, int h, Ecore_X_Visual vis, int depth);
2242 EAPI void           ecore_x_image_free(Ecore_X_Image *im);
2243 EAPI Eina_Bool      ecore_x_image_get(Ecore_X_Image *im, Ecore_X_Drawable draw, int x, int y, int sx, int sy, int w, int h);
2244 EAPI void           ecore_x_image_put(Ecore_X_Image *im, Ecore_X_Drawable draw, Ecore_X_GC gc, int x, int y, int sx, int sy, int w, int h);
2245 EAPI void          *ecore_x_image_data_get(Ecore_X_Image *im, int *bpl, int *rows, int *bpp);
2246 EAPI Eina_Bool      ecore_x_image_is_argb32_get(Ecore_X_Image *im);
2247
2248 EAPI Eina_Bool      ecore_x_image_to_argb_convert(void *src, int sbpp, int sbpl, Ecore_X_Colormap c, Ecore_X_Visual v, int x, int y, int w, int h, unsigned int *dst, int dbpl, int dx, int dy);
2249
2250 EAPI Eina_Bool      ecore_x_input_multi_select(Ecore_X_Window win);
2251
2252 EAPI Eina_Bool      ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win);
2253
2254 typedef enum _Ecore_X_Gesture_Event_Mask
2255 {
2256    ECORE_X_GESTURE_EVENT_MASK_NONE = 0L,
2257    ECORE_X_GESTURE_EVENT_MASK_FLICK = (1L << 0),
2258    ECORE_X_GESTURE_EVENT_MASK_PAN = (1L << 1),
2259    ECORE_X_GESTURE_EVENT_MASK_PINCHROTATION = (1L << 2),
2260    ECORE_X_GESTURE_EVENT_MASK_TAP = (1L << 3),
2261    ECORE_X_GESTURE_EVENT_MASK_TAPNHOLD = (1L << 4),
2262    ECORE_X_GESTURE_EVENT_MASK_HOLD = (1L << 5),
2263    ECORE_X_GESTURE_EVENT_MASK_GROUP = (1L << 6)
2264 } Ecore_X_Gesture_Event_Mask;
2265
2266 typedef enum _Ecore_X_Gesture_Event_Type
2267 {
2268    ECORE_X_GESTURE_EVENT_FLICK,
2269    ECORE_X_GESTURE_EVENT_PAN,
2270    ECORE_X_GESTURE_EVENT_PINCHROTATION,
2271    ECORE_X_GESTURE_EVENT_TAP,
2272    ECORE_X_GESTURE_EVENT_TAPNHOLD,
2273    ECORE_X_GESTURE_EVENT_HOLD,
2274    ECORE_X_GESTURE_EVENT_GROUP
2275 } Ecore_X_Gesture_Event_Type;
2276
2277 typedef enum _Ecore_X_Gesture_Event_Subtype
2278 {
2279    ECORE_X_GESTURE_END,
2280    ECORE_X_GESTURE_BEGIN,
2281    ECORE_X_GESTURE_UPDATE,
2282    ECORE_X_GESTURE_DONE
2283 } Ecore_X_Gesture_Event_Subtype;
2284
2285 typedef enum _Ecore_X_Gesture_Group_Subtype
2286 {
2287    ECORE_X_GESTURE_GROUP_REMOVED,
2288    ECORE_X_GESTURE_GROUP_ADDED,
2289    ECORE_X_GESTURE_GROUP_CURRENT
2290 } Ecore_X_Gesture_Group_Subtype;
2291
2292 typedef enum _Ecore_X_Gesture_Direction
2293 {
2294    ECORE_X_GESTURE_NORTHWARD,
2295    ECORE_X_GESTURE_NORTHEASTWARD,
2296    ECORE_X_GESTURE_EASTWARD,
2297    ECORE_X_GESTURE_SOUTHEASTWARD,
2298    ECORE_X_GESTURE_SOUTHWARD,
2299    ECORE_X_GESTURE_SOUTHWESTWARD,
2300    ECORE_X_GESTURE_WESTWARD,
2301    ECORE_X_GESTURE_NORTHWESTWARD
2302 } Ecore_X_Gesture_Direction;
2303
2304 struct _Ecore_X_Event_Gesture_Notify_Flick
2305 {
2306    Ecore_X_Window                win;
2307    Ecore_X_Time                  time;
2308    Ecore_X_Gesture_Event_Subtype subtype;
2309    int                           num_fingers;
2310    int                           distance;
2311    Ecore_X_Time                  duration;
2312    Ecore_X_Gesture_Direction     direction;
2313    double                        angle;
2314 };
2315
2316 struct _Ecore_X_Event_Gesture_Notify_Pan
2317 {
2318    Ecore_X_Window                win;
2319    Ecore_X_Time                  time;
2320    Ecore_X_Gesture_Event_Subtype subtype;
2321    int                           num_fingers;
2322    int                           dx;
2323    int                           dy;
2324    int                           distance;
2325    Ecore_X_Time                  duration;
2326    Ecore_X_Gesture_Direction     direction;
2327 };
2328
2329 struct _Ecore_X_Event_Gesture_Notify_PinchRotation
2330 {
2331    Ecore_X_Window                win;
2332    Ecore_X_Time                  time;
2333    Ecore_X_Gesture_Event_Subtype subtype;
2334    int                           num_fingers;
2335    int                           distance;
2336    int                           cx;
2337    int                           cy;
2338    double                        zoom;
2339    double                        angle;
2340 };
2341
2342 struct _Ecore_X_Event_Gesture_Notify_Tap
2343 {
2344    Ecore_X_Window                win;
2345    Ecore_X_Time                  time;
2346    Ecore_X_Gesture_Event_Subtype subtype;
2347    int                           num_fingers;
2348    int                           cx;
2349    int                           cy;
2350    int                           tap_repeat;
2351    Ecore_X_Time                  interval;
2352 };
2353
2354 struct _Ecore_X_Event_Gesture_Notify_TapNHold
2355 {
2356    Ecore_X_Window                win;
2357    Ecore_X_Time                  time;
2358    Ecore_X_Gesture_Event_Subtype subtype;
2359    int                           num_fingers;
2360    int                           cx;
2361    int                           cy;
2362    Ecore_X_Time                  interval;
2363    Ecore_X_Time                  hold_time;
2364 };
2365
2366 struct _Ecore_X_Event_Gesture_Notify_Hold
2367 {
2368    Ecore_X_Window                win;
2369    Ecore_X_Time                  time;
2370    Ecore_X_Gesture_Event_Subtype subtype;
2371    int                           num_fingers;
2372    int                           cx;
2373    int                           cy;
2374    Ecore_X_Time                  hold_time;
2375 };
2376
2377 struct _Ecore_X_Event_Gesture_Notify_Group
2378 {
2379    Ecore_X_Window                win;
2380    Ecore_X_Time                  time;
2381    Ecore_X_Gesture_Group_Subtype subtype;
2382    int                           num_groups;
2383    int                           group_id;
2384 };
2385
2386 EAPI Eina_Bool                             ecore_x_gesture_supported(void);
2387
2388 EAPI Eina_Bool                             ecore_x_gesture_events_select(Ecore_X_Window win, Ecore_X_Gesture_Event_Mask mask);
2389
2390 EAPI Ecore_X_Gesture_Event_Mask            ecore_x_gesture_events_selected_get(Ecore_X_Window win);
2391
2392 EAPI Eina_Bool                             ecore_x_gesture_event_grab(Ecore_X_Window win, Ecore_X_Gesture_Event_Type type, int num_fingers);
2393
2394 EAPI Eina_Bool                             ecore_x_gesture_event_ungrab(Ecore_X_Window win, Ecore_X_Gesture_Event_Type type, int num_fingers);
2395
2396 EAPI void                                  ecore_x_e_illume_indicator_state_set(Ecore_X_Window win, Ecore_X_Illume_Indicator_State state);
2397 EAPI Ecore_X_Illume_Indicator_State        ecore_x_e_illume_indicator_state_get(Ecore_X_Window win);
2398 EAPI void                                  ecore_x_e_illume_indicator_state_send(Ecore_X_Window win, Ecore_X_Illume_Indicator_State state);
2399
2400 EAPI void                                  ecore_x_e_illume_indicator_opacity_set(Ecore_X_Window win, Ecore_X_Illume_Indicator_Opacity_Mode mode);
2401
2402 EAPI Ecore_X_Illume_Indicator_Opacity_Mode ecore_x_e_illume_indicator_opacity_get(Ecore_X_Window win);
2403
2404 EAPI void                                  ecore_x_e_illume_indicator_opacity_send(Ecore_X_Window win, Ecore_X_Illume_Indicator_Opacity_Mode mode);
2405
2406 EAPI void
2407 ecore_x_e_illume_window_state_set(Ecore_X_Window win,
2408                                   Ecore_X_Illume_Window_State state);
2409
2410 EAPI Ecore_X_Illume_Window_State           ecore_x_e_illume_window_state_get(Ecore_X_Window win);
2411 EAPI void                                  ecore_x_xkb_select_group(int group); /* @since 1.7 */
2412
2413 #ifdef __cplusplus
2414 }
2415 #endif // ifdef __cplusplus
2416
2417 #include <Ecore_X_Atoms.h>
2418 #include <Ecore_X_Cursor.h>
2419
2420 #endif // ifndef _ECORE_X_H