[ecore] Put order in header file, splitting function groups in contiguous chunks.
[profile/ivi/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 typedef enum _Ecore_X_Window_State 
123 {
124    /* Unknown state */
125    ECORE_X_WINDOW_STATE_UNKNOWN = 0,
126    /** The window is iconified. */
127    ECORE_X_WINDOW_STATE_ICONIFIED,
128    /** The window is a modal dialog box. */
129    ECORE_X_WINDOW_STATE_MODAL,
130    /** The window manager should keep the window's position fixed
131     * even if the virtual desktop scrolls. */
132    ECORE_X_WINDOW_STATE_STICKY,
133    /** The window has the maximum vertical size. */
134    ECORE_X_WINDOW_STATE_MAXIMIZED_VERT,
135    /** The window has the maximum horizontal size. */
136    ECORE_X_WINDOW_STATE_MAXIMIZED_HORZ,
137    /** The window is shaded. */
138    ECORE_X_WINDOW_STATE_SHADED,
139    /** The window should not be included in the taskbar. */
140    ECORE_X_WINDOW_STATE_SKIP_TASKBAR,
141    /** The window should not be included in the pager. */
142    ECORE_X_WINDOW_STATE_SKIP_PAGER,
143    /** The window is invisible (i.e. minimized/iconified) */
144    ECORE_X_WINDOW_STATE_HIDDEN,
145    /** The window should fill the entire screen and have no
146     * window border/decorations */
147    ECORE_X_WINDOW_STATE_FULLSCREEN,
148    /* The following are not documented because they are not
149     * intended for use in applications. */
150    ECORE_X_WINDOW_STATE_ABOVE,
151    ECORE_X_WINDOW_STATE_BELOW,
152    /* FIXME: Documentation */
153    ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION
154 } Ecore_X_Window_State;
155
156 typedef enum _Ecore_X_Window_State_Action 
157 {
158    ECORE_X_WINDOW_STATE_ACTION_REMOVE,
159    ECORE_X_WINDOW_STATE_ACTION_ADD,
160    ECORE_X_WINDOW_STATE_ACTION_TOGGLE
161 } Ecore_X_Window_State_Action;
162
163 typedef enum _Ecore_X_Window_Stack_Mode 
164 {
165    ECORE_X_WINDOW_STACK_ABOVE = 0,
166    ECORE_X_WINDOW_STACK_BELOW = 1,
167    ECORE_X_WINDOW_STACK_TOP_IF = 2,
168    ECORE_X_WINDOW_STACK_BOTTOM_IF = 3,
169    ECORE_X_WINDOW_STACK_OPPOSITE = 4
170 } Ecore_X_Window_Stack_Mode;
171
172 typedef enum _Ecore_X_Randr_Orientation 
173 {
174    ECORE_X_RANDR_ORIENTATION_ROT_0 = (1 << 0),
175    ECORE_X_RANDR_ORIENTATION_ROT_90 = (1 << 1),
176    ECORE_X_RANDR_ORIENTATION_ROT_180 = (1 << 2),
177    ECORE_X_RANDR_ORIENTATION_ROT_270 = (1 << 3),
178    ECORE_X_RANDR_ORIENTATION_FLIP_X = (1 << 4),
179    ECORE_X_RANDR_ORIENTATION_FLIP_Y = (1 << 5)
180 } Ecore_X_Randr_Orientation;
181
182 typedef enum _Ecore_X_Randr_Connection_Status 
183 {
184    ECORE_X_RANDR_CONNECTION_STATUS_CONNECTED = 0,
185    ECORE_X_RANDR_CONNECTION_STATUS_DISCONNECTED = 1,
186    ECORE_X_RANDR_CONNECTION_STATUS_UNKNOWN = 2
187 } Ecore_X_Randr_Connection_Status;
188
189 typedef enum _Ecore_X_Randr_Output_Policy 
190 {
191    ECORE_X_RANDR_OUTPUT_POLICY_ABOVE = 1,
192    ECORE_X_RANDR_OUTPUT_POLICY_RIGHT = 2,
193    ECORE_X_RANDR_OUTPUT_POLICY_BELOW = 3,
194    ECORE_X_RANDR_OUTPUT_POLICY_LEFT = 4,
195    ECORE_X_RANDR_OUTPUT_POLICY_CLONE = 5,
196    ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6
197 } Ecore_X_Randr_Output_Policy;
198
199 typedef enum _Ecore_X_Randr_Relative_Alignment 
200 {
201    ECORE_X_RANDR_RELATIVE_ALIGNMENT_NONE = 0,
202    ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_REL = 1,
203    ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_SCR = 2
204 } Ecore_X_Randr_Relative_Alignment;
205
206 typedef enum _Ecore_X_Render_Subpixel_Order 
207 {
208    ECORE_X_RENDER_SUBPIXEL_ORDER_UNKNOWN = 0,
209    ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_RGB = 1,
210    ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_BGR = 2,
211    ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_RGB = 3,
212    ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_BGR = 4,
213    ECORE_X_RENDER_SUBPIXEL_ORDER_NONE = 5
214 } Ecore_X_Render_Subpixel_Order;
215
216 typedef enum _Ecore_X_Randr_Edid_Display_Interface_Type 
217 {
218    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_UNDEFINED,
219    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DVI,
220    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_A,
221    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_B,
222    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_MDDI,
223    ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DISPLAY_PORT
224 } Ecore_X_Randr_Edid_Display_Interface_Type;
225    
226 typedef enum _Ecore_X_Randr_Edid_Display_Colorscheme 
227 {
228    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_MONOCHROME_GRAYSCALE = 0x00,
229    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB = 0x08,
230    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_NON_RGB = 0x10,
231    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_UNDEFINED = 0x18,
232    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_4_4_4 = 0x444000,
233    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_4_4 = 0x444,
234    ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_2_2 = 0x422
235 } Ecore_X_Randr_Edid_Display_Colorscheme;
236    
237 typedef enum _Ecore_X_Randr_Edid_Aspect_Ratio 
238 {
239    ECORE_X_RANDR_EDID_ASPECT_RATIO_4_3 = 0x0,
240    ECORE_X_RANDR_EDID_ASPECT_RATIO_16_9 = 0x1,
241    ECORE_X_RANDR_EDID_ASPECT_RATIO_16_10 = 0x2,
242    ECORE_X_RANDR_EDID_ASPECT_RATIO_5_4 = 0x4,
243    ECORE_X_RANDR_EDID_ASPECT_RATIO_15_9 = 0x8
244 } Ecore_X_Randr_Edid_Aspect_Ratio;
245    
246 #define ECORE_X_RANDR_EDID_UNKNOWN_VALUE -1
247    
248 #define ECORE_X_SELECTION_TARGET_TARGETS       "TARGETS"
249 #define ECORE_X_SELECTION_TARGET_TEXT          "TEXT"
250 #define ECORE_X_SELECTION_TARGET_COMPOUND_TEXT "COMPOUND_TEXT"
251 #define ECORE_X_SELECTION_TARGET_STRING        "STRING"
252 #define ECORE_X_SELECTION_TARGET_UTF8_STRING   "UTF8_STRING"
253 #define ECORE_X_SELECTION_TARGET_FILENAME      "FILENAME"
254
255 #define ECORE_X_DND_VERSION                    5
256
257 typedef enum _Ecore_X_Selection 
258 {
259    ECORE_X_SELECTION_PRIMARY,
260    ECORE_X_SELECTION_SECONDARY,
261    ECORE_X_SELECTION_XDND,
262    ECORE_X_SELECTION_CLIPBOARD,
263    ECORE_X_SELECTION_OTHER
264 } Ecore_X_Selection;
265
266 typedef enum _Ecore_X_Event_Mode
267 {
268    ECORE_X_EVENT_MODE_NORMAL,
269    ECORE_X_EVENT_MODE_WHILE_GRABBED,
270    ECORE_X_EVENT_MODE_GRAB,
271    ECORE_X_EVENT_MODE_UNGRAB
272 } Ecore_X_Event_Mode;
273
274 typedef enum _Ecore_X_Event_Detail
275 {
276    ECORE_X_EVENT_DETAIL_ANCESTOR,
277    ECORE_X_EVENT_DETAIL_VIRTUAL,
278    ECORE_X_EVENT_DETAIL_INFERIOR,
279    ECORE_X_EVENT_DETAIL_NON_LINEAR,
280    ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL,
281    ECORE_X_EVENT_DETAIL_POINTER,
282    ECORE_X_EVENT_DETAIL_POINTER_ROOT,
283    ECORE_X_EVENT_DETAIL_DETAIL_NONE
284 } Ecore_X_Event_Detail;
285
286 typedef enum _Ecore_X_Event_Mask
287 {
288    ECORE_X_EVENT_MASK_NONE = 0L,
289    ECORE_X_EVENT_MASK_KEY_DOWN = (1L << 0),
290    ECORE_X_EVENT_MASK_KEY_UP = (1L << 1),
291    ECORE_X_EVENT_MASK_MOUSE_DOWN = (1L << 2),
292    ECORE_X_EVENT_MASK_MOUSE_UP = (1L << 3),
293    ECORE_X_EVENT_MASK_MOUSE_IN = (1L << 4),
294    ECORE_X_EVENT_MASK_MOUSE_OUT = (1L << 5),
295    ECORE_X_EVENT_MASK_MOUSE_MOVE = (1L << 6),
296    ECORE_X_EVENT_MASK_WINDOW_DAMAGE = (1L << 15),
297    ECORE_X_EVENT_MASK_WINDOW_VISIBILITY = (1L << 16),
298    ECORE_X_EVENT_MASK_WINDOW_CONFIGURE = (1L << 17),
299    ECORE_X_EVENT_MASK_WINDOW_RESIZE_MANAGE = (1L << 18),
300    ECORE_X_EVENT_MASK_WINDOW_MANAGE = (1L << 19),
301    ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE = (1L << 20),
302    ECORE_X_EVENT_MASK_WINDOW_FOCUS_CHANGE = (1L << 21),
303    ECORE_X_EVENT_MASK_WINDOW_PROPERTY = (1L << 22),
304    ECORE_X_EVENT_MASK_WINDOW_COLORMAP = (1L << 23),
305    ECORE_X_EVENT_MASK_WINDOW_GRAB = (1L << 24),
306    ECORE_X_EVENT_MASK_MOUSE_WHEEL = (1L << 29),
307    ECORE_X_EVENT_MASK_WINDOW_FOCUS_IN = (1L << 30),
308    ECORE_X_EVENT_MASK_WINDOW_FOCUS_OUT = (1L << 31)
309 } Ecore_X_Event_Mask;
310
311 typedef enum _Ecore_X_Gravity
312 {
313    ECORE_X_GRAVITY_FORGET = 0,
314    ECORE_X_GRAVITY_UNMAP = 0,
315    ECORE_X_GRAVITY_NW = 1,
316    ECORE_X_GRAVITY_N = 2,
317    ECORE_X_GRAVITY_NE = 3,
318    ECORE_X_GRAVITY_W = 4,
319    ECORE_X_GRAVITY_CENTER = 5,
320    ECORE_X_GRAVITY_E = 6,
321    ECORE_X_GRAVITY_SW = 7,
322    ECORE_X_GRAVITY_S = 8,
323    ECORE_X_GRAVITY_SE = 9,
324    ECORE_X_GRAVITY_STATIC = 10
325 } Ecore_X_Gravity;
326
327 /* Needed for ecore_x_region_window_shape_set */
328 typedef enum _Ecore_X_Shape_Type
329 {
330    ECORE_X_SHAPE_BOUNDING,
331    ECORE_X_SHAPE_CLIP,
332    ECORE_X_SHAPE_INPUT
333 } Ecore_X_Shape_Type;
334
335 typedef enum _Ecore_X_Mapping_Type
336 {
337    ECORE_X_MAPPING_MODIFIER,
338    ECORE_X_MAPPING_KEYBOARD,
339    ECORE_X_MAPPING_MOUSE
340 } Ecore_X_Mapping_Type;
341
342 typedef enum _Ecore_X_Randr_Property_Change
343 {
344    ECORE_X_RANDR_PROPERTY_CHANGE_ADD,
345    ECORE_X_RANDR_PROPERTY_CHANGE_DEL
346 } Ecore_X_Randr_Property_Change;
347   
348 typedef struct _Ecore_X_Event_Mouse_In            Ecore_X_Event_Mouse_In;
349 typedef struct _Ecore_X_Event_Mouse_Out           Ecore_X_Event_Mouse_Out;
350 typedef struct _Ecore_X_Event_Window_Focus_In     Ecore_X_Event_Window_Focus_In;
351 typedef struct _Ecore_X_Event_Window_Focus_Out    Ecore_X_Event_Window_Focus_Out;
352 typedef struct _Ecore_X_Event_Window_Keymap       Ecore_X_Event_Window_Keymap;
353 typedef struct _Ecore_X_Event_Window_Damage       Ecore_X_Event_Window_Damage;
354 typedef struct _Ecore_X_Event_Window_Visibility_Change Ecore_X_Event_Window_Visibility_Change;
355 typedef struct _Ecore_X_Event_Window_Create       Ecore_X_Event_Window_Create;
356 typedef struct _Ecore_X_Event_Window_Destroy      Ecore_X_Event_Window_Destroy;
357 typedef struct _Ecore_X_Event_Window_Hide         Ecore_X_Event_Window_Hide;
358 typedef struct _Ecore_X_Event_Window_Show         Ecore_X_Event_Window_Show;
359 typedef struct _Ecore_X_Event_Window_Show_Request Ecore_X_Event_Window_Show_Request;
360 typedef struct _Ecore_X_Event_Window_Reparent     Ecore_X_Event_Window_Reparent;
361 typedef struct _Ecore_X_Event_Window_Configure    Ecore_X_Event_Window_Configure;
362 typedef struct _Ecore_X_Event_Window_Configure_Request Ecore_X_Event_Window_Configure_Request;
363 typedef struct _Ecore_X_Event_Window_Gravity      Ecore_X_Event_Window_Gravity;
364 typedef struct _Ecore_X_Event_Window_Resize_Request Ecore_X_Event_Window_Resize_Request;
365 typedef struct _Ecore_X_Event_Window_Stack        Ecore_X_Event_Window_Stack;
366 typedef struct _Ecore_X_Event_Window_Stack_Request Ecore_X_Event_Window_Stack_Request;
367 typedef struct _Ecore_X_Event_Window_Property     Ecore_X_Event_Window_Property;
368 typedef struct _Ecore_X_Event_Window_Colormap     Ecore_X_Event_Window_Colormap;
369 typedef struct _Ecore_X_Event_Mapping_Change      Ecore_X_Event_Mapping_Change;
370 typedef struct _Ecore_X_Event_Window_Mapping      Ecore_X_Event_Window_Mapping;
371 typedef struct _Ecore_X_Event_Selection_Clear     Ecore_X_Event_Selection_Clear;
372 typedef struct _Ecore_X_Event_Selection_Request   Ecore_X_Event_Selection_Request;
373 typedef struct _Ecore_X_Event_Selection_Notify    Ecore_X_Event_Selection_Notify;
374 typedef struct _Ecore_X_Event_Fixes_Selection_Notify    Ecore_X_Event_Fixes_Selection_Notify;
375 typedef struct _Ecore_X_Selection_Data            Ecore_X_Selection_Data;
376 typedef struct _Ecore_X_Selection_Data_Files      Ecore_X_Selection_Data_Files;
377 typedef struct _Ecore_X_Selection_Data_Text       Ecore_X_Selection_Data_Text;
378 typedef struct _Ecore_X_Selection_Data_Targets    Ecore_X_Selection_Data_Targets;
379 typedef struct _Ecore_X_Event_Xdnd_Enter          Ecore_X_Event_Xdnd_Enter;
380 typedef struct _Ecore_X_Event_Xdnd_Position       Ecore_X_Event_Xdnd_Position;
381 typedef struct _Ecore_X_Event_Xdnd_Status         Ecore_X_Event_Xdnd_Status;
382 typedef struct _Ecore_X_Event_Xdnd_Leave          Ecore_X_Event_Xdnd_Leave;
383 typedef struct _Ecore_X_Event_Xdnd_Drop           Ecore_X_Event_Xdnd_Drop;
384 typedef struct _Ecore_X_Event_Xdnd_Finished       Ecore_X_Event_Xdnd_Finished;
385 typedef struct _Ecore_X_Event_Client_Message      Ecore_X_Event_Client_Message;
386 typedef struct _Ecore_X_Event_Window_Shape        Ecore_X_Event_Window_Shape;
387 typedef struct _Ecore_X_Event_Screensaver_Notify  Ecore_X_Event_Screensaver_Notify;
388 typedef struct _Ecore_X_Event_Sync_Counter        Ecore_X_Event_Sync_Counter;
389 typedef struct _Ecore_X_Event_Sync_Alarm          Ecore_X_Event_Sync_Alarm;
390 typedef struct _Ecore_X_Event_Screen_Change       Ecore_X_Event_Screen_Change;
391 typedef struct _Ecore_X_Event_Randr_Crtc_Change   Ecore_X_Event_Randr_Crtc_Change;
392 typedef struct _Ecore_X_Event_Randr_Output_Change Ecore_X_Event_Randr_Output_Change;
393 typedef struct _Ecore_X_Event_Randr_Output_Property_Notify Ecore_X_Event_Randr_Output_Property_Notify;
394
395 typedef struct _Ecore_X_Event_Window_Delete_Request      Ecore_X_Event_Window_Delete_Request;
396 typedef struct _Ecore_X_Event_Window_Move_Resize_Request Ecore_X_Event_Window_Move_Resize_Request;
397 typedef struct _Ecore_X_Event_Window_State_Request       Ecore_X_Event_Window_State_Request;
398 typedef struct _Ecore_X_Event_Frame_Extents_Request      Ecore_X_Event_Frame_Extents_Request;
399 typedef struct _Ecore_X_Event_Ping                       Ecore_X_Event_Ping;
400 typedef struct _Ecore_X_Event_Desktop_Change             Ecore_X_Event_Desktop_Change;
401
402 typedef struct _Ecore_X_Event_Startup_Sequence   Ecore_X_Event_Startup_Sequence;
403
404 typedef struct _Ecore_X_Event_Generic            Ecore_X_Event_Generic;
405
406 typedef struct _Ecore_X_Randr_Screen_Size        Ecore_X_Randr_Screen_Size;
407 typedef struct _Ecore_X_Randr_Screen_Size_MM     Ecore_X_Randr_Screen_Size_MM;
408
409 typedef struct _Ecore_X_Xdnd_Position            Ecore_X_Xdnd_Position;
410
411 struct _Ecore_X_Event_Mouse_In
412 {
413    int                  modifiers;
414    int                  x, y;
415    Eina_Bool            same_screen : 1;
416    struct 
417    {
418       int               x, y;
419    } root;
420    Ecore_X_Window       win;
421    Ecore_X_Window       event_win;
422    Ecore_X_Window       root_win;
423    Ecore_X_Event_Mode   mode;
424    Ecore_X_Event_Detail detail;
425    Ecore_X_Time         time;
426 };
427
428 struct _Ecore_X_Event_Mouse_Out
429 {
430    int                  modifiers;
431    int                  x, y;
432    int                  same_screen;
433    struct 
434    {
435       int               x, y;
436    } root;
437    Ecore_X_Window       win;
438    Ecore_X_Window       event_win;
439    Ecore_X_Window       root_win;
440    Ecore_X_Event_Mode   mode;
441    Ecore_X_Event_Detail detail;
442    Ecore_X_Time         time;
443 };
444
445 struct _Ecore_X_Event_Window_Focus_In
446 {
447    Ecore_X_Window       win;
448    Ecore_X_Event_Mode   mode;
449    Ecore_X_Event_Detail detail;
450    Ecore_X_Time         time;
451 };
452
453 struct _Ecore_X_Event_Window_Focus_Out
454 {
455    Ecore_X_Window       win;
456    Ecore_X_Event_Mode   mode;
457    Ecore_X_Event_Detail detail;
458    Ecore_X_Time         time;
459 };
460
461 struct _Ecore_X_Event_Window_Keymap
462 {
463    Ecore_X_Window win;
464 };
465
466 struct _Ecore_X_Event_Window_Damage
467 {
468    Ecore_X_Window win;
469    int            x, y, w, h;
470    int            count;
471    Ecore_X_Time   time;
472 };
473
474 struct _Ecore_X_Event_Window_Visibility_Change
475 {
476    Ecore_X_Window win;
477    int            fully_obscured;
478    Ecore_X_Time   time;
479 };
480
481 struct _Ecore_X_Event_Window_Create
482 {
483    Ecore_X_Window win;
484    Ecore_X_Window parent;
485    int            override;
486    int            x, y, w, h;
487    int            border;
488    Ecore_X_Time   time;
489 };
490
491 struct _Ecore_X_Event_Window_Destroy
492 {
493    Ecore_X_Window win;
494    Ecore_X_Window event_win;
495    Ecore_X_Time   time;
496 };
497
498 struct _Ecore_X_Event_Window_Hide
499 {
500    Ecore_X_Window win;
501    Ecore_X_Window event_win;
502    Ecore_X_Time   time;
503 };
504
505 struct _Ecore_X_Event_Window_Show
506 {
507    Ecore_X_Window win;
508    Ecore_X_Window event_win;
509    Ecore_X_Time   time;
510 };
511
512 struct _Ecore_X_Event_Window_Show_Request
513 {
514    Ecore_X_Window win;
515    Ecore_X_Window parent;
516    Ecore_X_Time   time;
517 };
518
519 struct _Ecore_X_Event_Window_Reparent
520 {
521    Ecore_X_Window win;
522    Ecore_X_Window event_win;
523    Ecore_X_Window parent;
524    Ecore_X_Time   time;
525 };
526
527 struct _Ecore_X_Event_Window_Configure
528 {
529    Ecore_X_Window win;
530    Ecore_X_Window event_win;
531    Ecore_X_Window abovewin;
532    int            x, y, w, h;
533    int            border;
534    Eina_Bool      override : 1;
535    Eina_Bool      from_wm : 1;
536    Ecore_X_Time   time;
537 };
538
539 struct _Ecore_X_Event_Window_Configure_Request
540 {
541    Ecore_X_Window            win;
542    Ecore_X_Window            parent_win;
543    Ecore_X_Window            abovewin;
544    int                       x, y, w, h;
545    int                       border;
546    Ecore_X_Window_Stack_Mode detail;
547    unsigned long             value_mask;
548    Ecore_X_Time              time;
549 };
550
551 struct _Ecore_X_Event_Window_Gravity
552 {
553    Ecore_X_Window win;
554    Ecore_X_Window event_win;
555    Ecore_X_Time   time;
556 };
557
558 struct _Ecore_X_Event_Window_Resize_Request
559 {
560    Ecore_X_Window win;
561    int            w, h;
562    Ecore_X_Time   time;
563 };
564
565 struct _Ecore_X_Event_Window_Stack
566 {
567    Ecore_X_Window            win;
568    Ecore_X_Window            event_win;
569    Ecore_X_Window_Stack_Mode detail;
570    Ecore_X_Time              time;
571 };
572
573 struct _Ecore_X_Event_Window_Stack_Request
574 {
575    Ecore_X_Window            win;
576    Ecore_X_Window            parent;
577    Ecore_X_Window_Stack_Mode detail;
578    Ecore_X_Time              time;
579 };
580
581 struct _Ecore_X_Event_Window_Property
582 {
583    Ecore_X_Window win;
584    Ecore_X_Atom   atom;
585    Ecore_X_Time   time;
586 };
587
588 struct _Ecore_X_Event_Window_Colormap
589 {
590    Ecore_X_Window   win;
591    Ecore_X_Colormap cmap;
592    Eina_Bool        installed : 1;
593    Ecore_X_Time     time;
594 };
595
596 struct _Ecore_X_Event_Mapping_Change
597 {
598    Ecore_X_Mapping_Type type;
599    int                  keycode;
600    int                  num;
601 };
602
603 struct _Ecore_X_Event_Selection_Clear
604 {
605    Ecore_X_Window    win;
606    Ecore_X_Selection selection;
607    Ecore_X_Atom      atom;
608    Ecore_X_Time      time;
609 };
610
611 struct _Ecore_X_Event_Selection_Request
612 {
613    Ecore_X_Window owner;
614    Ecore_X_Window requestor;
615    Ecore_X_Time   time;
616    Ecore_X_Atom   selection;
617    Ecore_X_Atom   target;
618    Ecore_X_Atom   property;
619 };
620
621 typedef enum
622 {
623    ECORE_X_OWNER_CHANGE_REASON_NEW_OWNER,
624    ECORE_X_OWNER_CHANGE_REASON_DESTROY,
625    ECORE_X_OWNER_CHANGE_REASON_CLOSE
626 } Ecore_X_Owner_Change_Reason;
627
628 struct _Ecore_X_Event_Fixes_Selection_Notify
629 {
630    Ecore_X_Window    win;
631    Ecore_X_Window    owner;
632    Ecore_X_Time      time;
633    Ecore_X_Time      selection_time;
634    Ecore_X_Selection selection;
635    Ecore_X_Atom      atom;
636    Ecore_X_Owner_Change_Reason reason;
637 };
638
639 struct _Ecore_X_Event_Selection_Notify
640 {
641    Ecore_X_Window    win;
642    Ecore_X_Time      time;
643    Ecore_X_Selection selection;
644    Ecore_X_Atom      atom;
645    char             *target;
646    void             *data;
647 };
648
649 struct _Ecore_X_Selection_Data
650 {
651    enum 
652    {
653       ECORE_X_SELECTION_CONTENT_NONE,
654       ECORE_X_SELECTION_CONTENT_TEXT,
655       ECORE_X_SELECTION_CONTENT_FILES,
656       ECORE_X_SELECTION_CONTENT_TARGETS,
657       ECORE_X_SELECTION_CONTENT_CUSTOM
658    } content;
659    unsigned char *data;
660    int            length;
661    int            format;
662    int            (*free)(void *data);
663 };
664
665 struct _Ecore_X_Selection_Data_Files
666 {
667    Ecore_X_Selection_Data data;
668    char                 **files;
669    int                    num_files;
670 };
671
672 struct _Ecore_X_Selection_Data_Text
673 {
674    Ecore_X_Selection_Data data;
675    char                  *text;
676 };
677
678 struct _Ecore_X_Selection_Data_Targets
679 {
680    Ecore_X_Selection_Data data;
681    char                 **targets;
682    int                    num_targets;
683 };
684
685 struct _Ecore_X_Event_Xdnd_Enter
686 {
687    Ecore_X_Window win, source;
688
689    char         **types;
690    int            num_types;
691 };
692
693 struct _Ecore_X_Event_Xdnd_Position
694 {
695    Ecore_X_Window win, source;
696    struct 
697    {
698      int          x, y;
699    } position;
700    Ecore_X_Atom   action;
701 };
702
703 struct _Ecore_X_Xdnd_Position
704 {
705    Ecore_X_Window win, prev;
706    struct 
707    {
708      int          x, y;
709    } position;
710 };
711
712 struct _Ecore_X_Event_Xdnd_Status
713 {
714    Ecore_X_Window    win, target;
715    Eina_Bool         will_accept : 1;
716    Ecore_X_Rectangle rectangle;
717    Ecore_X_Atom      action;
718 };
719
720 struct _Ecore_X_Event_Xdnd_Leave
721 {
722    Ecore_X_Window win, source;
723 };
724
725 struct _Ecore_X_Event_Xdnd_Drop
726 {
727    Ecore_X_Window win, source;
728    Ecore_X_Atom   action;
729    struct 
730    {
731       int         x, y;
732    } position;
733 };
734
735 struct _Ecore_X_Event_Xdnd_Finished
736 {
737    Ecore_X_Window win, target;
738    Eina_Bool           completed : 1;
739    Ecore_X_Atom   action;
740 };
741
742 struct _Ecore_X_Event_Client_Message
743 {
744    Ecore_X_Window win;
745    Ecore_X_Atom   message_type;
746    int            format;
747    union 
748    {
749       char        b[20];
750       short       s[10];
751       long        l[5];
752    } data;
753    Ecore_X_Time   time;
754 };
755
756 struct _Ecore_X_Event_Window_Shape
757 {
758    Ecore_X_Window     win;
759    Ecore_X_Time       time;
760    Ecore_X_Shape_Type type;
761    int                x, y, w, h;
762    Eina_Bool          shaped : 1;
763 };
764
765 struct _Ecore_X_Event_Screensaver_Notify
766 {
767    Ecore_X_Window win;
768    Eina_Bool      on : 1;
769    Ecore_X_Time   time;
770 };
771
772 struct _Ecore_X_Event_Sync_Counter
773 {
774    Ecore_X_Time time;
775 };
776
777 struct _Ecore_X_Event_Sync_Alarm
778 {
779    Ecore_X_Time       time;
780    Ecore_X_Sync_Alarm alarm;
781 };
782
783 struct _Ecore_X_Randr_Screen_Size
784 {
785    int width, height;
786 };
787
788 struct _Ecore_X_Randr_Screen_Size_MM
789 {
790    int width, height, width_mm, height_mm;
791 };
792
793 struct _Ecore_X_Event_Screen_Change
794 {
795    Ecore_X_Window                win;
796    Ecore_X_Window                root;
797    Ecore_X_Randr_Screen_Size_MM  size;  /* in pixel and millimeters */
798    Ecore_X_Time                  time;
799    Ecore_X_Time                  config_time;
800    Ecore_X_Randr_Orientation     orientation;
801    Ecore_X_Render_Subpixel_Order subpixel_order;
802    Ecore_X_Randr_Size_ID         size_id;
803 };
804
805 struct _Ecore_X_Event_Randr_Crtc_Change
806 {
807    Ecore_X_Window            win;
808    Ecore_X_Randr_Crtc        crtc;
809    Ecore_X_Randr_Mode        mode;
810    Ecore_X_Randr_Orientation orientation;
811    Eina_Rectangle            geo;
812 };
813
814 struct _Ecore_X_Event_Randr_Output_Change
815 {
816    Ecore_X_Window                  win;
817    Ecore_X_Randr_Output            output;
818    Ecore_X_Randr_Crtc              crtc;
819    Ecore_X_Randr_Mode              mode;
820    Ecore_X_Randr_Orientation       orientation;
821    Ecore_X_Randr_Connection_Status connection;
822    Ecore_X_Render_Subpixel_Order   subpixel_order;
823 };
824
825 struct _Ecore_X_Event_Randr_Output_Property_Notify
826 {
827    Ecore_X_Window                win;
828    Ecore_X_Randr_Output          output;
829    Ecore_X_Atom                  property;
830    Ecore_X_Time                  time;
831    Ecore_X_Randr_Property_Change state;
832 };
833
834 struct _Ecore_X_Event_Window_Delete_Request
835 {
836    Ecore_X_Window win;
837    Ecore_X_Time   time;
838 };
839   
840 struct _Ecore_X_Event_Startup_Sequence
841 {
842    Ecore_X_Window win;
843 };
844
845 struct _Ecore_X_Event_Window_Move_Resize_Request
846 {
847    Ecore_X_Window win;
848    int            x, y;
849    int            direction;
850    int            button;
851    int            source;
852 };
853
854 struct _Ecore_X_Event_Window_State_Request
855 {
856    Ecore_X_Window              win;
857    Ecore_X_Window_State_Action action;
858    Ecore_X_Window_State        state[2];
859    int                         source;
860 };
861
862 struct _Ecore_X_Event_Frame_Extents_Request
863 {
864    Ecore_X_Window win;
865 };
866
867 struct _Ecore_X_Event_Ping
868 {
869    Ecore_X_Window win;
870    Ecore_X_Window event_win;
871    Ecore_X_Time   time;
872 };
873
874 struct _Ecore_X_Event_Desktop_Change
875 {
876    Ecore_X_Window win;
877    unsigned int   desk;
878    int            source;
879 };
880
881 struct _Ecore_X_Event_Generic
882 {
883    int          extension;
884    int          evtype;
885    unsigned int cookie;
886    void        *data;
887 };
888
889 EAPI extern int ECORE_X_EVENT_ANY; /**< low level event dependent on
890                                         backend in use, if Xlib will be XEvent,
891                                         if XCB will be xcb_generic_event_t.
892                                         @warning avoid using it.
893                                     */
894 EAPI extern int ECORE_X_EVENT_MOUSE_IN;
895 EAPI extern int ECORE_X_EVENT_MOUSE_OUT;
896 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_IN;
897 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_OUT;
898 EAPI extern int ECORE_X_EVENT_WINDOW_KEYMAP;
899 EAPI extern int ECORE_X_EVENT_WINDOW_DAMAGE;
900 EAPI extern int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE;
901 EAPI extern int ECORE_X_EVENT_WINDOW_CREATE;
902 EAPI extern int ECORE_X_EVENT_WINDOW_DESTROY;
903 EAPI extern int ECORE_X_EVENT_WINDOW_HIDE;
904 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW;
905 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW_REQUEST;
906 EAPI extern int ECORE_X_EVENT_WINDOW_REPARENT;
907 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE;
908 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST;
909 EAPI extern int ECORE_X_EVENT_WINDOW_GRAVITY;
910 EAPI extern int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST;
911 EAPI extern int ECORE_X_EVENT_WINDOW_STACK;
912 EAPI extern int ECORE_X_EVENT_WINDOW_STACK_REQUEST;
913 EAPI extern int ECORE_X_EVENT_WINDOW_PROPERTY;
914 EAPI extern int ECORE_X_EVENT_WINDOW_COLORMAP;
915 EAPI extern int ECORE_X_EVENT_WINDOW_MAPPING;
916 EAPI extern int ECORE_X_EVENT_MAPPING_CHANGE;
917 EAPI extern int ECORE_X_EVENT_SELECTION_CLEAR;
918 EAPI extern int ECORE_X_EVENT_SELECTION_REQUEST;
919 EAPI extern int ECORE_X_EVENT_SELECTION_NOTIFY;
920 EAPI extern int ECORE_X_EVENT_FIXES_SELECTION_NOTIFY;
921 EAPI extern int ECORE_X_EVENT_CLIENT_MESSAGE;
922 EAPI extern int ECORE_X_EVENT_WINDOW_SHAPE;
923 EAPI extern int ECORE_X_EVENT_SCREENSAVER_NOTIFY;
924 EAPI extern int ECORE_X_EVENT_SYNC_COUNTER;
925 EAPI extern int ECORE_X_EVENT_SYNC_ALARM;
926 EAPI extern int ECORE_X_EVENT_SCREEN_CHANGE;
927 EAPI extern int ECORE_X_EVENT_RANDR_CRTC_CHANGE;
928 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_CHANGE;
929 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY;
930 EAPI extern int ECORE_X_EVENT_DAMAGE_NOTIFY;
931
932 EAPI extern int ECORE_X_EVENT_WINDOW_DELETE_REQUEST;
933
934 EAPI extern int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST;
935 EAPI extern int ECORE_X_EVENT_WINDOW_STATE_REQUEST;
936 EAPI extern int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST;
937 EAPI extern int ECORE_X_EVENT_PING;
938 EAPI extern int ECORE_X_EVENT_DESKTOP_CHANGE;
939
940 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW;
941 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE;
942 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE;
943
944 EAPI extern int ECORE_X_EVENT_GENERIC;
945
946 EAPI extern int ECORE_X_EVENT_XDND_ENTER;
947 EAPI extern int ECORE_X_EVENT_XDND_POSITION;
948 EAPI extern int ECORE_X_EVENT_XDND_STATUS;
949 EAPI extern int ECORE_X_EVENT_XDND_LEAVE;
950 EAPI extern int ECORE_X_EVENT_XDND_DROP;
951 EAPI extern int ECORE_X_EVENT_XDND_FINISHED;
952
953 EAPI extern int ECORE_X_LOCK_SCROLL;
954 EAPI extern int ECORE_X_LOCK_NUM;
955 EAPI extern int ECORE_X_LOCK_CAPS;
956 EAPI extern int ECORE_X_LOCK_SHIFT;
957
958 typedef enum _Ecore_X_WM_Protocol
959 {
960    /* If enabled the window manager will be asked to send a
961     * delete message instead of just closing (destroying) the window. */
962    ECORE_X_WM_PROTOCOL_DELETE_REQUEST,
963
964    /* If enabled the window manager will be told that the window
965     * explicitly sets input focus. */
966    ECORE_X_WM_PROTOCOL_TAKE_FOCUS,
967
968    /* If enabled the window manager can ping the window to check
969     * if it is alive. */
970    ECORE_X_NET_WM_PROTOCOL_PING,
971
972    /* If enabled the window manager can sync updating with the
973     * window (?) */
974    ECORE_X_NET_WM_PROTOCOL_SYNC_REQUEST,
975
976    /* Number of defined items */
977    ECORE_X_WM_PROTOCOL_NUM
978 } Ecore_X_WM_Protocol;
979
980 typedef enum _Ecore_X_Window_Input_Mode
981 {
982    /* The window can never be focused */
983    ECORE_X_WINDOW_INPUT_MODE_NONE,
984
985    /* The window can be focused by the WM but doesn't focus itself */
986    ECORE_X_WINDOW_INPUT_MODE_PASSIVE,
987
988    /* The window sets the focus itself if one of its sub-windows
989     * already is focused */
990    ECORE_X_WINDOW_INPUT_MODE_ACTIVE_LOCAL,
991
992    /* The window sets the focus itself even if another window
993     * is currently focused */
994    ECORE_X_WINDOW_INPUT_MODE_ACTIVE_GLOBAL
995 } Ecore_X_Window_Input_Mode;
996
997 typedef enum _Ecore_X_Window_State_Hint
998 {
999    /** Do not provide any state hint to the window manager */
1000    ECORE_X_WINDOW_STATE_HINT_NONE = -1,
1001
1002    /** The window wants to remain hidden and NOT iconified */
1003    ECORE_X_WINDOW_STATE_HINT_WITHDRAWN,
1004
1005    /** The window wants to be mapped normally */
1006    ECORE_X_WINDOW_STATE_HINT_NORMAL,
1007
1008    /** The window wants to start in an iconified state */
1009    ECORE_X_WINDOW_STATE_HINT_ICONIC
1010 } Ecore_X_Window_State_Hint;
1011
1012 typedef enum _Ecore_X_Window_Type
1013 {
1014    ECORE_X_WINDOW_TYPE_UNKNOWN = 0,
1015    ECORE_X_WINDOW_TYPE_DESKTOP,
1016    ECORE_X_WINDOW_TYPE_DOCK,
1017    ECORE_X_WINDOW_TYPE_TOOLBAR,
1018    ECORE_X_WINDOW_TYPE_MENU,
1019    ECORE_X_WINDOW_TYPE_UTILITY,
1020    ECORE_X_WINDOW_TYPE_SPLASH,
1021    ECORE_X_WINDOW_TYPE_DIALOG,
1022    ECORE_X_WINDOW_TYPE_NORMAL,
1023    ECORE_X_WINDOW_TYPE_DROPDOWN_MENU,
1024    ECORE_X_WINDOW_TYPE_POPUP_MENU,
1025    ECORE_X_WINDOW_TYPE_TOOLTIP,
1026    ECORE_X_WINDOW_TYPE_NOTIFICATION,
1027    ECORE_X_WINDOW_TYPE_COMBO,
1028    ECORE_X_WINDOW_TYPE_DND
1029 } Ecore_X_Window_Type;
1030
1031 typedef enum _Ecore_X_Action
1032 {
1033    ECORE_X_ACTION_MOVE,
1034    ECORE_X_ACTION_RESIZE,
1035    ECORE_X_ACTION_MINIMIZE,
1036    ECORE_X_ACTION_SHADE,
1037    ECORE_X_ACTION_STICK,
1038    ECORE_X_ACTION_MAXIMIZE_HORZ,
1039    ECORE_X_ACTION_MAXIMIZE_VERT,
1040    ECORE_X_ACTION_FULLSCREEN,
1041    ECORE_X_ACTION_CHANGE_DESKTOP,
1042    ECORE_X_ACTION_CLOSE,
1043    ECORE_X_ACTION_ABOVE,
1044    ECORE_X_ACTION_BELOW
1045 } Ecore_X_Action;
1046
1047 typedef enum _Ecore_X_Window_Configure_Mask
1048 {
1049    ECORE_X_WINDOW_CONFIGURE_MASK_X = (1 << 0),
1050    ECORE_X_WINDOW_CONFIGURE_MASK_Y = (1 << 1),
1051    ECORE_X_WINDOW_CONFIGURE_MASK_W = (1 << 2),
1052    ECORE_X_WINDOW_CONFIGURE_MASK_H = (1 << 3),
1053    ECORE_X_WINDOW_CONFIGURE_MASK_BORDER_WIDTH = (1 << 4),
1054    ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING = (1 << 5),
1055    ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE = (1 << 6)
1056 } Ecore_X_Window_Configure_Mask;
1057
1058 typedef enum _Ecore_X_Virtual_Keyboard_State
1059 {
1060    ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN = 0,
1061    ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF,
1062    ECORE_X_VIRTUAL_KEYBOARD_STATE_ON,
1063    ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA,
1064    ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC,
1065    ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN,
1066    ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER,
1067    ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX,
1068    ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL,
1069    ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD,
1070    ECORE_X_VIRTUAL_KEYBOARD_STATE_IP,
1071    ECORE_X_VIRTUAL_KEYBOARD_STATE_HOST,
1072    ECORE_X_VIRTUAL_KEYBOARD_STATE_FILE,
1073    ECORE_X_VIRTUAL_KEYBOARD_STATE_URL,
1074    ECORE_X_VIRTUAL_KEYBOARD_STATE_KEYPAD,
1075    ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME
1076 } Ecore_X_Virtual_Keyboard_State;
1077
1078 typedef enum _Ecore_X_Illume_Mode
1079 {
1080    ECORE_X_ILLUME_MODE_UNKNOWN = 0,
1081    ECORE_X_ILLUME_MODE_SINGLE,
1082    ECORE_X_ILLUME_MODE_DUAL_TOP,
1083    ECORE_X_ILLUME_MODE_DUAL_LEFT
1084 } Ecore_X_Illume_Mode;
1085
1086 typedef enum _Ecore_X_Illume_Quickpanel_State
1087 {
1088    ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN = 0,
1089    ECORE_X_ILLUME_QUICKPANEL_STATE_OFF,
1090    ECORE_X_ILLUME_QUICKPANEL_STATE_ON
1091 } Ecore_X_Illume_Quickpanel_State;
1092
1093 /* Window layer constants */
1094 #define ECORE_X_WINDOW_LAYER_BELOW  2
1095 #define ECORE_X_WINDOW_LAYER_NORMAL 4
1096 #define ECORE_X_WINDOW_LAYER_ABOVE  6
1097
1098 /* Property list operations */
1099 #define ECORE_X_PROP_LIST_REMOVE    0
1100 #define ECORE_X_PROP_LIST_ADD       1
1101 #define ECORE_X_PROP_LIST_TOGGLE    2
1102
1103 EAPI int                     ecore_x_init(const char *name);
1104 EAPI int                     ecore_x_shutdown(void);
1105 EAPI int                     ecore_x_disconnect(void);
1106 EAPI Ecore_X_Display *       ecore_x_display_get(void);
1107 EAPI Ecore_X_Connection *    ecore_x_connection_get(void);
1108 EAPI int                     ecore_x_fd_get(void);
1109 EAPI Ecore_X_Screen *        ecore_x_default_screen_get(void);
1110 EAPI void                    ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h);
1111 EAPI int                     ecore_x_screen_count_get(void);
1112 EAPI int                     ecore_x_screen_index_get(const Ecore_X_Screen *screen);
1113 EAPI Ecore_X_Screen *        ecore_x_screen_get(int index);
1114
1115 EAPI void                    ecore_x_double_click_time_set(double t);
1116 EAPI double                  ecore_x_double_click_time_get(void);
1117 EAPI void                    ecore_x_flush(void);
1118 EAPI void                    ecore_x_sync(void);
1119 EAPI void                    ecore_x_killall(Ecore_X_Window root);
1120 EAPI void                    ecore_x_kill(Ecore_X_Window win);
1121 EAPI int                     ecore_x_dpi_get(void);
1122 EAPI Eina_Bool               ecore_x_bell(int percent);
1123 EAPI unsigned int            ecore_x_visual_id_get(Ecore_X_Visual visual);
1124
1125 EAPI Ecore_X_Visual          ecore_x_default_visual_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1126 EAPI Ecore_X_Colormap        ecore_x_default_colormap_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1127 EAPI int                     ecore_x_default_depth_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1128
1129 EAPI Ecore_X_Time            ecore_x_current_time_get(void);
1130
1131 EAPI void                    ecore_x_error_handler_set(void (*func)(void *data), const void *data);
1132 EAPI void                    ecore_x_io_error_handler_set(void (*func)(
1133                                                              void *data), const void *data);
1134 EAPI int                     ecore_x_error_request_get(void);
1135 EAPI int                     ecore_x_error_code_get(void);
1136
1137 EAPI void                    ecore_x_event_mask_set(Ecore_X_Window     w,
1138                                                     Ecore_X_Event_Mask mask);
1139 EAPI void                    ecore_x_event_mask_unset(Ecore_X_Window     w,
1140                                                       Ecore_X_Event_Mask mask);
1141
1142 EAPI Eina_Bool               ecore_x_selection_notify_send(Ecore_X_Window requestor,
1143                                                            Ecore_X_Atom   selection,
1144                                                            Ecore_X_Atom   target,
1145                                                            Ecore_X_Atom   property,
1146                                                            Ecore_X_Time   time);
1147 EAPI Eina_Bool               ecore_x_selection_primary_set(Ecore_X_Window w,
1148                                                            const void    *data,
1149                                                            int            size);
1150 EAPI Eina_Bool               ecore_x_selection_primary_clear(void);
1151 EAPI Eina_Bool               ecore_x_selection_secondary_set(Ecore_X_Window w,
1152                                                              const void    *data,
1153                                                              int            size);
1154 EAPI Eina_Bool               ecore_x_selection_secondary_clear(void);
1155 EAPI Eina_Bool               ecore_x_selection_xdnd_set(Ecore_X_Window w,
1156                                                         const void    *data,
1157                                                         int            size);
1158 EAPI Eina_Bool               ecore_x_selection_xdnd_clear(void);
1159 EAPI Eina_Bool               ecore_x_selection_clipboard_set(Ecore_X_Window w,
1160                                                              const void    *data,
1161                                                              int            size);
1162 EAPI Eina_Bool               ecore_x_selection_clipboard_clear(void);
1163 EAPI void                    ecore_x_selection_primary_request(Ecore_X_Window w,
1164                                                                const char    *target);
1165 EAPI void                    ecore_x_selection_secondary_request(Ecore_X_Window w,
1166                                                                  const char    *target);
1167 EAPI void                    ecore_x_selection_xdnd_request(Ecore_X_Window w,
1168                                                             const char    *target);
1169 EAPI void                    ecore_x_selection_clipboard_request(Ecore_X_Window w,
1170                                                                  const char    *target);
1171 EAPI Eina_Bool               ecore_x_selection_convert(Ecore_X_Atom  selection,
1172                                                        Ecore_X_Atom  target,
1173                                                        void        **data_ret,
1174                                                        int          *len,
1175                                                        Ecore_X_Atom *targprop,
1176                                                        int          *targsize);
1177 EAPI void                    ecore_x_selection_converter_add(char *target, Eina_Bool (*func)(
1178                                                                 char  *target,
1179                                                                 void  *data,
1180                                                                 int    size,
1181                                                                 void **data_ret,
1182                                                                 int   *size_ret,
1183                                                                 Ecore_X_Atom *,
1184                                                                 int *));
1185 EAPI void                ecore_x_selection_converter_atom_add(Ecore_X_Atom target, Eina_Bool (*func)(
1186                                                        char         *target,
1187                                                        void         *data,
1188                                                        int           size,
1189                                                        void        **data_ret,
1190                                                        int          *size_ret,
1191                                                        Ecore_X_Atom *tprop,
1192                                                        int          *tsize));
1193 EAPI void                ecore_x_selection_converter_del(char *target);
1194 EAPI void                ecore_x_selection_converter_atom_del(Ecore_X_Atom target);
1195 EAPI void                ecore_x_selection_parser_add(const char *target,
1196                                                       void *(*func)(const char *target,
1197                                                                     void *data, int size,
1198                                                                     int format));
1199 EAPI void                ecore_x_selection_parser_del(const char *target);
1200 EAPI void                ecore_x_selection_owner_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Time tm);
1201 EAPI Ecore_X_Window      ecore_x_selection_owner_get(Ecore_X_Atom atom);
1202
1203 EAPI void                ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on);
1204 EAPI int                 ecore_x_dnd_version_get(Ecore_X_Window win);
1205 EAPI Eina_Bool           ecore_x_dnd_type_isset(Ecore_X_Window win,
1206                                                 const char    *type);
1207 EAPI void                ecore_x_dnd_type_set(Ecore_X_Window win,
1208                                               const char    *type,
1209                                               Eina_Bool      on);
1210 EAPI void                ecore_x_dnd_types_set(Ecore_X_Window win,
1211                                                const char   **types,
1212                                                unsigned int   num_types);
1213 EAPI void                ecore_x_dnd_actions_set(Ecore_X_Window win,
1214                                                  Ecore_X_Atom  *actions,
1215                                                  unsigned int   num_actions);
1216 EAPI Eina_Bool           ecore_x_dnd_begin(Ecore_X_Window source,
1217                                            unsigned char *data,
1218                                            int            size);
1219 EAPI Eina_Bool           ecore_x_dnd_drop(void);
1220 EAPI void                ecore_x_dnd_send_status(Eina_Bool         will_accept,
1221                                                  Eina_Bool         suppress,
1222                                                  Ecore_X_Rectangle rectangle,
1223                                                  Ecore_X_Atom      action);
1224 EAPI void                ecore_x_dnd_send_finished(void);
1225 EAPI void                ecore_x_dnd_source_action_set(Ecore_X_Atom action);
1226 EAPI Ecore_X_Atom        ecore_x_dnd_source_action_get(void);
1227 EAPI void                ecore_x_dnd_callback_pos_update_set(void (*cb)(void *, Ecore_X_Xdnd_Position *data),
1228                                                              const void *data);
1229
1230 EAPI Ecore_X_Window      ecore_x_window_new(Ecore_X_Window parent,
1231                                             int            x,
1232                                             int            y,
1233                                             int            w,
1234                                             int            h);
1235 EAPI Ecore_X_Window      ecore_x_window_override_new(Ecore_X_Window parent,
1236                                                      int            x,
1237                                                      int            y,
1238                                                      int            w,
1239                                                      int            h);
1240 EAPI int                 ecore_x_window_argb_get(Ecore_X_Window win);
1241 EAPI Ecore_X_Window      ecore_x_window_manager_argb_new(Ecore_X_Window parent,
1242                                                          int            x,
1243                                                          int            y,
1244                                                          int            w,
1245                                                          int            h);
1246 EAPI Ecore_X_Window      ecore_x_window_argb_new(Ecore_X_Window parent,
1247                                                  int            x,
1248                                                  int            y,
1249                                                  int            w,
1250                                                  int            h);
1251 EAPI Ecore_X_Window      ecore_x_window_override_argb_new(Ecore_X_Window parent,
1252                                                           int            x,
1253                                                           int            y,
1254                                                           int            w,
1255                                                           int            h);
1256 EAPI Ecore_X_Window      ecore_x_window_input_new(Ecore_X_Window parent,
1257                                                   int            x,
1258                                                   int            y,
1259                                                   int            w,
1260                                                   int            h);
1261 EAPI void                ecore_x_window_configure(
1262    Ecore_X_Window win,
1263    Ecore_X_Window_Configure_Mask
1264    mask,
1265    int            x,
1266    int            y,
1267    int            w,
1268    int            h,
1269    int            border_width,
1270    Ecore_X_Window sibling,
1271    int            stack_mode);
1272 EAPI void                ecore_x_window_cursor_set(Ecore_X_Window win,
1273                                                    Ecore_X_Cursor c);
1274 EAPI void                ecore_x_window_free(Ecore_X_Window win);
1275 EAPI void                ecore_x_window_ignore_set(Ecore_X_Window win,
1276                                                    int            ignore);
1277 EAPI Ecore_X_Window *    ecore_x_window_ignore_list(int *num);
1278
1279 EAPI void                ecore_x_window_delete_request_send(
1280    Ecore_X_Window win);
1281 EAPI void                ecore_x_window_show(Ecore_X_Window win);
1282 EAPI void                ecore_x_window_hide(Ecore_X_Window win);
1283 EAPI void                ecore_x_window_move(Ecore_X_Window win,
1284                                              int            x,
1285                                              int            y);
1286 EAPI void                ecore_x_window_resize(Ecore_X_Window win,
1287                                                int            w,
1288                                                int            h);
1289 EAPI void                ecore_x_window_move_resize(Ecore_X_Window win,
1290                                                     int            x,
1291                                                     int            y,
1292                                                     int            w,
1293                                                     int            h);
1294 EAPI void                ecore_x_window_focus(Ecore_X_Window win);
1295 EAPI void                ecore_x_window_focus_at_time(Ecore_X_Window win,
1296                                                       Ecore_X_Time   t);
1297 EAPI Ecore_X_Window      ecore_x_window_focus_get(void);
1298 EAPI void                ecore_x_window_raise(Ecore_X_Window win);
1299 EAPI void                ecore_x_window_lower(Ecore_X_Window win);
1300 EAPI void                ecore_x_window_reparent(Ecore_X_Window win,
1301                                                  Ecore_X_Window new_parent,
1302                                                  int            x,
1303                                                  int            y);
1304 EAPI void                ecore_x_window_size_get(Ecore_X_Window win,
1305                                                  int           *w,
1306                                                  int           *h);
1307 EAPI void                ecore_x_window_geometry_get(Ecore_X_Window win,
1308                                                      int           *x,
1309                                                      int           *y,
1310                                                      int           *w,
1311                                                      int           *h);
1312 EAPI int                 ecore_x_window_border_width_get(
1313    Ecore_X_Window win);
1314 EAPI void                ecore_x_window_border_width_set(
1315    Ecore_X_Window win,
1316    int            width);
1317 EAPI int                 ecore_x_window_depth_get(Ecore_X_Window win);
1318 EAPI void                ecore_x_window_cursor_show(Ecore_X_Window win,
1319                                                     Eina_Bool      show);
1320 EAPI void                ecore_x_window_defaults_set(Ecore_X_Window win);
1321 EAPI int                 ecore_x_window_visible_get(Ecore_X_Window win);
1322 EAPI Ecore_X_Window      ecore_x_window_shadow_tree_at_xy_with_skip_get(
1323    Ecore_X_Window  base,
1324    int             x,
1325    int             y,
1326    Ecore_X_Window *skip,
1327    int             skip_num);
1328 EAPI Ecore_X_Window      ecore_x_window_shadow_parent_get(
1329    Ecore_X_Window root,
1330    Ecore_X_Window win);
1331 EAPI void                ecore_x_window_shadow_tree_flush(void);
1332 EAPI Ecore_X_Window      ecore_x_window_root_get(Ecore_X_Window win);
1333 EAPI Ecore_X_Window      ecore_x_window_at_xy_get(int x, int y);
1334 EAPI Ecore_X_Window      ecore_x_window_at_xy_with_skip_get(int             x,
1335                                                             int             y,
1336                                                             Ecore_X_Window *skip,
1337                                                             int             skip_num);
1338 EAPI Ecore_X_Window      ecore_x_window_at_xy_begin_get(
1339    Ecore_X_Window begin,
1340    int            x,
1341    int            y);
1342 EAPI Ecore_X_Window      ecore_x_window_parent_get(Ecore_X_Window win);
1343
1344 EAPI void                ecore_x_window_background_color_set(
1345    Ecore_X_Window win,
1346    unsigned
1347    short          r,
1348    unsigned
1349    short          g,
1350    unsigned
1351    short          b);
1352 EAPI void      ecore_x_window_gravity_set(Ecore_X_Window  win,
1353                                           Ecore_X_Gravity grav);
1354 EAPI void      ecore_x_window_pixel_gravity_set(
1355    Ecore_X_Window win,
1356    Ecore_X_Gravity
1357    grav);
1358 EAPI void      ecore_x_window_pixmap_set(Ecore_X_Window win,
1359                                          Ecore_X_Pixmap pmap);
1360 EAPI void      ecore_x_window_area_clear(Ecore_X_Window win,
1361                                          int            x,
1362                                          int            y,
1363                                          int            w,
1364                                          int            h);
1365 EAPI void      ecore_x_window_area_expose(Ecore_X_Window win,
1366                                           int            x,
1367                                           int            y,
1368                                           int            w,
1369                                           int            h);
1370 EAPI void      ecore_x_window_override_set(Ecore_X_Window win,
1371                                            Eina_Bool      override);
1372
1373 EAPI void      ecore_x_window_prop_card32_set(
1374    Ecore_X_Window win,
1375    Ecore_X_Atom   atom,
1376    unsigned int  *val,
1377    unsigned int   num);
1378 EAPI int       ecore_x_window_prop_card32_get(
1379    Ecore_X_Window win,
1380    Ecore_X_Atom   atom,
1381    unsigned int  *val,
1382    unsigned int   len);
1383 EAPI int       ecore_x_window_prop_card32_list_get(
1384    Ecore_X_Window win,
1385    Ecore_X_Atom
1386    atom,
1387    unsigned int
1388                 **plst);
1389
1390 EAPI void      ecore_x_window_prop_xid_set(Ecore_X_Window win,
1391                                            Ecore_X_Atom   atom,
1392                                            Ecore_X_Atom   type,
1393                                            Ecore_X_ID    *lst,
1394                                            unsigned int   num);
1395 EAPI int       ecore_x_window_prop_xid_get(Ecore_X_Window win,
1396                                            Ecore_X_Atom   atom,
1397                                            Ecore_X_Atom   type,
1398                                            Ecore_X_ID    *lst,
1399                                            unsigned int   len);
1400 EAPI int       ecore_x_window_prop_xid_list_get(
1401    Ecore_X_Window win,
1402    Ecore_X_Atom
1403    atom,
1404    Ecore_X_Atom
1405    type,
1406    Ecore_X_ID **
1407    plst);
1408 EAPI void      ecore_x_window_prop_xid_list_change(
1409    Ecore_X_Window win,
1410    Ecore_X_Atom
1411    atom,
1412    Ecore_X_Atom
1413    type,
1414    Ecore_X_ID
1415    item,
1416    int            op);
1417 EAPI void      ecore_x_window_prop_atom_set(Ecore_X_Window win,
1418                                             Ecore_X_Atom   atom,
1419                                             Ecore_X_Atom  *val,
1420                                             unsigned int   num);
1421 EAPI int       ecore_x_window_prop_atom_get(Ecore_X_Window win,
1422                                             Ecore_X_Atom   atom,
1423                                             Ecore_X_Atom  *val,
1424                                             unsigned int   len);
1425 EAPI int       ecore_x_window_prop_atom_list_get(
1426    Ecore_X_Window win,
1427    Ecore_X_Atom
1428    atom,
1429    Ecore_X_Atom *
1430                  *plst);
1431 EAPI void      ecore_x_window_prop_atom_list_change(
1432    Ecore_X_Window win,
1433    Ecore_X_Atom
1434    atom,
1435    Ecore_X_Atom
1436    item,
1437    int            op);
1438 EAPI void      ecore_x_window_prop_window_set(
1439    Ecore_X_Window win,
1440    Ecore_X_Atom   atom,
1441    Ecore_X_Window *
1442    val,
1443    unsigned int   num);
1444 EAPI int       ecore_x_window_prop_window_get(
1445    Ecore_X_Window win,
1446    Ecore_X_Atom   atom,
1447    Ecore_X_Window *
1448    val,
1449    unsigned int   len);
1450 EAPI int       ecore_x_window_prop_window_list_get(
1451    Ecore_X_Window win,
1452    Ecore_X_Atom
1453    atom,
1454    Ecore_X_Window
1455                 **plst);
1456
1457 EAPI Ecore_X_Atom      ecore_x_window_prop_any_type(void);
1458 EAPI void              ecore_x_window_prop_property_set(
1459    Ecore_X_Window win,
1460    Ecore_X_Atom   type,
1461    Ecore_X_Atom   format,
1462    int            size,
1463    void          *data,
1464    int            number);
1465 EAPI int       ecore_x_window_prop_property_get(
1466    Ecore_X_Window  win,
1467    Ecore_X_Atom    property,
1468    Ecore_X_Atom    type,
1469    int             size,
1470    unsigned char **data,
1471    int            *num);
1472 EAPI void                     ecore_x_window_prop_property_del(
1473    Ecore_X_Window win,
1474    Ecore_X_Atom   property);
1475 EAPI Ecore_X_Atom *           ecore_x_window_prop_list(Ecore_X_Window win,
1476                                                        int           *num_ret);
1477 EAPI void                     ecore_x_window_prop_string_set(
1478    Ecore_X_Window win,
1479    Ecore_X_Atom   type,
1480    const char    *str);
1481 EAPI char *                   ecore_x_window_prop_string_get(
1482    Ecore_X_Window win,
1483    Ecore_X_Atom   type);
1484 EAPI Eina_Bool                ecore_x_window_prop_protocol_isset(
1485    Ecore_X_Window      win,
1486    Ecore_X_WM_Protocol protocol);
1487 EAPI Ecore_X_WM_Protocol *    ecore_x_window_prop_protocol_list_get(
1488    Ecore_X_Window win,
1489    int           *num_ret);
1490
1491 EAPI void                     ecore_x_window_shape_mask_set(Ecore_X_Window win,
1492                                                             Ecore_X_Pixmap mask);
1493 EAPI void                     ecore_x_window_shape_window_set(
1494    Ecore_X_Window win,
1495    Ecore_X_Window shape_win);
1496 EAPI void                     ecore_x_window_shape_window_set_xy(
1497    Ecore_X_Window win,
1498    Ecore_X_Window shape_win,
1499    int            x,
1500    int            y);
1501 EAPI void                     ecore_x_window_shape_rectangle_set(
1502    Ecore_X_Window win,
1503    int            x,
1504    int            y,
1505    int            w,
1506    int            h);
1507 EAPI void                     ecore_x_window_shape_rectangles_set(
1508    Ecore_X_Window     win,
1509    Ecore_X_Rectangle *rects,
1510    int                num);
1511 EAPI void                     ecore_x_window_shape_input_rectangle_set(
1512    Ecore_X_Window win,
1513    int            x,
1514    int            y,
1515    int            w,
1516    int            h);
1517 EAPI void                     ecore_x_window_shape_input_rectangles_set(
1518    Ecore_X_Window     win,
1519    Ecore_X_Rectangle *rects,
1520    int                num);
1521 EAPI void                     ecore_x_window_shape_input_rectangle_add(
1522    Ecore_X_Window win,
1523    int            x,
1524    int            y,
1525    int            w,
1526    int            h);
1527 EAPI void                     ecore_x_window_shape_rectangle_subtract(
1528    Ecore_X_Window win,
1529    int            x,
1530    int            y,
1531    int            w,
1532    int            h);
1533 EAPI void                     ecore_x_window_shape_input_rectangle_subtract(
1534    Ecore_X_Window win,
1535    int            x,
1536    int            y,
1537    int            w,
1538    int            h);
1539 EAPI void                     ecore_x_window_shape_input_window_set_xy(
1540    Ecore_X_Window win,
1541    Ecore_X_Window shape_win,
1542    int            x,
1543    int            y);
1544 EAPI void                     ecore_x_window_shape_input_window_set(
1545    Ecore_X_Window win,
1546    Ecore_X_Window shape_win);
1547 EAPI void                     ecore_x_window_shape_window_add(
1548    Ecore_X_Window win,
1549    Ecore_X_Window shape_win);
1550 EAPI void                     ecore_x_window_shape_window_add_xy(
1551    Ecore_X_Window win,
1552    Ecore_X_Window shape_win,
1553    int            x,
1554    int            y);
1555 EAPI void                     ecore_x_window_shape_input_window_add_xy(
1556    Ecore_X_Window win,
1557    Ecore_X_Window shape_win,
1558    int            x,
1559    int            y);
1560 EAPI void                     ecore_x_window_shape_rectangle_add(
1561    Ecore_X_Window win,
1562    int            x,
1563    int            y,
1564    int            w,
1565    int            h);
1566 EAPI void                     ecore_x_window_shape_rectangle_clip(
1567    Ecore_X_Window win,
1568    int            x,
1569    int            y,
1570    int            w,
1571    int            h);
1572 EAPI void                     ecore_x_window_shape_input_rectangle_clip(
1573    Ecore_X_Window win,
1574    int            x,
1575    int            y,
1576    int            w,
1577    int            h);
1578 EAPI void                     ecore_x_window_shape_rectangles_add(
1579    Ecore_X_Window     win,
1580    Ecore_X_Rectangle *rects,
1581    int                num);
1582 EAPI void                     ecore_x_window_shape_input_rectangles_add(
1583    Ecore_X_Window     win,
1584    Ecore_X_Rectangle *rects,
1585    int                num);
1586 EAPI Ecore_X_Rectangle *      ecore_x_window_shape_rectangles_get(
1587    Ecore_X_Window win,
1588    int           *num_ret);
1589 EAPI Ecore_X_Rectangle *      ecore_x_window_shape_input_rectangles_get(
1590    Ecore_X_Window win,
1591    int           *num_ret);
1592 EAPI void                     ecore_x_window_shape_events_select(
1593    Ecore_X_Window win,
1594    Eina_Bool      on);
1595 EAPI void                     ecore_x_window_shape_input_mask_set(
1596    Ecore_X_Window win,
1597    Ecore_X_Pixmap mask);
1598
1599 EAPI Ecore_X_Pixmap           ecore_x_pixmap_new(Ecore_X_Window win,
1600                                                  int            w,
1601                                                  int            h,
1602                                                  int            dep);
1603 EAPI void                     ecore_x_pixmap_free(Ecore_X_Pixmap pmap);
1604 EAPI void                     ecore_x_pixmap_paste(Ecore_X_Pixmap   pmap,
1605                                                    Ecore_X_Drawable dest,
1606                                                    Ecore_X_GC       gc,
1607                                                    int              sx,
1608                                                    int              sy,
1609                                                    int              w,
1610                                                    int              h,
1611                                                    int              dx,
1612                                                    int              dy);
1613 EAPI void            ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap,
1614                                                  int           *x,
1615                                                  int           *y,
1616                                                  int           *w,
1617                                                  int           *h);
1618 EAPI int             ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap);
1619
1620 EAPI Ecore_X_GC      ecore_x_gc_new(Ecore_X_Drawable      draw,
1621                                     Ecore_X_GC_Value_Mask value_mask,
1622                                     const unsigned int   *value_list);
1623 EAPI void            ecore_x_gc_free(Ecore_X_GC gc);
1624 EAPI void            ecore_x_gc_foreground_set(Ecore_X_GC gc, unsigned long foreground);
1625 EAPI void            ecore_x_gc_background_set(Ecore_X_GC gc, unsigned long background);
1626
1627 EAPI Eina_Bool       ecore_x_client_message32_send(Ecore_X_Window     win,
1628                                                    Ecore_X_Atom       type,
1629                                                    Ecore_X_Event_Mask mask,
1630                                                    long               d0,
1631                                                    long               d1,
1632                                                    long               d2,
1633                                                    long               d3,
1634                                                    long               d4);
1635 EAPI Eina_Bool ecore_x_client_message8_send(Ecore_X_Window win,
1636                                             Ecore_X_Atom   type,
1637                                             const void    *data,
1638                                             int            len);
1639 EAPI Eina_Bool ecore_x_mouse_move_send(Ecore_X_Window win,
1640                                        int            x,
1641                                        int            y);
1642 EAPI Eina_Bool ecore_x_mouse_down_send(Ecore_X_Window win,
1643                                        int            x,
1644                                        int            y,
1645                                        int            b);
1646 EAPI Eina_Bool ecore_x_mouse_up_send(Ecore_X_Window win,
1647                                      int            x,
1648                                      int            y,
1649                                      int            b);
1650
1651 EAPI void      ecore_x_drawable_geometry_get(Ecore_X_Drawable d,
1652                                              int             *x,
1653                                              int             *y,
1654                                              int             *w,
1655                                              int             *h);
1656 EAPI int       ecore_x_drawable_border_width_get(
1657    Ecore_X_Drawable d);
1658 EAPI int       ecore_x_drawable_depth_get(Ecore_X_Drawable d);
1659 EAPI void      ecore_x_drawable_rectangle_fill(
1660    Ecore_X_Drawable d,
1661    Ecore_X_GC       gc,
1662    int              x,
1663    int              y,
1664    int              width,
1665    int              height);
1666
1667 EAPI Eina_Bool                      ecore_x_cursor_color_supported_get(void);
1668 EAPI Ecore_X_Cursor                 ecore_x_cursor_new(Ecore_X_Window win,
1669                                                        int           *pixels,
1670                                                        int            w,
1671                                                        int            h,
1672                                                        int            hot_x,
1673                                                        int            hot_y);
1674 EAPI void                           ecore_x_cursor_free(Ecore_X_Cursor c);
1675 EAPI Ecore_X_Cursor                 ecore_x_cursor_shape_get(int shape);
1676 EAPI void                           ecore_x_cursor_size_set(int size);
1677 EAPI int                            ecore_x_cursor_size_get(void);
1678
1679 /* FIXME: these funcs need categorising */
1680 EAPI Ecore_X_Window *               ecore_x_window_root_list(int *num_ret);
1681 EAPI Ecore_X_Window                 ecore_x_window_root_first_get(void);
1682 EAPI Eina_Bool                      ecore_x_window_manage(Ecore_X_Window win);
1683 EAPI void                           ecore_x_window_container_manage(
1684    Ecore_X_Window win);
1685 EAPI void                           ecore_x_window_client_manage(Ecore_X_Window win);
1686 EAPI void                           ecore_x_window_sniff(Ecore_X_Window win);
1687 EAPI void                           ecore_x_window_client_sniff(Ecore_X_Window win);
1688
1689 EAPI Ecore_X_Atom                   ecore_x_atom_get(const char *name);
1690 EAPI void                           ecore_x_atoms_get(const char  **names,
1691                                                       int           num,
1692                                                       Ecore_X_Atom *atoms);
1693 EAPI char *                         ecore_x_atom_name_get(Ecore_X_Atom atom);
1694
1695 EAPI void                           ecore_x_icccm_init(void);
1696 EAPI void                           ecore_x_icccm_state_set(
1697    Ecore_X_Window win,
1698    Ecore_X_Window_State_Hint
1699    state);
1700 EAPI Ecore_X_Window_State_Hint      ecore_x_icccm_state_get(Ecore_X_Window win);
1701 EAPI void                           ecore_x_icccm_delete_window_send(
1702    Ecore_X_Window win,
1703    Ecore_X_Time   t);
1704 EAPI void                           ecore_x_icccm_take_focus_send(Ecore_X_Window win,
1705                                                                   Ecore_X_Time   t);
1706 EAPI void                           ecore_x_icccm_save_yourself_send(
1707    Ecore_X_Window win,
1708    Ecore_X_Time   t);
1709 EAPI void                           ecore_x_icccm_move_resize_send(
1710    Ecore_X_Window win,
1711    int            x,
1712    int            y,
1713    int            w,
1714    int            h);
1715 EAPI void                           ecore_x_icccm_hints_set(
1716    Ecore_X_Window win,
1717    Eina_Bool      accepts_focus,
1718    Ecore_X_Window_State_Hint
1719    initial_state,
1720    Ecore_X_Pixmap
1721    icon_pixmap,
1722    Ecore_X_Pixmap icon_mask,
1723    Ecore_X_Window
1724    icon_window,
1725    Ecore_X_Window
1726    window_group,
1727    Eina_Bool      is_urgent);
1728 EAPI Eina_Bool ecore_x_icccm_hints_get(Ecore_X_Window             win,
1729                                       Eina_Bool                 *accepts_focus,
1730                                       Ecore_X_Window_State_Hint *initial_state,
1731                                       Ecore_X_Pixmap            *icon_pixmap,
1732                                       Ecore_X_Pixmap            *icon_mask,
1733                                       Ecore_X_Window            *icon_window,
1734                                       Ecore_X_Window            *window_group,
1735                                       Eina_Bool                 *is_urgent);
1736 EAPI void      ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
1737                                                 Eina_Bool request_pos,
1738                                                 Ecore_X_Gravity gravity,
1739                                                 int min_w, int min_h,
1740                                                 int max_w, int max_h,
1741                                                 int base_w, int base_h,
1742                                                 int step_x, int step_y,
1743                                                 double min_aspect,
1744                                                 double max_aspect);
1745 EAPI Eina_Bool ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
1746                                                Eina_Bool *request_pos,
1747                                                Ecore_X_Gravity *gravity,
1748                                                int *min_w, int *min_h,
1749                                                int *max_w, int *max_h,
1750                                                int *base_w, int *base_h,
1751                                                int *step_x, int *step_y,
1752                                                double *min_aspect,
1753                                                double *max_aspect);
1754 EAPI void                ecore_x_icccm_title_set(Ecore_X_Window win, const char *t);
1755 EAPI char *              ecore_x_icccm_title_get(Ecore_X_Window win);
1756 EAPI void                ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win,
1757                                                           Ecore_X_Atom  *protos,
1758                                                           int            num);
1759 EAPI void                ecore_x_icccm_protocol_set(Ecore_X_Window      win,
1760                                                     Ecore_X_WM_Protocol protocol,
1761                                                     Eina_Bool           on);
1762 EAPI Eina_Bool           ecore_x_icccm_protocol_isset(Ecore_X_Window      win,
1763                                                       Ecore_X_WM_Protocol protocol);
1764 EAPI void                ecore_x_icccm_name_class_set(Ecore_X_Window win,
1765                                                       const char    *n,
1766                                                       const char    *c);
1767 EAPI void                ecore_x_icccm_name_class_get(Ecore_X_Window win,
1768                                                       char         **n,
1769                                                       char         **c);
1770 EAPI char *              ecore_x_icccm_client_machine_get(Ecore_X_Window win);
1771 EAPI void                ecore_x_icccm_command_set(Ecore_X_Window win,
1772                                                    int            argc,
1773                                                    char         **argv);
1774 EAPI void                ecore_x_icccm_command_get(Ecore_X_Window win,
1775                                                    int           *argc,
1776                                                    char        ***argv);
1777 EAPI char *              ecore_x_icccm_icon_name_get(Ecore_X_Window win);
1778 EAPI void                ecore_x_icccm_icon_name_set(Ecore_X_Window win,
1779                                                      const char    *t);
1780 EAPI void                ecore_x_icccm_colormap_window_set(Ecore_X_Window win,
1781                                                            Ecore_X_Window subwin);
1782 EAPI void                ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
1783                                                              Ecore_X_Window subwin);
1784 EAPI void                ecore_x_icccm_transient_for_set(Ecore_X_Window win,
1785                                                          Ecore_X_Window forwin);
1786 EAPI void                ecore_x_icccm_transient_for_unset(Ecore_X_Window win);
1787 EAPI Ecore_X_Window      ecore_x_icccm_transient_for_get(Ecore_X_Window win);
1788 EAPI void                ecore_x_icccm_window_role_set(Ecore_X_Window win,
1789                                                        const char    *role);
1790 EAPI char *              ecore_x_icccm_window_role_get(Ecore_X_Window win);
1791 EAPI void                ecore_x_icccm_client_leader_set(Ecore_X_Window win,
1792                                                          Ecore_X_Window l);
1793 EAPI Ecore_X_Window      ecore_x_icccm_client_leader_get(Ecore_X_Window win);
1794 EAPI void                ecore_x_icccm_iconic_request_send(Ecore_X_Window win,
1795                                                            Ecore_X_Window root);
1796
1797 typedef enum _Ecore_X_MWM_Hint_Func
1798 {
1799    ECORE_X_MWM_HINT_FUNC_ALL = (1 << 0),
1800    ECORE_X_MWM_HINT_FUNC_RESIZE = (1 << 1),
1801    ECORE_X_MWM_HINT_FUNC_MOVE = (1 << 2),
1802    ECORE_X_MWM_HINT_FUNC_MINIMIZE = (1 << 3),
1803    ECORE_X_MWM_HINT_FUNC_MAXIMIZE = (1 << 4),
1804    ECORE_X_MWM_HINT_FUNC_CLOSE = (1 << 5)
1805 } Ecore_X_MWM_Hint_Func;
1806
1807 typedef enum _Ecore_X_MWM_Hint_Decor
1808 {
1809    ECORE_X_MWM_HINT_DECOR_ALL = (1 << 0),
1810    ECORE_X_MWM_HINT_DECOR_BORDER = (1 << 1),
1811    ECORE_X_MWM_HINT_DECOR_RESIZEH = (1 << 2),
1812    ECORE_X_MWM_HINT_DECOR_TITLE = (1 << 3),
1813    ECORE_X_MWM_HINT_DECOR_MENU = (1 << 4),
1814    ECORE_X_MWM_HINT_DECOR_MINIMIZE = (1 << 5),
1815    ECORE_X_MWM_HINT_DECOR_MAXIMIZE = (1 << 6)
1816 } Ecore_X_MWM_Hint_Decor;
1817
1818 typedef enum _Ecore_X_MWM_Hint_Input
1819 {
1820    ECORE_X_MWM_HINT_INPUT_MODELESS = 0,
1821    ECORE_X_MWM_HINT_INPUT_PRIMARY_APPLICATION_MODAL = 1,
1822    ECORE_X_MWM_HINT_INPUT_SYSTEM_MODAL = 2,
1823    ECORE_X_MWM_HINT_INPUT_FULL_APPLICATION_MODAL = 3
1824 } Ecore_X_MWM_Hint_Input;
1825
1826 EAPI Eina_Bool ecore_x_mwm_hints_get(
1827    Ecore_X_Window win,
1828    Ecore_X_MWM_Hint_Func
1829                  *fhint,
1830    Ecore_X_MWM_Hint_Decor
1831                  *dhint,
1832    Ecore_X_MWM_Hint_Input
1833                  *ihint);
1834 EAPI void      ecore_x_mwm_borderless_set(
1835    Ecore_X_Window win,
1836    Eina_Bool      borderless);
1837
1838 /* netwm */
1839 EAPI void      ecore_x_netwm_init(void);
1840 EAPI void      ecore_x_netwm_shutdown(void);
1841 EAPI void      ecore_x_netwm_wm_identify(
1842    Ecore_X_Window root,
1843    Ecore_X_Window check,
1844    const char    *wm_name);
1845 EAPI void      ecore_x_netwm_supported_set(
1846    Ecore_X_Window root,
1847    Ecore_X_Atom  *supported,
1848    int            num);
1849 EAPI Eina_Bool ecore_x_netwm_supported_get(
1850    Ecore_X_Window root,
1851    Ecore_X_Atom **supported,
1852    int           *num);
1853 EAPI void      ecore_x_netwm_desk_count_set(
1854    Ecore_X_Window root,
1855    unsigned int   n_desks);
1856 EAPI void      ecore_x_netwm_desk_roots_set(
1857    Ecore_X_Window  root,
1858    Ecore_X_Window *vroots,
1859    unsigned int    n_desks);
1860 EAPI void      ecore_x_netwm_desk_names_set(
1861    Ecore_X_Window root,
1862    const char   **names,
1863    unsigned int   n_desks);
1864 EAPI void      ecore_x_netwm_desk_size_set(
1865    Ecore_X_Window root,
1866    unsigned int   width,
1867    unsigned int   height);
1868 EAPI void      ecore_x_netwm_desk_workareas_set(
1869    Ecore_X_Window root,
1870    unsigned int  *areas,
1871    unsigned int   n_desks);
1872 EAPI void      ecore_x_netwm_desk_current_set(
1873    Ecore_X_Window root,
1874    unsigned int   desk);
1875 EAPI void      ecore_x_netwm_desk_viewports_set(
1876    Ecore_X_Window root,
1877    unsigned int  *origins,
1878    unsigned int   n_desks);
1879 EAPI void      ecore_x_netwm_desk_layout_set(
1880    Ecore_X_Window root,
1881    int            orientation,
1882    int            columns,
1883    int            rows,
1884    int            starting_corner);
1885 EAPI void      ecore_x_netwm_showing_desktop_set(
1886    Ecore_X_Window root,
1887    Eina_Bool      on);
1888 EAPI void      ecore_x_netwm_client_list_set(
1889    Ecore_X_Window  root,
1890    Ecore_X_Window *p_clients,
1891    unsigned int    n_clients);
1892 EAPI void      ecore_x_netwm_client_list_stacking_set(
1893    Ecore_X_Window  root,
1894    Ecore_X_Window *p_clients,
1895    unsigned int    n_clients);
1896 EAPI void      ecore_x_netwm_client_active_set(
1897    Ecore_X_Window root,
1898    Ecore_X_Window win);
1899 EAPI void      ecore_x_netwm_client_active_request(
1900    Ecore_X_Window root,
1901    Ecore_X_Window win,
1902    int            type,
1903    Ecore_X_Window current_win);
1904 EAPI void      ecore_x_netwm_name_set(Ecore_X_Window    win,
1905                                             const char *name);
1906 EAPI int       ecore_x_netwm_name_get(Ecore_X_Window win,
1907                                             char   **name);
1908 EAPI void      ecore_x_netwm_startup_id_set(
1909    Ecore_X_Window win,
1910    const char    *id);
1911 EAPI int       ecore_x_netwm_startup_id_get(
1912    Ecore_X_Window win,
1913    char         **id);
1914 EAPI void      ecore_x_netwm_visible_name_set(
1915    Ecore_X_Window win,
1916    const char    *name);
1917 EAPI int       ecore_x_netwm_visible_name_get(
1918    Ecore_X_Window win,
1919    char         **name);
1920 EAPI void      ecore_x_netwm_icon_name_set(
1921    Ecore_X_Window win,
1922    const char    *name);
1923 EAPI int       ecore_x_netwm_icon_name_get(
1924    Ecore_X_Window win,
1925    char         **name);
1926 EAPI void      ecore_x_netwm_visible_icon_name_set(
1927    Ecore_X_Window win,
1928    const char    *name);
1929 EAPI int       ecore_x_netwm_visible_icon_name_get(
1930    Ecore_X_Window win,
1931    char         **name);
1932 EAPI void      ecore_x_netwm_desktop_set(
1933    Ecore_X_Window win,
1934    unsigned int   desk);
1935 EAPI Eina_Bool ecore_x_netwm_desktop_get(
1936    Ecore_X_Window win,
1937    unsigned int  *desk);
1938 EAPI void      ecore_x_netwm_strut_set(Ecore_X_Window win,
1939                                              int      left,
1940                                              int      right,
1941                                              int      top,
1942                                              int      bottom);
1943 EAPI Eina_Bool ecore_x_netwm_strut_get(Ecore_X_Window win,
1944                                              int     *left,
1945                                              int     *right,
1946                                              int     *top,
1947                                              int     *bottom);
1948 EAPI void      ecore_x_netwm_strut_partial_set(
1949    Ecore_X_Window win,
1950    int            left,
1951    int            right,
1952    int            top,
1953    int            bottom,
1954    int            left_start_y,
1955    int            left_end_y,
1956    int            right_start_y,
1957    int            right_end_y,
1958    int            top_start_x,
1959    int            top_end_x,
1960    int            bottom_start_x,
1961    int            bottom_end_x);
1962 EAPI Eina_Bool ecore_x_netwm_strut_partial_get(
1963    Ecore_X_Window win,
1964    int           *left,
1965    int           *right,
1966    int           *top,
1967    int           *bottom,
1968    int           *left_start_y,
1969    int           *left_end_y,
1970    int           *right_start_y,
1971    int           *right_end_y,
1972    int           *top_start_x,
1973    int           *top_end_x,
1974    int           *bottom_start_x,
1975    int           *bottom_end_x);
1976
1977 EAPI Eina_Bool                            ecore_x_netwm_icons_get(Ecore_X_Window       win,
1978                                                                         Ecore_X_Icon **icon,
1979                                                                         int           *num);
1980 EAPI void                                 ecore_x_netwm_icon_geometry_set(
1981    Ecore_X_Window win,
1982    int            x,
1983    int            y,
1984    int            width,
1985    int            height);
1986 EAPI Eina_Bool                            ecore_x_netwm_icon_geometry_get(
1987    Ecore_X_Window win,
1988    int           *x,
1989    int           *y,
1990    int           *width,
1991    int           *height);
1992 EAPI void                                 ecore_x_netwm_pid_set(Ecore_X_Window win,
1993                                                                       int      pid);
1994 EAPI Eina_Bool                            ecore_x_netwm_pid_get(Ecore_X_Window win,
1995                                                                       int     *pid);
1996 EAPI void                                 ecore_x_netwm_handled_icons_set(
1997    Ecore_X_Window win);
1998 EAPI Eina_Bool                            ecore_x_netwm_handled_icons_get(
1999    Ecore_X_Window win);
2000 EAPI void                                 ecore_x_netwm_user_time_set(
2001    Ecore_X_Window win,
2002    unsigned int   time);
2003 EAPI Eina_Bool                            ecore_x_netwm_user_time_get(
2004    Ecore_X_Window win,
2005    unsigned int  *time);
2006 EAPI void                                 ecore_x_netwm_window_state_set(
2007    Ecore_X_Window        win,
2008    Ecore_X_Window_State *state,
2009    unsigned int          num);
2010 EAPI Eina_Bool                            ecore_x_netwm_window_state_get(
2011    Ecore_X_Window         win,
2012    Ecore_X_Window_State **state,
2013    unsigned int          *num);
2014 EAPI void                                 ecore_x_netwm_window_type_set(
2015    Ecore_X_Window      win,
2016    Ecore_X_Window_Type type);
2017 EAPI Eina_Bool                            ecore_x_netwm_window_type_get(
2018    Ecore_X_Window       win,
2019    Ecore_X_Window_Type *type);
2020 EAPI int                                  ecore_x_netwm_window_types_get(
2021    Ecore_X_Window        win,
2022    Ecore_X_Window_Type **types);
2023 EAPI Eina_Bool                            ecore_x_netwm_allowed_action_isset(
2024    Ecore_X_Window win,
2025    Ecore_X_Action action);
2026 EAPI void                                 ecore_x_netwm_allowed_action_set(
2027    Ecore_X_Window  win,
2028    Ecore_X_Action *action,
2029    unsigned int    num);
2030 EAPI Eina_Bool                            ecore_x_netwm_allowed_action_get(
2031    Ecore_X_Window   win,
2032    Ecore_X_Action **action,
2033    unsigned int    *num);
2034 EAPI void                                 ecore_x_netwm_opacity_set(
2035    Ecore_X_Window win,
2036    unsigned int   opacity);
2037 EAPI Eina_Bool                            ecore_x_netwm_opacity_get(
2038    Ecore_X_Window win,
2039    unsigned int  *opacity);
2040 EAPI void                                 ecore_x_netwm_frame_size_set(
2041    Ecore_X_Window win,
2042    int            fl,
2043    int            fr,
2044    int            ft,
2045    int            fb);
2046 EAPI Eina_Bool                            ecore_x_netwm_frame_size_get(
2047    Ecore_X_Window win,
2048    int           *fl,
2049    int           *fr,
2050    int           *ft,
2051    int           *fb);
2052 EAPI Eina_Bool                            ecore_x_netwm_sync_counter_get(
2053    Ecore_X_Window        win,
2054    Ecore_X_Sync_Counter *counter);
2055 EAPI void                                 ecore_x_netwm_ping_send(Ecore_X_Window win);
2056 EAPI void                                 ecore_x_netwm_sync_request_send(
2057    Ecore_X_Window win,
2058    unsigned int   serial);
2059 EAPI void                                 ecore_x_netwm_state_request_send(
2060    Ecore_X_Window       win,
2061    Ecore_X_Window       root,
2062    Ecore_X_Window_State s1,
2063    Ecore_X_Window_State s2,
2064    Eina_Bool            set);
2065 EAPI void                                 ecore_x_netwm_desktop_request_send(
2066    Ecore_X_Window win,
2067    Ecore_X_Window root,
2068    unsigned int   desktop);
2069
2070 EAPI void                                 ecore_x_e_init(void);
2071 EAPI void                                 ecore_x_e_frame_size_set(
2072    Ecore_X_Window win,
2073    int            fl,
2074    int            fr,
2075    int            ft,
2076    int            fb);
2077 EAPI void                                 ecore_x_e_virtual_keyboard_set(
2078    Ecore_X_Window win,
2079    unsigned int   is_keyboard);
2080 EAPI Eina_Bool                            ecore_x_e_virtual_keyboard_get(
2081    Ecore_X_Window win);
2082 EAPI void                                 ecore_x_e_virtual_keyboard_state_set(
2083    Ecore_X_Window                 win,
2084    Ecore_X_Virtual_Keyboard_State state);
2085 EAPI Ecore_X_Virtual_Keyboard_State       ecore_x_e_virtual_keyboard_state_get(
2086    Ecore_X_Window win);
2087 EAPI void                                 ecore_x_e_virtual_keyboard_state_send(
2088    Ecore_X_Window                 win,
2089    Ecore_X_Virtual_Keyboard_State state);
2090
2091 /* Illume functions */
2092 EAPI void                                 ecore_x_e_illume_zone_set(
2093    Ecore_X_Window win,
2094    Ecore_X_Window zone);
2095 EAPI Ecore_X_Window                       ecore_x_e_illume_zone_get(
2096    Ecore_X_Window win);
2097 EAPI void                                 ecore_x_e_illume_zone_list_set(
2098    Ecore_X_Window  win,
2099    Ecore_X_Window *zones,
2100    unsigned int    n_zones);
2101 EAPI void                                 ecore_x_e_illume_conformant_set(
2102    Ecore_X_Window win,
2103    unsigned int   is_conformant);
2104 EAPI Eina_Bool                            ecore_x_e_illume_conformant_get(
2105    Ecore_X_Window win);
2106 EAPI void                                 ecore_x_e_illume_mode_set(
2107    Ecore_X_Window      win,
2108    Ecore_X_Illume_Mode mode);
2109 EAPI Ecore_X_Illume_Mode                  ecore_x_e_illume_mode_get(
2110    Ecore_X_Window win);
2111 EAPI void                                 ecore_x_e_illume_mode_send(
2112    Ecore_X_Window      win,
2113    Ecore_X_Illume_Mode mode);
2114 EAPI void                                 ecore_x_e_illume_focus_back_send(
2115    Ecore_X_Window win);
2116 EAPI void                                 ecore_x_e_illume_focus_forward_send(
2117    Ecore_X_Window win);
2118 EAPI void                                 ecore_x_e_illume_focus_home_send(
2119    Ecore_X_Window win);
2120 EAPI void                                 ecore_x_e_illume_close_send(
2121    Ecore_X_Window win);
2122 EAPI void                                 ecore_x_e_illume_home_new_send(
2123    Ecore_X_Window win);
2124 EAPI void                                 ecore_x_e_illume_home_del_send(
2125    Ecore_X_Window win);
2126 EAPI void                                 ecore_x_e_illume_drag_set(
2127    Ecore_X_Window win,
2128    unsigned int   drag);
2129 EAPI Eina_Bool                            ecore_x_e_illume_drag_get(
2130    Ecore_X_Window win);
2131 EAPI void                                 ecore_x_e_illume_drag_locked_set(
2132    Ecore_X_Window win,
2133    unsigned int   is_locked);
2134 EAPI Eina_Bool                            ecore_x_e_illume_drag_locked_get(
2135    Ecore_X_Window win);
2136 EAPI void                                 ecore_x_e_illume_drag_start_send(
2137    Ecore_X_Window win);
2138 EAPI void                                 ecore_x_e_illume_drag_end_send(
2139    Ecore_X_Window win);
2140 EAPI void                                 ecore_x_e_illume_indicator_geometry_set(
2141    Ecore_X_Window win,
2142    int            x,
2143    int            y,
2144    int            w,
2145    int            h);
2146 EAPI Eina_Bool                            ecore_x_e_illume_indicator_geometry_get(
2147    Ecore_X_Window win,
2148    int           *x,
2149    int           *y,
2150    int           *w,
2151    int           *h);
2152 EAPI void                                 ecore_x_e_illume_softkey_geometry_set(
2153    Ecore_X_Window win,
2154    int            x,
2155    int            y,
2156    int            w,
2157    int            h);
2158 EAPI Eina_Bool                            ecore_x_e_illume_softkey_geometry_get(
2159    Ecore_X_Window win,
2160    int           *x,
2161    int           *y,
2162    int           *w,
2163    int           *h);
2164 EAPI void                                 ecore_x_e_illume_keyboard_geometry_set(
2165    Ecore_X_Window win,
2166    int            x,
2167    int            y,
2168    int            w,
2169    int            h);
2170 EAPI Eina_Bool                            ecore_x_e_illume_keyboard_geometry_get(
2171    Ecore_X_Window win,
2172    int           *x,
2173    int           *y,
2174    int           *w,
2175    int           *h);
2176 EAPI void                                 ecore_x_e_illume_quickpanel_set(
2177    Ecore_X_Window win,
2178    unsigned int   is_quickpanel);
2179 EAPI Eina_Bool                            ecore_x_e_illume_quickpanel_get(
2180    Ecore_X_Window win);
2181 EAPI void                                 ecore_x_e_illume_quickpanel_state_set(
2182    Ecore_X_Window                  win,
2183    Ecore_X_Illume_Quickpanel_State state);
2184 EAPI Ecore_X_Illume_Quickpanel_State      ecore_x_e_illume_quickpanel_state_get(
2185    Ecore_X_Window win);
2186 EAPI void                                 ecore_x_e_illume_quickpanel_state_send(
2187    Ecore_X_Window                  win,
2188    Ecore_X_Illume_Quickpanel_State state);
2189 EAPI void                                 ecore_x_e_illume_quickpanel_state_toggle(
2190    Ecore_X_Window win);
2191 EAPI void                                 ecore_x_e_illume_quickpanel_priority_major_set(
2192    Ecore_X_Window win,
2193    unsigned int   priority);
2194 EAPI int                                  ecore_x_e_illume_quickpanel_priority_major_get(
2195    Ecore_X_Window win);
2196 EAPI void                                 ecore_x_e_illume_quickpanel_priority_minor_set(
2197    Ecore_X_Window win,
2198    unsigned int   priority);
2199 EAPI int                                  ecore_x_e_illume_quickpanel_priority_minor_get(
2200    Ecore_X_Window win);
2201 EAPI void                                 ecore_x_e_illume_quickpanel_zone_set(
2202    Ecore_X_Window win,
2203    unsigned int   zone);
2204 EAPI int                                  ecore_x_e_illume_quickpanel_zone_get(
2205    Ecore_X_Window win);
2206 EAPI void
2207                                           ecore_x_e_illume_quickpanel_zone_request_send(
2208    Ecore_X_Window win);
2209 EAPI void
2210                                           ecore_x_e_illume_quickpanel_position_update_send(
2211    Ecore_X_Window win);
2212
2213 EAPI void                                 ecore_x_e_comp_sync_counter_set(
2214    Ecore_X_Window       win,
2215    Ecore_X_Sync_Counter counter);
2216 EAPI Ecore_X_Sync_Counter                 ecore_x_e_comp_sync_counter_get(
2217    Ecore_X_Window win);
2218 EAPI void                                 ecore_x_e_comp_sync_draw_done_send(
2219    Ecore_X_Window root,
2220    Ecore_X_Window win);
2221 EAPI void                                 ecore_x_e_comp_sync_draw_size_done_send(
2222    Ecore_X_Window root,
2223    Ecore_X_Window win,
2224    int w,
2225    int h);
2226 EAPI void                                 ecore_x_e_comp_sync_supported_set(
2227    Ecore_X_Window root,
2228    Eina_Bool      enabled);
2229 EAPI Eina_Bool                            ecore_x_e_comp_sync_supported_get(
2230    Ecore_X_Window root);
2231 EAPI void                                 ecore_x_e_comp_sync_begin_send(
2232    Ecore_X_Window win);
2233 EAPI void                                 ecore_x_e_comp_sync_end_send(
2234    Ecore_X_Window win);
2235 EAPI void                                 ecore_x_e_comp_sync_cancel_send(
2236    Ecore_X_Window win);
2237
2238 EAPI void                                 ecore_x_e_comp_flush_send(
2239    Ecore_X_Window win);
2240 EAPI void                                 ecore_x_e_comp_dump_send(
2241    Ecore_X_Window win);
2242 EAPI void                                 ecore_x_e_comp_pixmap_set(
2243    Ecore_X_Window win,
2244    Ecore_X_Pixmap pixmap);
2245 EAPI Ecore_X_Pixmap                       ecore_x_e_comp_pixmap_get(
2246    Ecore_X_Window win);
2247
2248 EAPI Ecore_X_Sync_Alarm                   ecore_x_sync_alarm_new(
2249    Ecore_X_Sync_Counter counter);
2250 EAPI Eina_Bool                            ecore_x_sync_alarm_free(
2251    Ecore_X_Sync_Alarm alarm);
2252 EAPI Eina_Bool                            ecore_x_sync_counter_query(
2253    Ecore_X_Sync_Counter counter,
2254    unsigned int        *val);
2255 EAPI Ecore_X_Sync_Counter                 ecore_x_sync_counter_new(int val);
2256 EAPI void                                 ecore_x_sync_counter_free(
2257    Ecore_X_Sync_Counter counter);
2258 EAPI void                                 ecore_x_sync_counter_inc(
2259    Ecore_X_Sync_Counter counter,
2260    int                  by);
2261 EAPI void                                 ecore_x_sync_counter_val_wait(
2262    Ecore_X_Sync_Counter counter,
2263    int                  val);
2264    
2265 EAPI void ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter, int val);
2266 EAPI void ecore_x_sync_counter_2_set(Ecore_X_Sync_Counter counter, int val_hi, unsigned int val_lo);
2267 EAPI Eina_Bool ecore_x_sync_counter_2_query(Ecore_X_Sync_Counter counter, int *val_hi, unsigned int *val_lo);
2268
2269 EAPI int                                  ecore_x_xinerama_screen_count_get(void);
2270 EAPI Eina_Bool                            ecore_x_xinerama_screen_geometry_get(
2271    int  screen,
2272    int *x,
2273    int *y,
2274    int *w,
2275    int *h);
2276
2277 EAPI Eina_Bool ecore_x_screensaver_event_available_get(
2278    void);
2279 EAPI int       ecore_x_screensaver_idle_time_get(void);
2280 EAPI void      ecore_x_screensaver_set(int timeout,
2281                                        int interval,
2282                                        int prefer_blanking,
2283                                        int allow_exposures);
2284 EAPI void      ecore_x_screensaver_timeout_set(
2285    int timeout);
2286 EAPI int       ecore_x_screensaver_timeout_get(void);
2287 EAPI void      ecore_x_screensaver_blank_set(int timeout);
2288 EAPI int       ecore_x_screensaver_blank_get(void);
2289 EAPI void      ecore_x_screensaver_expose_set(int timeout);
2290 EAPI int       ecore_x_screensaver_expose_get(void);
2291 EAPI void      ecore_x_screensaver_interval_set(
2292    int timeout);
2293 EAPI int       ecore_x_screensaver_interval_get(void);
2294 EAPI void      ecore_x_screensaver_event_listen_set(
2295    Eina_Bool on);
2296
2297 /* FIXME: these funcs need categorising */
2298
2299 typedef struct _Ecore_X_Window_Attributes
2300 {
2301    Ecore_X_Window root;
2302    int            x, y, w, h;
2303    int            border;
2304    int            depth;
2305    Eina_Bool      visible : 1;
2306    Eina_Bool      viewable : 1;
2307    Eina_Bool      override : 1;
2308    Eina_Bool      input_only : 1;
2309    Eina_Bool      save_under : 1;
2310    struct
2311      {
2312         Ecore_X_Event_Mask mine;
2313         Ecore_X_Event_Mask all;
2314         Ecore_X_Event_Mask no_propagate;
2315      } event_mask;
2316    Ecore_X_Gravity  window_gravity;
2317    Ecore_X_Gravity  pixel_gravity;
2318    Ecore_X_Colormap colormap;
2319    Ecore_X_Visual   visual;
2320    /* FIXME: missing
2321     * int map_installed;
2322     * Screen *screen;
2323     */
2324 } Ecore_X_Window_Attributes;
2325
2326 EAPI Eina_Bool            ecore_x_window_attributes_get(
2327    Ecore_X_Window win,
2328    Ecore_X_Window_Attributes *
2329    att_ret);
2330 EAPI void                 ecore_x_window_save_set_add(Ecore_X_Window win);
2331 EAPI void                 ecore_x_window_save_set_del(Ecore_X_Window win);
2332 EAPI Ecore_X_Window *     ecore_x_window_children_get(Ecore_X_Window win, int *num);
2333
2334 EAPI Eina_Bool            ecore_x_pointer_control_set(int accel_num,
2335                                                       int accel_denom,
2336                                                       int threshold);
2337 EAPI Eina_Bool            ecore_x_pointer_control_get(int *accel_num,
2338                                                       int *accel_denom,
2339                                                       int *threshold);
2340 EAPI Eina_Bool            ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
2341 EAPI Eina_Bool            ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
2342 EAPI Eina_Bool            ecore_x_pointer_grab(Ecore_X_Window win);
2343 EAPI Eina_Bool            ecore_x_pointer_confine_grab(Ecore_X_Window win);
2344 EAPI void                 ecore_x_pointer_ungrab(void);
2345 EAPI Eina_Bool            ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
2346 EAPI Eina_Bool            ecore_x_keyboard_grab(Ecore_X_Window win);
2347 EAPI void                 ecore_x_keyboard_ungrab(void);
2348 EAPI void                 ecore_x_grab(void);
2349 EAPI void                 ecore_x_ungrab(void);
2350 EAPI void                 ecore_x_passive_grab_replay_func_set(Eina_Bool               (*func)(void *data,
2351                                                                                  int   event_type,
2352                                                                                  void *event),
2353                                                                void                   *data);
2354 EAPI void                 ecore_x_window_button_grab(Ecore_X_Window win, int button,
2355                                                      Ecore_X_Event_Mask event_mask,
2356                                                      int mod, int any_mod);
2357 EAPI void                 ecore_x_window_button_ungrab(Ecore_X_Window win,
2358                                                        int            button,
2359                                                        int            mod,
2360                                                        int            any_mod);
2361 EAPI void                 ecore_x_window_key_grab(Ecore_X_Window win,
2362                                                   const char    *key,
2363                                                   int            mod,
2364                                                   int            any_mod);
2365 EAPI void                 ecore_x_window_key_ungrab(Ecore_X_Window win,
2366                                                     const char    *key,
2367                                                     int            mod,
2368                                                     int            any_mod);
2369
2370 EAPI void                 ecore_x_focus_reset(void);
2371 EAPI void                 ecore_x_events_allow_all(void);
2372 EAPI void                 ecore_x_pointer_last_xy_get(int *x, int *y);
2373 EAPI void                 ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y);
2374
2375 /* ecore_x_region.c */
2376 EAPI Ecore_X_XRegion *    ecore_x_xregion_new(void);
2377 EAPI void                 ecore_x_xregion_free(Ecore_X_XRegion *region);
2378 EAPI Eina_Bool            ecore_x_xregion_set(Ecore_X_XRegion *region,
2379                                               Ecore_X_GC       gc);
2380 EAPI void                 ecore_x_xregion_translate(Ecore_X_XRegion *region,
2381                                                     int              x,
2382                                                     int              y);
2383 EAPI Eina_Bool            ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
2384                                                     Ecore_X_XRegion *r1,
2385                                                     Ecore_X_XRegion *r2);
2386 EAPI Eina_Bool            ecore_x_xregion_union(Ecore_X_XRegion *dst,
2387                                                 Ecore_X_XRegion *r1,
2388                                                 Ecore_X_XRegion *r2);
2389 EAPI Eina_Bool            ecore_x_xregion_union_rect(Ecore_X_XRegion   *dst,
2390                                                      Ecore_X_XRegion   *src,
2391                                                      Ecore_X_Rectangle *rect);
2392 EAPI Eina_Bool            ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
2393                                                    Ecore_X_XRegion *r1,
2394                                                    Ecore_X_XRegion *r2);
2395 EAPI Eina_Bool            ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
2396 EAPI Eina_Bool            ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
2397                                                    Ecore_X_XRegion *r2);
2398 EAPI Eina_Bool            ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
2399                                                         int              x,
2400                                                         int              y);
2401 EAPI Eina_Bool            ecore_x_xregion_rect_contain(Ecore_X_XRegion   *region,
2402                                                        Ecore_X_Rectangle *rect);
2403
2404 /* ecore_x_randr.c */
2405
2406 /* The usage of 'Ecore_X_Randr_None' or 'Ecore_X_Randr_Unset'
2407  * depends on the context. In most cases 'Ecore_X_Randr_Unset'
2408  * can be used, but in some cases -1 is a special value to
2409  * functions, thus 'Ecore_X_Randr_None' (=0) musst be used.
2410  */
2411
2412 typedef short Ecore_X_Randr_Refresh_Rate;
2413 typedef int   Ecore_X_Randr_Crtc_Gamma;
2414 typedef int   Ecore_X_Randr_Signal_Format;
2415 typedef int   Ecore_X_Randr_Signal_Property;
2416 typedef int   Ecore_X_Randr_Connector_Type;
2417
2418 typedef struct _Ecore_X_Randr_Mode_Info
2419 {
2420    Ecore_X_ID xid;
2421    unsigned int width;
2422    unsigned int height;
2423    unsigned long dotClock;
2424    unsigned int hSyncStart;
2425    unsigned int hSyncEnd;
2426    unsigned int hTotal;
2427    unsigned int hSkew;
2428    unsigned int vSyncStart;
2429    unsigned int vSyncEnd;
2430    unsigned int vTotal;
2431    char *name;
2432    unsigned int nameLength;
2433    unsigned long modeFlags;
2434 } Ecore_X_Randr_Mode_Info;
2435
2436 EAPI int             ecore_x_randr_version_get(
2437    void);
2438 EAPI Eina_Bool ecore_x_randr_query(void);
2439
2440 /* ecore_x_randr_11.c */
2441 EAPI Ecore_X_Randr_Orientation
2442                      ecore_x_randr_screen_primary_output_orientations_get(
2443    Ecore_X_Window root);
2444 EAPI Ecore_X_Randr_Orientation
2445                      ecore_x_randr_screen_primary_output_orientation_get(
2446    Ecore_X_Window root);
2447 EAPI Eina_Bool
2448                      ecore_x_randr_screen_primary_output_orientation_set(
2449    Ecore_X_Window root,
2450    Ecore_X_Randr_Orientation
2451    orientation);
2452 EAPI Ecore_X_Randr_Screen_Size_MM *
2453                      ecore_x_randr_screen_primary_output_sizes_get(
2454    Ecore_X_Window root,
2455    int *num);
2456 EAPI void
2457                      ecore_x_randr_screen_primary_output_current_size_get(
2458    Ecore_X_Window root,
2459    int *w,
2460    int *h,
2461    int *w_mm,
2462    int *h_mm,
2463    int *size_index);
2464 EAPI Eina_Bool
2465 ecore_x_randr_screen_primary_output_size_set(Ecore_X_Window root,
2466                                              int size_index);
2467 EAPI Ecore_X_Randr_Refresh_Rate
2468 ecore_x_randr_screen_primary_output_current_refresh_rate_get(
2469    Ecore_X_Window root);
2470 EAPI Ecore_X_Randr_Refresh_Rate *
2471 ecore_x_randr_screen_primary_output_refresh_rates_get(Ecore_X_Window root,
2472                                                       int size_index,
2473                                                       int *num);
2474 EAPI Eina_Bool
2475 ecore_x_randr_screen_primary_output_refresh_rate_set(
2476    Ecore_X_Window root,
2477    int size_index,
2478    Ecore_X_Randr_Refresh_Rate
2479    rate);
2480
2481 /* ecore_x_randr_12.c */
2482 EAPI void
2483 ecore_x_randr_events_select(Ecore_X_Window win,
2484                             Eina_Bool on);
2485
2486 EAPI void
2487 ecore_x_randr_screen_current_size_get(Ecore_X_Window root,
2488                                       int *w,
2489                                       int *h,
2490                                       int *w_mm,
2491                                       int *h_mm);
2492 EAPI void
2493           ecore_x_randr_screen_size_range_get(Ecore_X_Window root,
2494                                     int *wmin,
2495                                     int *hmin,
2496                                     int *wmax,
2497                                     int *hmax);
2498 EAPI void ecore_x_randr_screen_reset(
2499    Ecore_X_Window root);
2500 EAPI Eina_Bool
2501           ecore_x_randr_screen_current_size_set(Ecore_X_Window root,
2502                                       int w,
2503                                       int h,
2504                                       int w_mm,
2505                                       int h_mm);
2506 EAPI Ecore_X_Randr_Mode_Info **
2507                            ecore_x_randr_modes_info_get(Ecore_X_Window root,
2508                              int *num);
2509 EAPI Ecore_X_Randr_Mode_Info *
2510                            ecore_x_randr_mode_info_get(Ecore_X_Window root,
2511                             Ecore_X_Randr_Mode mode);
2512 EAPI void
2513                            ecore_x_randr_mode_info_free(
2514    Ecore_X_Randr_Mode_Info *mode_info);
2515 EAPI Ecore_X_Randr_Crtc *  ecore_x_randr_crtcs_get(
2516    Ecore_X_Window root,
2517    int *num);
2518 EAPI Ecore_X_Randr_Output *ecore_x_randr_outputs_get(
2519    Ecore_X_Window root,
2520    int *num);
2521 EAPI Ecore_X_Randr_Output *
2522                            ecore_x_randr_window_outputs_get(
2523    Ecore_X_Window window,
2524    int *num);
2525 EINA_DEPRECATED EAPI Ecore_X_Randr_Output *
2526                            ecore_x_randr_current_output_get(
2527    Ecore_X_Window window,
2528    int *num);
2529 EAPI Ecore_X_Randr_Crtc *
2530                            ecore_x_randr_current_crtc_get(Ecore_X_Window window,
2531                                int *num);
2532 EAPI Ecore_X_Randr_Output *
2533                            ecore_x_randr_crtc_outputs_get(Ecore_X_Window root,
2534                                Ecore_X_Randr_Crtc crtc,
2535                                int *num);
2536 EAPI Ecore_X_Randr_Output *
2537                            ecore_x_randr_crtc_possible_outputs_get(
2538    Ecore_X_Window root,
2539    Ecore_X_Randr_Crtc crtc,
2540    int *num);
2541 EAPI void
2542                            ecore_x_randr_crtc_geometry_get(Ecore_X_Window root,
2543                                 Ecore_X_Randr_Crtc crtc,
2544                                 int *x,
2545                                 int *y,
2546                                 int *w,
2547                                 int *h);
2548 EAPI void
2549 ecore_x_randr_crtc_pos_get(Ecore_X_Window root,
2550                            Ecore_X_Randr_Crtc crtc,
2551                            int *x,
2552                            int *y);
2553 EAPI Eina_Bool
2554 ecore_x_randr_crtc_pos_set(Ecore_X_Window root,
2555                            Ecore_X_Randr_Crtc crtc,
2556                            int x,
2557                            int y);
2558 EAPI Ecore_X_Randr_Mode
2559 ecore_x_randr_crtc_mode_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
2560 EAPI Eina_Bool
2561 ecore_x_randr_crtc_mode_set(Ecore_X_Window root,
2562                             Ecore_X_Randr_Crtc crtc,
2563                             Ecore_X_Randr_Output *outputs,
2564                             int noutputs,
2565                             Ecore_X_Randr_Mode mode);
2566 EAPI void
2567 ecore_x_randr_crtc_size_get(Ecore_X_Window root,
2568                             Ecore_X_Randr_Crtc crtc,
2569                             int *w,
2570                             int *h);
2571 EAPI Ecore_X_Randr_Refresh_Rate
2572 ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window root,
2573                                     Ecore_X_Randr_Crtc crtc,
2574                                     Ecore_X_Randr_Mode mode);
2575 EAPI Ecore_X_Randr_Orientation
2576 ecore_x_randr_crtc_orientations_get(Ecore_X_Window root,
2577                                     Ecore_X_Randr_Crtc crtc);
2578 EAPI Ecore_X_Randr_Orientation
2579 ecore_x_randr_crtc_orientation_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
2580 EAPI Eina_Bool
2581 ecore_x_randr_crtc_orientation_set(Ecore_X_Window root,
2582                                    Ecore_X_Randr_Crtc crtc,
2583                                    const Ecore_X_Randr_Orientation orientation);
2584 EAPI Eina_Bool
2585 ecore_x_randr_crtc_clone_set(Ecore_X_Window root,
2586                              Ecore_X_Randr_Crtc original,
2587                              Ecore_X_Randr_Crtc clone);
2588 EAPI Eina_Bool
2589 ecore_x_randr_crtc_settings_set(Ecore_X_Window root,
2590                                 Ecore_X_Randr_Crtc crtc,
2591                                 Ecore_X_Randr_Output *outputs,
2592                                 int noutputs,
2593                                 int x,
2594                                 int y,
2595                                 Ecore_X_Randr_Mode mode,
2596                                 Ecore_X_Randr_Orientation orientation);
2597 EAPI Eina_Bool
2598 ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root,
2599                                     Ecore_X_Randr_Crtc crtc_r1,
2600                                     Ecore_X_Randr_Crtc crtc_r2,
2601                                     Ecore_X_Randr_Output_Policy policy,
2602                                     Ecore_X_Randr_Relative_Alignment alignment);
2603 EAPI Ecore_X_Randr_Mode *
2604                      ecore_x_randr_output_modes_get(Ecore_X_Window root,
2605                                Ecore_X_Randr_Output output,
2606                                int *num,
2607                                int *npreferred);
2608 EAPI Ecore_X_Randr_Output *ecore_x_randr_output_clones_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2609 EAPI Ecore_X_Randr_Crtc *ecore_x_randr_output_possible_crtcs_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2610 EAPI Ecore_X_Randr_Crtc
2611                      ecore_x_randr_output_crtc_get(Ecore_X_Window root,
2612                               Ecore_X_Randr_Output output);
2613 EAPI char *
2614                      ecore_x_randr_output_name_get(Ecore_X_Window root,
2615                               Ecore_X_Randr_Output output,
2616                               int *len);
2617 EAPI int
2618                      ecore_x_randr_crtc_gamma_ramp_size_get(
2619    Ecore_X_Randr_Crtc crtc);
2620 EAPI Ecore_X_Randr_Crtc_Gamma **
2621                      ecore_x_randr_crtc_gamma_ramps_get(Ecore_X_Randr_Crtc crtc);
2622 EAPI Eina_Bool
2623                      ecore_x_randr_crtc_gamma_ramps_set(Ecore_X_Randr_Crtc crtc,
2624                                    const Ecore_X_Randr_Crtc_Gamma *red,
2625                                    const Ecore_X_Randr_Crtc_Gamma *green,
2626                                    const Ecore_X_Randr_Crtc_Gamma *blue);
2627 EAPI Eina_Bool
2628                      ecore_x_randr_move_all_crtcs_but(Ecore_X_Window root,
2629                                  const Ecore_X_Randr_Crtc *not_moved,
2630                                  int nnot_moved,
2631                                  int dx,
2632                                  int dy);
2633 EAPI Eina_Bool ecore_x_randr_move_crtcs(
2634    Ecore_X_Window root,
2635    const Ecore_X_Randr_Crtc *crtcs,
2636    int ncrtc,
2637    int dx,
2638    int dy);
2639 EAPI void
2640 ecore_x_randr_mode_size_get(Ecore_X_Window root,
2641                             Ecore_X_Randr_Mode mode,
2642                             int *w,
2643                             int *h);
2644 EAPI Ecore_X_Randr_Connection_Status
2645 ecore_x_randr_output_connection_status_get(Ecore_X_Window root,
2646                                            Ecore_X_Randr_Output output);
2647 EAPI void
2648 ecore_x_randr_output_size_mm_get(Ecore_X_Window root,
2649                                  Ecore_X_Randr_Output output,
2650                                  int *w,
2651                                  int *h);
2652 EAPI Eina_Bool
2653 ecore_x_randr_output_crtc_set(Ecore_X_Window root,
2654                               Ecore_X_Randr_Output output,
2655                               const Ecore_X_Randr_Crtc crtc);
2656
2657 /* ecore_x_randr_12_edid.c */
2658    
2659 /*
2660  * @brief Validates the header from raw EDID data.
2661  *
2662  * @param edid the edid structure
2663  * @param edid_length length of the edid structure
2664  * @return EINA_TRUE, if the header is valid. Else EINA_FALSE.
2665  */
2666 EAPI Eina_Bool
2667 ecore_x_randr_edid_valid_header(unsigned char *edid, 
2668                                 unsigned long edid_length);
2669    
2670 /*
2671  * @brief Checks whether a display's EDID has a valid checksum.
2672  *
2673  * @param edid the edid structure
2674  * @param edid_length length of the edid structure
2675  * @return EINA_TRUE, if the checksum is valid. Else EINA_FALSE.
2676  */
2677 EAPI Eina_Bool
2678 ecore_x_randr_edid_info_has_valid_checksum(unsigned char *edid,
2679                                            unsigned long edid_length);
2680    
2681 /*
2682  * @brief Get the encoded version from raw EDID data.
2683  *
2684  * The return value has the minor version in the lowest 8 bits, and the major
2685  * version in all the rest of the bits. i.e.
2686  * 
2687  * minor = (version & 0x000000ff);
2688  * major = (version & 0xffffff00) >> 8;
2689  * 
2690  * @param edid the edid structure
2691  * @param edid_length length of the edid structure
2692  * @return The encoded major and minor version encasuplated an int.
2693  */
2694 EAPI int
2695 ecore_x_randr_edid_version_get(unsigned char *edid, 
2696                                unsigned long edid_length);
2697    
2698 /*
2699  * @brief Get the encoded manufacturer from raw EDID data.
2700  *
2701  * @param edid the edid structure
2702  * @param edid_length length of the edid structure
2703  * @return The encoded manufacturer identifier.
2704  */
2705 EAPI char *
2706 ecore_x_randr_edid_manufacturer_name_get(unsigned char *edid,
2707                                          unsigned long edid_length);
2708    
2709 /*
2710  * @brief Get the encoded name from raw EDID data.
2711  *
2712  * @param edid the edid structure
2713  * @param edid_length length of the edid structure
2714  * @return The encoded manufacturer identifier.
2715  */
2716 EAPI char *
2717 ecore_x_randr_edid_display_name_get(unsigned char *edid,
2718                                     unsigned long edid_length);
2719    
2720 /*
2721  * @brief Get the encoded ASCII from raw EDID data.
2722  *
2723  * @param edid the edid structure
2724  * @param edid_length length of the edid structure
2725  * @return The encoded ASCII display identifier.
2726  */
2727 EAPI char *
2728 ecore_x_randr_edid_display_ascii_get(unsigned char *edid, 
2729                                      unsigned long edid_length);
2730    
2731 /*
2732  * @brief Get the encoded serial identifier from raw EDID data.
2733  *
2734  * @param edid the edid structure
2735  * @param edid_length length of the edid structure
2736  * @return The encoded serial identifier.
2737  */
2738 EAPI char *
2739 ecore_x_randr_edid_display_serial_get(unsigned char *edid, 
2740                                       unsigned long edid_length);
2741    
2742 /*
2743  * @brief Get the encoded model number from raw EDID data.
2744  *
2745  * The manufacturer ID table is necessary for a useful description.
2746  *
2747  * @param edid the edid structure
2748  * @param edid_length length of the edid structure
2749  * @return The encoded model number.
2750  */
2751 EAPI int
2752 ecore_x_randr_edid_model_get(unsigned char *edid,
2753                              unsigned long edid_length);
2754    
2755 /*
2756  * @brief Get the manufacturer serial number from raw EDID data.
2757  *
2758  * @param edid the edid structure
2759  * @param edid_length length of the edid structure
2760  * @return The encoded serial manufacturer serial number.
2761  */
2762 EAPI int
2763 ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid,
2764                                                   unsigned long edid_length);
2765    
2766 /*
2767  * @brief Get the manufacturer model number from raw EDID data.
2768  *
2769  * @param edid the edid structure
2770  * @param edid_length length of the edid structure
2771  * @return The manufacturer's model number.
2772  */
2773 EAPI int
2774 ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid,
2775                                           unsigned long edid_length);
2776    
2777 /*
2778  * @brief Looks up the DPMS support from raw EDID data.
2779  *
2780  * @param edid the edid structure
2781  * @param edid_length length of the edid structure
2782  * @return EINA_TRUE, if DPMS is supported in some way. Else EINA_FALSE.
2783  */
2784 EAPI Eina_Bool
2785 ecore_x_randr_edid_dpms_available_get(unsigned char *edid,
2786                                       unsigned long edid_length);
2787    
2788 /*
2789  * @brief Looks up the DPMS Standby support from raw EDID data.
2790  *
2791  * @param edid the edid structure
2792  * @param edid_length length of the edid structure
2793  * @return EINA_TRUE, if DPMS Standby is supported. Else EINA_FALSE.
2794  */
2795 EAPI Eina_Bool
2796 ecore_x_randr_edid_dpms_standby_available_get(unsigned char *edid,
2797                                               unsigned long edid_length);
2798    
2799 /*
2800  * @brief Looks up the DPMS Suspend support from raw EDID data.
2801  *
2802  * @param edid the edid structure
2803  * @param edid_length length of the edid structure
2804  * @return EINA_TRUE, if DPMS Suspend is supported. Else EINA_FALSE.
2805  */
2806 EAPI Eina_Bool
2807 ecore_x_randr_edid_dpms_suspend_available_get(unsigned char *edid,
2808                                               unsigned long edid_length);
2809    
2810 /*
2811  * @brief Looks up the DPMS Off support from raw EDID data.
2812  *
2813  * @param edid the edid structure
2814  * @param edid_length length of the edid structure
2815  * @return EINA_TRUE, if DPMS Off is supported. Else EINA_FALSE.
2816  */
2817 EAPI Eina_Bool
2818 ecore_x_randr_edid_dpms_off_available_get(unsigned char *edid,
2819                                           unsigned long edid_length);
2820    
2821 /*
2822  * @brief Get the preferred aspect ratio from raw EDID data.
2823  *
2824  * @param edid the edid structure
2825  * @param edid_length length of the edid structure
2826  * @return The preferred aspect ratio.
2827  */
2828 EAPI Ecore_X_Randr_Edid_Aspect_Ratio
2829 ecore_x_randr_edid_display_aspect_ratio_preferred_get(unsigned char *edid,
2830                                                       unsigned long edid_length);
2831    
2832 /*
2833  * @brief Get the supported aspect ratios from raw EDID data.
2834  *
2835  * @param edid the edid structure
2836  * @param edid_length length of the edid structure
2837  * @return The supported aspect ratios.
2838  */
2839 EAPI Ecore_X_Randr_Edid_Aspect_Ratio
2840 ecore_x_randr_edid_display_aspect_ratios_get(unsigned char *edid,
2841                                              unsigned long edid_length);
2842    
2843 /*
2844  * @brief Get the supported colorschemes from raw EDID data.
2845  *
2846  * @param edid the edid structure
2847  * @param edid_length length of the edid structure
2848  * @return The supported colorschemes.
2849  */
2850 EAPI Ecore_X_Randr_Edid_Display_Colorscheme
2851 ecore_x_randr_edid_display_colorscheme_get(unsigned char *edid,
2852                                            unsigned long edid_length);
2853    
2854 /*
2855  * @brief Get the display type from raw EDID data.
2856  *
2857  * @param edid the edid structure
2858  * @param edid_length length of the edid structure
2859  * @return EINA_TRUE, if the display is a digital one. Else EINA_FALSE.
2860  */
2861 EAPI Eina_Bool
2862 ecore_x_randr_edid_display_type_digital_get(unsigned char *edid,
2863                                             unsigned long edid_length);
2864    
2865 /*
2866  * @brief Get the display interface type from raw EDID data.
2867  *
2868  * @param edid the edid structure
2869  * @param edid_length length of the edid structure
2870  * @return The interface type.
2871  */
2872 EAPI Ecore_X_Randr_Edid_Display_Interface_Type
2873 ecore_x_randr_edid_display_interface_type_get(unsigned char *edid,
2874                                               unsigned long edid_length);
2875    
2876 /* ecore_x_randr_13.c */
2877 EAPI void
2878 ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level);
2879 EAPI double
2880 ecore_x_randr_output_backlight_level_get(Ecore_X_Window root,
2881                                          Ecore_X_Randr_Output output);
2882 EAPI Eina_Bool
2883 ecore_x_randr_output_backlight_level_set(Ecore_X_Window root,
2884                                          Ecore_X_Randr_Output output,
2885                                          double level);
2886 EAPI Ecore_X_Randr_Output
2887 ecore_x_randr_primary_output_get(Ecore_X_Window root);
2888 EAPI void
2889 ecore_x_randr_primary_output_set(Ecore_X_Window root,
2890                                  Ecore_X_Randr_Output output);
2891 EAPI Ecore_X_Render_Subpixel_Order
2892 ecore_x_randr_output_subpixel_order_get(Ecore_X_Window root,
2893                                         Ecore_X_Randr_Output output);
2894 EAPI unsigned char *
2895 ecore_x_randr_output_edid_get(Ecore_X_Window root,
2896                               Ecore_X_Randr_Output output,
2897                               unsigned long *length);
2898 EAPI Ecore_X_Randr_Output *
2899 ecore_x_randr_output_wired_clones_get(Ecore_X_Window root,
2900                                       Ecore_X_Randr_Output output,
2901                                       int *num);
2902 EAPI Ecore_X_Randr_Output **
2903 ecore_x_randr_output_compatibility_list_get(Ecore_X_Window root,
2904                                             Ecore_X_Randr_Output output,
2905                                             int *num);
2906 EAPI Ecore_X_Randr_Signal_Format *
2907 ecore_x_randr_output_signal_formats_get(Ecore_X_Window root,
2908                                         Ecore_X_Randr_Output output,
2909                                         int *num);
2910 EAPI Eina_Bool
2911 ecore_x_randr_output_signal_format_set(Ecore_X_Window root,
2912                                        Ecore_X_Randr_Output output,
2913                                        Ecore_X_Randr_Signal_Format *signal);
2914 EAPI Ecore_X_Randr_Signal_Property *
2915 ecore_x_randr_output_signal_properties_get(Ecore_X_Window root,
2916                                            Ecore_X_Randr_Output output,
2917                                            int *num);
2918 EAPI int
2919 ecore_x_randr_output_connector_number_get(Ecore_X_Window root,
2920                                           Ecore_X_Randr_Output output);
2921 EAPI Ecore_X_Randr_Connector_Type
2922 ecore_x_randr_output_connector_type_get(Ecore_X_Window root,
2923                                         Ecore_X_Randr_Output output);
2924 EAPI Eina_Rectangle *
2925 ecore_x_randr_crtc_panning_area_get(Ecore_X_Window root,
2926                                     Ecore_X_Randr_Crtc crtc,
2927                                     int *x,
2928                                     int *y,
2929                                     int *w,
2930                                     int *h);
2931 EAPI Eina_Bool
2932 ecore_x_randr_crtc_panning_area_set(Ecore_X_Window root,
2933                                     Ecore_X_Randr_Crtc crtc,
2934                                     int x,
2935                                     const int y,
2936                                     const int w,
2937                                     const int h);
2938 EAPI Eina_Rectangle *
2939 ecore_x_randr_crtc_tracking_area_get(Ecore_X_Window root,
2940                                      Ecore_X_Randr_Crtc crtc,
2941                                      int *x,
2942                                      int *y,
2943                                      int *w,
2944                                      int *h);
2945 EAPI Eina_Bool
2946 ecore_x_randr_crtc_tracking_area_set(Ecore_X_Window root,
2947                                      Ecore_X_Randr_Crtc crtc,
2948                                      int x,
2949                                      const int y,
2950                                      const int w,
2951                                      const int h);
2952 EAPI Eina_Rectangle *
2953 ecore_x_randr_crtc_border_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
2954 EAPI Eina_Bool
2955 ecore_x_randr_crtc_border_area_set(Ecore_X_Window root,
2956                                    Ecore_X_Randr_Crtc crtc,
2957                                    int left,
2958                                    const int top,
2959                                    const int right,
2960                                    const int bottom);
2961
2962 /* XRender Support (horrendously incomplete) */
2963 typedef Ecore_X_ID   Ecore_X_Picture;
2964
2965 /* XFixes Extension Support */
2966 typedef Ecore_X_ID   Ecore_X_Region;
2967
2968 typedef enum _Ecore_X_Region_Type {
2969    ECORE_X_REGION_BOUNDING,
2970    ECORE_X_REGION_CLIP
2971 } Ecore_X_Region_Type;
2972
2973 EAPI Ecore_X_Region         ecore_x_region_new(Ecore_X_Rectangle *rects, int num);
2974 EAPI Ecore_X_Region         ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap);
2975 EAPI Ecore_X_Region         ecore_x_region_new_from_window(Ecore_X_Window      win,
2976                                                            Ecore_X_Region_Type type);
2977 EAPI Ecore_X_Region         ecore_x_region_new_from_gc(Ecore_X_GC gc);
2978 EAPI Ecore_X_Region         ecore_x_region_new_from_picture(Ecore_X_Picture picture);
2979 EAPI void                   ecore_x_region_free(Ecore_X_Region region);
2980 EAPI void                   ecore_x_region_set(Ecore_X_Region     region,
2981                                                Ecore_X_Rectangle *rects,
2982                                                int                num);
2983 EAPI void                   ecore_x_region_copy(Ecore_X_Region dest,
2984                                                 Ecore_X_Region source);
2985 EAPI void                   ecore_x_region_combine(Ecore_X_Region dest,
2986                                                    Ecore_X_Region source1,
2987                                                    Ecore_X_Region source2);
2988 EAPI void                   ecore_x_region_intersect(Ecore_X_Region dest,
2989                                                      Ecore_X_Region source1,
2990                                                      Ecore_X_Region source2);
2991 EAPI void                   ecore_x_region_subtract(Ecore_X_Region dest,
2992                                                     Ecore_X_Region source1,
2993                                                     Ecore_X_Region source2);
2994 EAPI void                   ecore_x_region_invert(Ecore_X_Region     dest,
2995                                                   Ecore_X_Rectangle *bounds,
2996                                                   Ecore_X_Region     source);
2997 EAPI void                   ecore_x_region_translate(Ecore_X_Region region,
2998                                                      int            dx,
2999                                                      int            dy);
3000 EAPI void                   ecore_x_region_extents(Ecore_X_Region dest,
3001                                                    Ecore_X_Region source);
3002 EAPI Ecore_X_Rectangle *    ecore_x_region_fetch(Ecore_X_Region     region,
3003                                                  int               *num,
3004                                                  Ecore_X_Rectangle *bounds);
3005 EAPI void                   ecore_x_region_expand(Ecore_X_Region dest,
3006                                                   Ecore_X_Region source,
3007                                                   unsigned int   left,
3008                                                   unsigned int   right,
3009                                                   unsigned int   top,
3010                                                   unsigned int   bottom);
3011 EAPI void                   ecore_x_region_gc_clip_set(Ecore_X_Region region,
3012                                                        Ecore_X_GC     gc,
3013                                                        int            x_origin,
3014                                                        int            y_origin);
3015 EAPI void                   ecore_x_region_window_shape_set(Ecore_X_Region     region,
3016                                                             Ecore_X_Window     win,
3017                                                             Ecore_X_Shape_Type type,
3018                                                             int                x_offset,
3019                                                             int                y_offset);
3020 EAPI void                   ecore_x_region_picture_clip_set(Ecore_X_Region  region,
3021                                                             Ecore_X_Picture picture,
3022                                                             int             x_origin,
3023                                                             int             y_origin);
3024
3025 /**
3026  * xfixes selection notification request.
3027  *
3028  * This lets you choose which selections you want to get notifications for.
3029  * @param selection the selection atom.
3030  * @return EINA_TRUE on success, EINA_FALSE otherwise.
3031  * @since 1.1.0
3032  */
3033 EAPI Eina_Bool              ecore_x_fixes_selection_notification_request(Ecore_X_Atom selection);
3034
3035 /* XComposite Extension Support */
3036 EAPI Eina_Bool              ecore_x_composite_query(void);
3037 EAPI void                   ecore_x_composite_redirect_window(Ecore_X_Window                win,
3038                                                               Ecore_X_Composite_Update_Type type);
3039 EAPI void                   ecore_x_composite_redirect_subwindows(Ecore_X_Window                win,
3040                                                                   Ecore_X_Composite_Update_Type type);
3041 EAPI void                   ecore_x_composite_unredirect_window(Ecore_X_Window                win,
3042                                                                 Ecore_X_Composite_Update_Type type);
3043 EAPI void                   ecore_x_composite_unredirect_subwindows(Ecore_X_Window                win,
3044                                                                     Ecore_X_Composite_Update_Type type);
3045 EAPI Ecore_X_Pixmap         ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win);
3046 EAPI void                   ecore_x_composite_window_events_disable(Ecore_X_Window win);
3047 EAPI void                   ecore_x_composite_window_events_enable(Ecore_X_Window win);
3048 EAPI Ecore_X_Window         ecore_x_composite_render_window_enable(Ecore_X_Window root);
3049 EAPI void                   ecore_x_composite_render_window_disable(Ecore_X_Window root);
3050
3051 /* XDamage Extension Support */
3052 typedef Ecore_X_ID   Ecore_X_Damage;
3053
3054 typedef enum _Ecore_X_Damage_Report_Level {
3055    ECORE_X_DAMAGE_REPORT_RAW_RECTANGLES,
3056    ECORE_X_DAMAGE_REPORT_DELTA_RECTANGLES,
3057    ECORE_X_DAMAGE_REPORT_BOUNDING_BOX,
3058    ECORE_X_DAMAGE_REPORT_NON_EMPTY
3059 } Ecore_X_Damage_Report_Level;
3060
3061 struct _Ecore_X_Event_Damage
3062 {
3063    Ecore_X_Damage_Report_Level level;
3064    Ecore_X_Drawable            drawable;
3065    Ecore_X_Damage              damage;
3066    int                         more;
3067    Ecore_X_Time                time;
3068    Ecore_X_Rectangle           area;
3069    Ecore_X_Rectangle           geometry;
3070 };
3071
3072 typedef struct _Ecore_X_Event_Damage   Ecore_X_Event_Damage;
3073
3074 EAPI Eina_Bool           ecore_x_damage_query(void);
3075 EAPI Ecore_X_Damage      ecore_x_damage_new(Ecore_X_Drawable            d,
3076                                             Ecore_X_Damage_Report_Level level);
3077 EAPI void                ecore_x_damage_free(Ecore_X_Damage damage);
3078 EAPI void                ecore_x_damage_subtract(Ecore_X_Damage damage,
3079                                                  Ecore_X_Region repair,
3080                                                  Ecore_X_Region parts);
3081
3082 EAPI Eina_Bool           ecore_x_screen_is_composited(int screen);
3083 EAPI void                ecore_x_screen_is_composited_set(int            screen,
3084                                                           Ecore_X_Window win);
3085
3086 EAPI Eina_Bool           ecore_x_dpms_query(void);
3087 EAPI Eina_Bool           ecore_x_dpms_capable_get(void);
3088 EAPI Eina_Bool           ecore_x_dpms_enabled_get(void);
3089 EAPI void                ecore_x_dpms_enabled_set(int enabled);
3090 EAPI void                ecore_x_dpms_timeouts_get(unsigned int *standby,
3091                                                    unsigned int *suspend,
3092                                                    unsigned int *off);
3093 EAPI Eina_Bool           ecore_x_dpms_timeouts_set(unsigned int standby,
3094                                                    unsigned int suspend,
3095                                                    unsigned int off);
3096 EAPI unsigned int        ecore_x_dpms_timeout_standby_get(void);
3097 EAPI unsigned int        ecore_x_dpms_timeout_suspend_get(void);
3098 EAPI unsigned int        ecore_x_dpms_timeout_off_get(void);
3099 EAPI void                ecore_x_dpms_timeout_standby_set(unsigned int new_timeout);
3100 EAPI void                ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout);
3101 EAPI void                ecore_x_dpms_timeout_off_set(unsigned int new_timeout);
3102
3103 EAPI Eina_Bool           ecore_x_test_fake_key_down(const char *key);
3104 EAPI Eina_Bool           ecore_x_test_fake_key_up(const char *key);
3105 EAPI Eina_Bool           ecore_x_test_fake_key_press(const char *key);
3106 EAPI const char *        ecore_x_keysym_string_get(int keysym);
3107
3108 typedef struct _Ecore_X_Image   Ecore_X_Image;
3109
3110 EAPI Ecore_X_Image *     ecore_x_image_new(int            w,
3111                                            int            h,
3112                                            Ecore_X_Visual vis,
3113                                            int            depth);
3114 EAPI void                ecore_x_image_free(Ecore_X_Image *im);
3115 EAPI Eina_Bool           ecore_x_image_get(Ecore_X_Image   *im,
3116                                            Ecore_X_Drawable draw,
3117                                            int              x,
3118                                            int              y,
3119                                            int              sx,
3120                                            int              sy,
3121                                            int              w,
3122                                            int              h);
3123 EAPI void      ecore_x_image_put(Ecore_X_Image   *im,
3124                                  Ecore_X_Drawable draw,
3125                                  Ecore_X_GC       gc,
3126                                  int              x,
3127                                  int              y,
3128                                  int              sx,
3129                                  int              sy,
3130                                  int              w,
3131                                  int              h);
3132 EAPI void *         ecore_x_image_data_get(Ecore_X_Image *im,
3133                                            int           *bpl,
3134                                            int           *rows,
3135                                            int           *bpp);
3136 EAPI Eina_Bool      ecore_x_image_is_argb32_get(Ecore_X_Image *im);
3137          
3138 EAPI Eina_Bool      ecore_x_image_to_argb_convert(void *src, int sbpp, 
3139                                                   int sbpl,
3140                                                   Ecore_X_Colormap c, 
3141                                                   Ecore_X_Visual v, 
3142                                                   int x, int y, int w, int h, 
3143                                                   unsigned int *dst,
3144                                                   int dbpl, 
3145                                                   int dx, int dy);
3146
3147 EAPI Eina_Bool      ecore_x_input_multi_select(Ecore_X_Window win);
3148
3149 EAPI Eina_Bool      ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win);
3150          
3151 #ifdef __cplusplus
3152 }
3153 #endif // ifdef __cplusplus
3154
3155 #include <Ecore_X_Atoms.h>
3156 #include <Ecore_X_Cursor.h>
3157
3158 #endif // ifndef _ECORE_X_H