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
19 # define EAPI __attribute__ ((visibility("default")))
20 # else // if __GNUC__ >= 4
22 # endif // if __GNUC__ >= 4
23 # else // ifdef __GNUC__
25 # endif // ifdef __GNUC__
26 #endif // ifdef _MSC_VER
28 #include <sys/types.h>
32 * @brief Ecore functions for dealing with the X Windows System
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
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;
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;
71 typedef Ecore_X_ID Ecore_X_Device;
75 #endif // ifdef __cplusplus
77 typedef struct _Ecore_X_Rectangle
80 unsigned int width, height;
83 typedef struct _Ecore_X_Icon
85 unsigned int width, height;
89 typedef enum _Ecore_X_GC_Value_Mask
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;
116 typedef enum _Ecore_X_Composite_Update_Type
118 ECORE_X_COMPOSITE_UPDATE_AUTOMATIC,
119 ECORE_X_COMPOSITE_UPDATE_MANUAL
120 } Ecore_X_Composite_Update_Type;
123 * @typedef _Ecore_X_Window_State
124 * Defines the different states of the window of Ecore_X.
126 typedef enum _Ecore_X_Window_State
129 ECORE_X_WINDOW_STATE_UNKNOWN = 0, /** The window is iconified. */
130 ECORE_X_WINDOW_STATE_ICONIFIED, /** The window is a modal dialog box. */
131 ECORE_X_WINDOW_STATE_MODAL, /** The window manager should keep the window's position fixed
132 * even if the virtual desktop scrolls. */
133 ECORE_X_WINDOW_STATE_STICKY, /** The window has the maximum vertical size. */
134 ECORE_X_WINDOW_STATE_MAXIMIZED_VERT, /** The window has the maximum horizontal size. */
135 ECORE_X_WINDOW_STATE_MAXIMIZED_HORZ, /** The window is shaded. */
136 ECORE_X_WINDOW_STATE_SHADED, /** The window should not be included in the taskbar. */
137 ECORE_X_WINDOW_STATE_SKIP_TASKBAR, /** The window should not be included in the pager. */
138 ECORE_X_WINDOW_STATE_SKIP_PAGER, /** The window is invisible (i.e. minimized/iconified) */
139 ECORE_X_WINDOW_STATE_HIDDEN, /** The window should fill the entire screen and have no
140 * window border/decorations */
141 ECORE_X_WINDOW_STATE_FULLSCREEN, /* The following are not documented because they are not
142 * intended for use in applications. */
143 ECORE_X_WINDOW_STATE_ABOVE, ECORE_X_WINDOW_STATE_BELOW, /* FIXME: Documentation */
144 ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION
145 } Ecore_X_Window_State;
147 typedef enum _Ecore_X_Window_State_Action
149 ECORE_X_WINDOW_STATE_ACTION_REMOVE,
150 ECORE_X_WINDOW_STATE_ACTION_ADD,
151 ECORE_X_WINDOW_STATE_ACTION_TOGGLE
152 } Ecore_X_Window_State_Action;
154 typedef enum _Ecore_X_Window_Stack_Mode
156 ECORE_X_WINDOW_STACK_ABOVE = 0,
157 ECORE_X_WINDOW_STACK_BELOW = 1,
158 ECORE_X_WINDOW_STACK_TOP_IF = 2,
159 ECORE_X_WINDOW_STACK_BOTTOM_IF = 3,
160 ECORE_X_WINDOW_STACK_OPPOSITE = 4
161 } Ecore_X_Window_Stack_Mode;
163 typedef enum _Ecore_X_Randr_Orientation
165 ECORE_X_RANDR_ORIENTATION_ROT_0 = (1 << 0),
166 ECORE_X_RANDR_ORIENTATION_ROT_90 = (1 << 1),
167 ECORE_X_RANDR_ORIENTATION_ROT_180 = (1 << 2),
168 ECORE_X_RANDR_ORIENTATION_ROT_270 = (1 << 3),
169 ECORE_X_RANDR_ORIENTATION_FLIP_X = (1 << 4),
170 ECORE_X_RANDR_ORIENTATION_FLIP_Y = (1 << 5)
171 } Ecore_X_Randr_Orientation;
173 typedef enum _Ecore_X_Randr_Connection_Status
175 ECORE_X_RANDR_CONNECTION_STATUS_CONNECTED = 0,
176 ECORE_X_RANDR_CONNECTION_STATUS_DISCONNECTED = 1,
177 ECORE_X_RANDR_CONNECTION_STATUS_UNKNOWN = 2
178 } Ecore_X_Randr_Connection_Status;
180 typedef enum _Ecore_X_Randr_Output_Policy
182 ECORE_X_RANDR_OUTPUT_POLICY_ABOVE = 1,
183 ECORE_X_RANDR_OUTPUT_POLICY_RIGHT = 2,
184 ECORE_X_RANDR_OUTPUT_POLICY_BELOW = 3,
185 ECORE_X_RANDR_OUTPUT_POLICY_LEFT = 4,
186 ECORE_X_RANDR_OUTPUT_POLICY_CLONE = 5,
187 ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6,
188 ECORE_X_RANDR_OUTPUT_POLICY_ASK = 7
189 } Ecore_X_Randr_Output_Policy;
191 typedef enum _Ecore_X_Randr_Relative_Alignment
193 ECORE_X_RANDR_RELATIVE_ALIGNMENT_NONE = 0,
194 ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_REL = 1,
195 ECORE_X_RANDR_RELATIVE_ALIGNMENT_CENTER_SCR = 2
196 } Ecore_X_Randr_Relative_Alignment;
198 typedef enum _Ecore_X_Render_Subpixel_Order
200 ECORE_X_RENDER_SUBPIXEL_ORDER_UNKNOWN = 0,
201 ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_RGB = 1,
202 ECORE_X_RENDER_SUBPIXEL_ORDER_HORIZONTAL_BGR = 2,
203 ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_RGB = 3,
204 ECORE_X_RENDER_SUBPIXEL_ORDER_VERTICAL_BGR = 4,
205 ECORE_X_RENDER_SUBPIXEL_ORDER_NONE = 5
206 } Ecore_X_Render_Subpixel_Order;
208 typedef enum _Ecore_X_Randr_Edid_Display_Interface_Type
210 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_UNDEFINED,
211 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DVI,
212 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_A,
213 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_HDMI_B,
214 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_MDDI,
215 ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DISPLAY_PORT
216 } Ecore_X_Randr_Edid_Display_Interface_Type;
218 typedef enum _Ecore_X_Randr_Edid_Display_Colorscheme
220 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_MONOCHROME_GRAYSCALE = 0x00,
221 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB = 0x08,
222 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_NON_RGB = 0x10,
223 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_UNDEFINED = 0x18,
224 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_4_4_4 = 0x444000,
225 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_4_4 = 0x444,
226 ECORE_X_RANDR_EDID_DISPLAY_COLORSCHEME_COLOR_RGB_YCRCB_4_2_2 = 0x422
227 } Ecore_X_Randr_Edid_Display_Colorscheme;
229 typedef enum _Ecore_X_Randr_Edid_Aspect_Ratio
231 ECORE_X_RANDR_EDID_ASPECT_RATIO_4_3 = 0x0,
232 ECORE_X_RANDR_EDID_ASPECT_RATIO_16_9 = 0x1,
233 ECORE_X_RANDR_EDID_ASPECT_RATIO_16_10 = 0x2,
234 ECORE_X_RANDR_EDID_ASPECT_RATIO_5_4 = 0x4,
235 ECORE_X_RANDR_EDID_ASPECT_RATIO_15_9 = 0x8
236 } Ecore_X_Randr_Edid_Aspect_Ratio;
238 #define ECORE_X_RANDR_EDID_UNKNOWN_VALUE -1
240 #define ECORE_X_SELECTION_TARGET_TARGETS "TARGETS"
241 #define ECORE_X_SELECTION_TARGET_TEXT "TEXT"
242 #define ECORE_X_SELECTION_TARGET_COMPOUND_TEXT "COMPOUND_TEXT"
243 #define ECORE_X_SELECTION_TARGET_STRING "STRING"
244 #define ECORE_X_SELECTION_TARGET_UTF8_STRING "UTF8_STRING"
245 #define ECORE_X_SELECTION_TARGET_FILENAME "FILENAME"
247 #define ECORE_X_DND_VERSION 5
249 typedef enum _Ecore_X_Selection
251 ECORE_X_SELECTION_PRIMARY,
252 ECORE_X_SELECTION_SECONDARY,
253 ECORE_X_SELECTION_XDND,
254 ECORE_X_SELECTION_CLIPBOARD,
255 ECORE_X_SELECTION_OTHER
258 typedef enum _Ecore_X_Event_Mode
260 ECORE_X_EVENT_MODE_NORMAL,
261 ECORE_X_EVENT_MODE_WHILE_GRABBED,
262 ECORE_X_EVENT_MODE_GRAB,
263 ECORE_X_EVENT_MODE_UNGRAB
264 } Ecore_X_Event_Mode;
266 typedef enum _Ecore_X_Event_Detail
268 ECORE_X_EVENT_DETAIL_ANCESTOR,
269 ECORE_X_EVENT_DETAIL_VIRTUAL,
270 ECORE_X_EVENT_DETAIL_INFERIOR,
271 ECORE_X_EVENT_DETAIL_NON_LINEAR,
272 ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL,
273 ECORE_X_EVENT_DETAIL_POINTER,
274 ECORE_X_EVENT_DETAIL_POINTER_ROOT,
275 ECORE_X_EVENT_DETAIL_DETAIL_NONE
276 } Ecore_X_Event_Detail;
278 typedef enum _Ecore_X_Event_Mask
280 ECORE_X_EVENT_MASK_NONE = 0L,
281 ECORE_X_EVENT_MASK_KEY_DOWN = (1L << 0),
282 ECORE_X_EVENT_MASK_KEY_UP = (1L << 1),
283 ECORE_X_EVENT_MASK_MOUSE_DOWN = (1L << 2),
284 ECORE_X_EVENT_MASK_MOUSE_UP = (1L << 3),
285 ECORE_X_EVENT_MASK_MOUSE_IN = (1L << 4),
286 ECORE_X_EVENT_MASK_MOUSE_OUT = (1L << 5),
287 ECORE_X_EVENT_MASK_MOUSE_MOVE = (1L << 6),
288 ECORE_X_EVENT_MASK_WINDOW_DAMAGE = (1L << 15),
289 ECORE_X_EVENT_MASK_WINDOW_VISIBILITY = (1L << 16),
290 ECORE_X_EVENT_MASK_WINDOW_CONFIGURE = (1L << 17),
291 ECORE_X_EVENT_MASK_WINDOW_RESIZE_MANAGE = (1L << 18),
292 ECORE_X_EVENT_MASK_WINDOW_MANAGE = (1L << 19),
293 ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE = (1L << 20),
294 ECORE_X_EVENT_MASK_WINDOW_FOCUS_CHANGE = (1L << 21),
295 ECORE_X_EVENT_MASK_WINDOW_PROPERTY = (1L << 22),
296 ECORE_X_EVENT_MASK_WINDOW_COLORMAP = (1L << 23),
297 ECORE_X_EVENT_MASK_WINDOW_GRAB = (1L << 24),
298 ECORE_X_EVENT_MASK_MOUSE_WHEEL = (1L << 29),
299 ECORE_X_EVENT_MASK_WINDOW_FOCUS_IN = (1L << 30),
300 ECORE_X_EVENT_MASK_WINDOW_FOCUS_OUT = (1L << 31)
301 } Ecore_X_Event_Mask;
303 typedef enum _Ecore_X_Gravity
305 ECORE_X_GRAVITY_FORGET = 0,
306 ECORE_X_GRAVITY_UNMAP = 0,
307 ECORE_X_GRAVITY_NW = 1,
308 ECORE_X_GRAVITY_N = 2,
309 ECORE_X_GRAVITY_NE = 3,
310 ECORE_X_GRAVITY_W = 4,
311 ECORE_X_GRAVITY_CENTER = 5,
312 ECORE_X_GRAVITY_E = 6,
313 ECORE_X_GRAVITY_SW = 7,
314 ECORE_X_GRAVITY_S = 8,
315 ECORE_X_GRAVITY_SE = 9,
316 ECORE_X_GRAVITY_STATIC = 10
319 /* Needed for ecore_x_region_window_shape_set */
320 typedef enum _Ecore_X_Shape_Type
322 ECORE_X_SHAPE_BOUNDING,
325 } Ecore_X_Shape_Type;
327 typedef enum _Ecore_X_Mapping_Type
329 ECORE_X_MAPPING_MODIFIER,
330 ECORE_X_MAPPING_KEYBOARD,
331 ECORE_X_MAPPING_MOUSE
332 } Ecore_X_Mapping_Type;
334 typedef enum _Ecore_X_Randr_Property_Change
336 ECORE_X_RANDR_PROPERTY_CHANGE_ADD,
337 ECORE_X_RANDR_PROPERTY_CHANGE_DEL
338 } Ecore_X_Randr_Property_Change;
340 typedef enum _Ecore_X_Netwm_Direction
342 ECORE_X_NETWM_DIRECTION_SIZE_TL = 0,
343 ECORE_X_NETWM_DIRECTION_SIZE_T = 1,
344 ECORE_X_NETWM_DIRECTION_SIZE_TR = 2,
345 ECORE_X_NETWM_DIRECTION_SIZE_R = 3,
346 ECORE_X_NETWM_DIRECTION_SIZE_BR = 4,
347 ECORE_X_NETWM_DIRECTION_SIZE_B = 5,
348 ECORE_X_NETWM_DIRECTION_SIZE_BL = 6,
349 ECORE_X_NETWM_DIRECTION_SIZE_L = 7,
350 ECORE_X_NETWM_DIRECTION_MOVE = 8,
351 ECORE_X_NETWM_DIRECTION_CANCEL = 11,
352 } Ecore_X_Netwm_Direction;
355 * @typedef _Ecore_X_Error_Code
356 * Defines the error codes of Ecore_X which wraps the X Window Systems
361 typedef enum _Ecore_X_Error_Code
363 /** Everything is okay. */
364 ECORE_X_ERROR_CODE_SUCCESS = 0, /** Bad request code */
365 ECORE_X_ERROR_CODE_BAD_REQUEST = 1, /** Int parameter out of range */
366 ECORE_X_ERROR_CODE_BAD_VALUE = 2, /** Parameter not a Window */
367 ECORE_X_ERROR_CODE_BAD_WINDOW = 3, /** Parameter not a Pixmap */
368 ECORE_X_ERROR_CODE_BAD_PIXMAP = 4, /** Parameter not an Atom */
369 ECORE_X_ERROR_CODE_BAD_ATOM = 5, /** Parameter not a Cursor */
370 ECORE_X_ERROR_CODE_BAD_CURSOR = 6, /** Parameter not a Font */
371 ECORE_X_ERROR_CODE_BAD_FONT = 7, /** Parameter mismatch */
372 ECORE_X_ERROR_CODE_BAD_MATCH = 8, /** Parameter not a Pixmap or Window */
373 ECORE_X_ERROR_CODE_BAD_DRAWABLE = 9, /** Bad access */
374 ECORE_X_ERROR_CODE_BAD_ACCESS = 10, /** Insufficient resources */
375 ECORE_X_ERROR_CODE_BAD_ALLOC = 11, /** No such colormap */
376 ECORE_X_ERROR_CODE_BAD_COLOR = 12, /** Parameter not a GC */
377 ECORE_X_ERROR_CODE_BAD_GC = 13, /** Choice not in range or already used */
378 ECORE_X_ERROR_CODE_BAD_ID_CHOICE = 14, /** Font or color name doesn't exist */
379 ECORE_X_ERROR_CODE_BAD_NAME = 15, /** Request length incorrect */
380 ECORE_X_ERROR_CODE_BAD_LENGTH = 16, /** Server is defective */
381 ECORE_X_ERROR_CODE_BAD_IMPLEMENTATION = 17,
382 } Ecore_X_Error_Code;
384 typedef struct _Ecore_X_Event_Mouse_In Ecore_X_Event_Mouse_In;
385 typedef struct _Ecore_X_Event_Mouse_Out Ecore_X_Event_Mouse_Out;
386 typedef struct _Ecore_X_Event_Window_Focus_In Ecore_X_Event_Window_Focus_In;
387 typedef struct _Ecore_X_Event_Window_Focus_Out Ecore_X_Event_Window_Focus_Out;
388 typedef struct _Ecore_X_Event_Window_Keymap Ecore_X_Event_Window_Keymap;
389 typedef struct _Ecore_X_Event_Window_Damage Ecore_X_Event_Window_Damage;
390 typedef struct _Ecore_X_Event_Window_Visibility_Change Ecore_X_Event_Window_Visibility_Change;
391 typedef struct _Ecore_X_Event_Window_Create Ecore_X_Event_Window_Create;
392 typedef struct _Ecore_X_Event_Window_Destroy Ecore_X_Event_Window_Destroy;
393 typedef struct _Ecore_X_Event_Window_Hide Ecore_X_Event_Window_Hide;
394 typedef struct _Ecore_X_Event_Window_Show Ecore_X_Event_Window_Show;
395 typedef struct _Ecore_X_Event_Window_Show_Request Ecore_X_Event_Window_Show_Request;
396 typedef struct _Ecore_X_Event_Window_Reparent Ecore_X_Event_Window_Reparent;
397 typedef struct _Ecore_X_Event_Window_Configure Ecore_X_Event_Window_Configure;
398 typedef struct _Ecore_X_Event_Window_Configure_Request Ecore_X_Event_Window_Configure_Request;
399 typedef struct _Ecore_X_Event_Window_Gravity Ecore_X_Event_Window_Gravity;
400 typedef struct _Ecore_X_Event_Window_Resize_Request Ecore_X_Event_Window_Resize_Request;
401 typedef struct _Ecore_X_Event_Window_Stack Ecore_X_Event_Window_Stack;
402 typedef struct _Ecore_X_Event_Window_Stack_Request Ecore_X_Event_Window_Stack_Request;
403 typedef struct _Ecore_X_Event_Window_Property Ecore_X_Event_Window_Property;
404 typedef struct _Ecore_X_Event_Window_Colormap Ecore_X_Event_Window_Colormap;
405 typedef struct _Ecore_X_Event_Mapping_Change Ecore_X_Event_Mapping_Change;
406 typedef struct _Ecore_X_Event_Window_Mapping Ecore_X_Event_Window_Mapping;
407 typedef struct _Ecore_X_Event_Selection_Clear Ecore_X_Event_Selection_Clear;
408 typedef struct _Ecore_X_Event_Selection_Request Ecore_X_Event_Selection_Request;
409 typedef struct _Ecore_X_Event_Selection_Notify Ecore_X_Event_Selection_Notify;
410 typedef struct _Ecore_X_Event_Fixes_Selection_Notify Ecore_X_Event_Fixes_Selection_Notify;
411 typedef struct _Ecore_X_Selection_Data Ecore_X_Selection_Data;
412 typedef struct _Ecore_X_Selection_Data_Files Ecore_X_Selection_Data_Files;
413 typedef struct _Ecore_X_Selection_Data_Text Ecore_X_Selection_Data_Text;
414 typedef struct _Ecore_X_Selection_Data_Targets Ecore_X_Selection_Data_Targets;
415 typedef struct _Ecore_X_Event_Xdnd_Enter Ecore_X_Event_Xdnd_Enter;
416 typedef struct _Ecore_X_Event_Xdnd_Position Ecore_X_Event_Xdnd_Position;
417 typedef struct _Ecore_X_Event_Xdnd_Status Ecore_X_Event_Xdnd_Status;
418 typedef struct _Ecore_X_Event_Xdnd_Leave Ecore_X_Event_Xdnd_Leave;
419 typedef struct _Ecore_X_Event_Xdnd_Drop Ecore_X_Event_Xdnd_Drop;
420 typedef struct _Ecore_X_Event_Xdnd_Finished Ecore_X_Event_Xdnd_Finished;
421 typedef struct _Ecore_X_Event_Client_Message Ecore_X_Event_Client_Message;
422 typedef struct _Ecore_X_Event_Window_Shape Ecore_X_Event_Window_Shape;
423 typedef struct _Ecore_X_Event_Screensaver_Notify Ecore_X_Event_Screensaver_Notify;
424 typedef struct _Ecore_X_Event_Gesture_Notify_Flick Ecore_X_Event_Gesture_Notify_Flick;
425 typedef struct _Ecore_X_Event_Gesture_Notify_Pan Ecore_X_Event_Gesture_Notify_Pan;
426 typedef struct _Ecore_X_Event_Gesture_Notify_PinchRotation Ecore_X_Event_Gesture_Notify_PinchRotation;
427 typedef struct _Ecore_X_Event_Gesture_Notify_Tap Ecore_X_Event_Gesture_Notify_Tap;
428 typedef struct _Ecore_X_Event_Gesture_Notify_TapNHold Ecore_X_Event_Gesture_Notify_TapNHold;
429 typedef struct _Ecore_X_Event_Gesture_Notify_Hold Ecore_X_Event_Gesture_Notify_Hold;
430 typedef struct _Ecore_X_Event_Gesture_Notify_Group Ecore_X_Event_Gesture_Notify_Group;
431 typedef struct _Ecore_X_Event_Sync_Counter Ecore_X_Event_Sync_Counter;
432 typedef struct _Ecore_X_Event_Sync_Alarm Ecore_X_Event_Sync_Alarm;
433 typedef struct _Ecore_X_Event_Screen_Change Ecore_X_Event_Screen_Change;
434 typedef struct _Ecore_X_Event_Randr_Crtc_Change Ecore_X_Event_Randr_Crtc_Change;
435 typedef struct _Ecore_X_Event_Randr_Output_Change Ecore_X_Event_Randr_Output_Change;
436 typedef struct _Ecore_X_Event_Randr_Output_Property_Notify Ecore_X_Event_Randr_Output_Property_Notify;
438 typedef struct _Ecore_X_Event_Window_Delete_Request Ecore_X_Event_Window_Delete_Request;
439 typedef struct _Ecore_X_Event_Window_Move_Resize_Request Ecore_X_Event_Window_Move_Resize_Request;
440 typedef struct _Ecore_X_Event_Window_State_Request Ecore_X_Event_Window_State_Request;
441 typedef struct _Ecore_X_Event_Frame_Extents_Request Ecore_X_Event_Frame_Extents_Request;
442 typedef struct _Ecore_X_Event_Ping Ecore_X_Event_Ping;
443 typedef struct _Ecore_X_Event_Desktop_Change Ecore_X_Event_Desktop_Change;
445 typedef struct _Ecore_X_Event_Startup_Sequence Ecore_X_Event_Startup_Sequence;
447 typedef struct _Ecore_X_Event_Generic Ecore_X_Event_Generic;
449 typedef struct _Ecore_X_Randr_Screen_Size Ecore_X_Randr_Screen_Size;
450 typedef struct _Ecore_X_Randr_Screen_Size_MM Ecore_X_Randr_Screen_Size_MM;
452 typedef struct _Ecore_X_Xdnd_Position Ecore_X_Xdnd_Position;
454 struct _Ecore_X_Event_Mouse_In
458 Eina_Bool same_screen : 1;
464 Ecore_X_Window event_win;
465 Ecore_X_Window root_win;
466 Ecore_X_Event_Mode mode;
467 Ecore_X_Event_Detail detail;
471 struct _Ecore_X_Event_Mouse_Out
481 Ecore_X_Window event_win;
482 Ecore_X_Window root_win;
483 Ecore_X_Event_Mode mode;
484 Ecore_X_Event_Detail detail;
488 struct _Ecore_X_Event_Window_Focus_In
491 Ecore_X_Event_Mode mode;
492 Ecore_X_Event_Detail detail;
496 struct _Ecore_X_Event_Window_Focus_Out
499 Ecore_X_Event_Mode mode;
500 Ecore_X_Event_Detail detail;
504 struct _Ecore_X_Event_Window_Keymap
509 struct _Ecore_X_Event_Window_Damage
517 struct _Ecore_X_Event_Window_Visibility_Change
524 struct _Ecore_X_Event_Window_Create
527 Ecore_X_Window parent;
534 struct _Ecore_X_Event_Window_Destroy
537 Ecore_X_Window event_win;
541 struct _Ecore_X_Event_Window_Hide
544 Ecore_X_Window event_win;
548 struct _Ecore_X_Event_Window_Show
551 Ecore_X_Window event_win;
555 struct _Ecore_X_Event_Window_Show_Request
558 Ecore_X_Window parent;
562 struct _Ecore_X_Event_Window_Reparent
565 Ecore_X_Window event_win;
566 Ecore_X_Window parent;
570 struct _Ecore_X_Event_Window_Configure
573 Ecore_X_Window event_win;
574 Ecore_X_Window abovewin;
577 Eina_Bool override : 1;
578 Eina_Bool from_wm : 1;
582 struct _Ecore_X_Event_Window_Configure_Request
585 Ecore_X_Window parent_win;
586 Ecore_X_Window abovewin;
589 Ecore_X_Window_Stack_Mode detail;
590 unsigned long value_mask;
594 struct _Ecore_X_Event_Window_Gravity
597 Ecore_X_Window event_win;
601 struct _Ecore_X_Event_Window_Resize_Request
608 struct _Ecore_X_Event_Window_Stack
611 Ecore_X_Window event_win;
612 Ecore_X_Window_Stack_Mode detail;
616 struct _Ecore_X_Event_Window_Stack_Request
619 Ecore_X_Window parent;
620 Ecore_X_Window_Stack_Mode detail;
624 struct _Ecore_X_Event_Window_Property
631 struct _Ecore_X_Event_Window_Colormap
634 Ecore_X_Colormap cmap;
635 Eina_Bool installed : 1;
639 struct _Ecore_X_Event_Mapping_Change
641 Ecore_X_Mapping_Type type;
646 struct _Ecore_X_Event_Selection_Clear
649 Ecore_X_Selection selection;
654 struct _Ecore_X_Event_Selection_Request
656 Ecore_X_Window owner;
657 Ecore_X_Window requestor;
659 Ecore_X_Atom selection;
661 Ecore_X_Atom property;
666 ECORE_X_OWNER_CHANGE_REASON_NEW_OWNER,
667 ECORE_X_OWNER_CHANGE_REASON_DESTROY,
668 ECORE_X_OWNER_CHANGE_REASON_CLOSE
669 } Ecore_X_Owner_Change_Reason;
671 struct _Ecore_X_Event_Fixes_Selection_Notify
674 Ecore_X_Window owner;
676 Ecore_X_Time selection_time;
677 Ecore_X_Selection selection;
679 Ecore_X_Owner_Change_Reason reason;
682 struct _Ecore_X_Event_Selection_Notify
686 Ecore_X_Selection selection;
692 struct _Ecore_X_Selection_Data
696 ECORE_X_SELECTION_CONTENT_NONE,
697 ECORE_X_SELECTION_CONTENT_TEXT,
698 ECORE_X_SELECTION_CONTENT_FILES,
699 ECORE_X_SELECTION_CONTENT_TARGETS,
700 ECORE_X_SELECTION_CONTENT_CUSTOM
705 int (*free)(void *data);
708 struct _Ecore_X_Selection_Data_Files
710 Ecore_X_Selection_Data data;
715 struct _Ecore_X_Selection_Data_Text
717 Ecore_X_Selection_Data data;
721 struct _Ecore_X_Selection_Data_Targets
723 Ecore_X_Selection_Data data;
728 struct _Ecore_X_Event_Xdnd_Enter
730 Ecore_X_Window win, source;
736 struct _Ecore_X_Event_Xdnd_Position
738 Ecore_X_Window win, source;
746 struct _Ecore_X_Xdnd_Position
748 Ecore_X_Window win, prev;
755 struct _Ecore_X_Event_Xdnd_Status
757 Ecore_X_Window win, target;
758 Eina_Bool will_accept : 1;
759 Ecore_X_Rectangle rectangle;
763 struct _Ecore_X_Event_Xdnd_Leave
765 Ecore_X_Window win, source;
768 struct _Ecore_X_Event_Xdnd_Drop
770 Ecore_X_Window win, source;
778 struct _Ecore_X_Event_Xdnd_Finished
780 Ecore_X_Window win, target;
781 Eina_Bool completed : 1;
785 struct _Ecore_X_Event_Client_Message
788 Ecore_X_Atom message_type;
799 struct _Ecore_X_Event_Window_Shape
803 Ecore_X_Shape_Type type;
805 Eina_Bool shaped : 1;
808 struct _Ecore_X_Event_Screensaver_Notify
815 struct _Ecore_X_Event_Sync_Counter
820 struct _Ecore_X_Event_Sync_Alarm
823 Ecore_X_Sync_Alarm alarm;
826 struct _Ecore_X_Randr_Screen_Size
831 struct _Ecore_X_Randr_Screen_Size_MM
833 int width, height, width_mm, height_mm;
836 struct _Ecore_X_Event_Screen_Change
840 Ecore_X_Randr_Screen_Size_MM size; /* in pixel and millimeters */
842 Ecore_X_Time config_time;
843 Ecore_X_Randr_Orientation orientation;
844 Ecore_X_Render_Subpixel_Order subpixel_order;
845 Ecore_X_Randr_Size_ID size_id;
848 struct _Ecore_X_Event_Randr_Crtc_Change
851 Ecore_X_Randr_Crtc crtc;
852 Ecore_X_Randr_Mode mode;
853 Ecore_X_Randr_Orientation orientation;
857 struct _Ecore_X_Event_Randr_Output_Change
860 Ecore_X_Randr_Output output;
861 Ecore_X_Randr_Crtc crtc;
862 Ecore_X_Randr_Mode mode;
863 Ecore_X_Randr_Orientation orientation;
864 Ecore_X_Randr_Connection_Status connection;
865 Ecore_X_Render_Subpixel_Order subpixel_order;
868 struct _Ecore_X_Event_Randr_Output_Property_Notify
871 Ecore_X_Randr_Output output;
872 Ecore_X_Atom property;
874 Ecore_X_Randr_Property_Change state;
877 struct _Ecore_X_Event_Window_Delete_Request
883 struct _Ecore_X_Event_Window_Prop_Title_Change
890 struct _Ecore_X_Event_Window_Prop_Visible_Title_Change
897 struct _Ecore_X_Event_Window_Prop_Icon_Name_Change
904 struct _Ecore_X_Event_Window_Prop_Visible_Icon_Name_Change
911 struct _Ecore_X_Event_Window_Prop_Client_Machine_Change
918 struct _Ecore_X_Event_Window_Prop_Name_Class_Change
926 struct _Ecore_X_Event_Window_Prop_Pid_Change
933 struct _Ecore_X_Event_Window_Prop_Desktop_Change
940 struct _Ecore_X_Event_Startup_Sequence
945 struct _Ecore_X_Event_Window_Move_Resize_Request
954 struct _Ecore_X_Event_Window_State_Request
957 Ecore_X_Window_State_Action action;
958 Ecore_X_Window_State state[2];
962 struct _Ecore_X_Event_Frame_Extents_Request
967 struct _Ecore_X_Event_Ping
970 Ecore_X_Window event_win;
974 struct _Ecore_X_Event_Desktop_Change
981 struct _Ecore_X_Event_Generic
989 EAPI extern int ECORE_X_EVENT_ANY; /**< low level event dependent on
990 backend in use, if Xlib will be XEvent, if XCB will be xcb_generic_event_t.
991 @warning avoid using it.
993 EAPI extern int ECORE_X_EVENT_MOUSE_IN;
994 EAPI extern int ECORE_X_EVENT_MOUSE_OUT;
995 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_IN;
996 EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_OUT;
997 EAPI extern int ECORE_X_EVENT_WINDOW_KEYMAP;
998 EAPI extern int ECORE_X_EVENT_WINDOW_DAMAGE;
999 EAPI extern int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE;
1000 EAPI extern int ECORE_X_EVENT_WINDOW_CREATE;
1001 EAPI extern int ECORE_X_EVENT_WINDOW_DESTROY;
1002 EAPI extern int ECORE_X_EVENT_WINDOW_HIDE;
1003 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW;
1004 EAPI extern int ECORE_X_EVENT_WINDOW_SHOW_REQUEST;
1005 EAPI extern int ECORE_X_EVENT_WINDOW_REPARENT;
1006 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE;
1007 EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST;
1008 EAPI extern int ECORE_X_EVENT_WINDOW_GRAVITY;
1009 EAPI extern int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST;
1010 EAPI extern int ECORE_X_EVENT_WINDOW_STACK;
1011 EAPI extern int ECORE_X_EVENT_WINDOW_STACK_REQUEST;
1012 EAPI extern int ECORE_X_EVENT_WINDOW_PROPERTY;
1013 EAPI extern int ECORE_X_EVENT_WINDOW_COLORMAP;
1014 EAPI extern int ECORE_X_EVENT_WINDOW_MAPPING;
1015 EAPI extern int ECORE_X_EVENT_MAPPING_CHANGE;
1016 EAPI extern int ECORE_X_EVENT_SELECTION_CLEAR;
1017 EAPI extern int ECORE_X_EVENT_SELECTION_REQUEST;
1018 EAPI extern int ECORE_X_EVENT_SELECTION_NOTIFY;
1019 EAPI extern int ECORE_X_EVENT_FIXES_SELECTION_NOTIFY;
1020 EAPI extern int ECORE_X_EVENT_CLIENT_MESSAGE;
1021 EAPI extern int ECORE_X_EVENT_WINDOW_SHAPE;
1022 EAPI extern int ECORE_X_EVENT_SCREENSAVER_NOTIFY;
1023 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_FLICK;
1024 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_PAN;
1025 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_PINCHROTATION;
1026 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_TAP;
1027 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_TAPNHOLD;
1028 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_HOLD;
1029 EAPI extern int ECORE_X_EVENT_GESTURE_NOTIFY_GROUP;
1030 EAPI extern int ECORE_X_EVENT_SYNC_COUNTER;
1031 EAPI extern int ECORE_X_EVENT_SYNC_ALARM;
1032 EAPI extern int ECORE_X_EVENT_SCREEN_CHANGE;
1033 EAPI extern int ECORE_X_EVENT_RANDR_CRTC_CHANGE;
1034 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_CHANGE;
1035 EAPI extern int ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY;
1036 EAPI extern int ECORE_X_EVENT_DAMAGE_NOTIFY;
1038 EAPI extern int ECORE_X_EVENT_WINDOW_DELETE_REQUEST;
1040 EAPI extern int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST;
1041 EAPI extern int ECORE_X_EVENT_WINDOW_STATE_REQUEST;
1042 EAPI extern int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST;
1043 EAPI extern int ECORE_X_EVENT_PING;
1044 EAPI extern int ECORE_X_EVENT_DESKTOP_CHANGE;
1046 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW;
1047 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE;
1048 EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE;
1050 EAPI extern int ECORE_X_EVENT_GENERIC;
1052 EAPI extern int ECORE_X_EVENT_XDND_ENTER;
1053 EAPI extern int ECORE_X_EVENT_XDND_POSITION;
1054 EAPI extern int ECORE_X_EVENT_XDND_STATUS;
1055 EAPI extern int ECORE_X_EVENT_XDND_LEAVE;
1056 EAPI extern int ECORE_X_EVENT_XDND_DROP;
1057 EAPI extern int ECORE_X_EVENT_XDND_FINISHED;
1059 EAPI extern int ECORE_X_LOCK_SCROLL;
1060 EAPI extern int ECORE_X_LOCK_NUM;
1061 EAPI extern int ECORE_X_LOCK_CAPS;
1062 EAPI extern int ECORE_X_LOCK_SHIFT;
1064 typedef enum _Ecore_X_WM_Protocol
1066 /** If enabled the window manager will be asked to send a
1067 * delete message instead of just closing (destroying) the window. */
1068 ECORE_X_WM_PROTOCOL_DELETE_REQUEST,
1070 /** If enabled the window manager will be told that the window
1071 * explicitly sets input focus. */
1072 ECORE_X_WM_PROTOCOL_TAKE_FOCUS,
1074 /** If enabled the window manager can ping the window to check
1075 * if it is alive. */
1076 ECORE_X_NET_WM_PROTOCOL_PING,
1078 /** If enabled the window manager can sync updating with the
1080 ECORE_X_NET_WM_PROTOCOL_SYNC_REQUEST,
1082 /** Number of defined items */
1083 ECORE_X_WM_PROTOCOL_NUM
1084 } Ecore_X_WM_Protocol;
1086 typedef enum _Ecore_X_Window_Input_Mode
1088 /** The window can never be focused */
1089 ECORE_X_WINDOW_INPUT_MODE_NONE,
1091 /** The window can be focused by the WM but doesn't focus itself */
1092 ECORE_X_WINDOW_INPUT_MODE_PASSIVE,
1094 /** The window sets the focus itself if one of its sub-windows
1095 * already is focused */
1096 ECORE_X_WINDOW_INPUT_MODE_ACTIVE_LOCAL,
1098 /** The window sets the focus itself even if another window
1099 * is currently focused */
1100 ECORE_X_WINDOW_INPUT_MODE_ACTIVE_GLOBAL
1101 } Ecore_X_Window_Input_Mode;
1104 * @typedef _Ecore_X_Window_State_Hint
1105 * Defines the different state hint of the window of Ecore_X.
1107 typedef enum _Ecore_X_Window_State_Hint
1109 /** Do not provide any state hint to the window manager */
1110 ECORE_X_WINDOW_STATE_HINT_NONE = -1,
1112 /** The window wants to remain hidden and NOT iconified */
1113 ECORE_X_WINDOW_STATE_HINT_WITHDRAWN,
1115 /** The window wants to be mapped normally */
1116 ECORE_X_WINDOW_STATE_HINT_NORMAL,
1118 /** The window wants to start in an iconified state */
1119 ECORE_X_WINDOW_STATE_HINT_ICONIC
1120 } Ecore_X_Window_State_Hint;
1122 typedef enum _Ecore_X_Window_Type
1124 ECORE_X_WINDOW_TYPE_UNKNOWN = 0,
1125 ECORE_X_WINDOW_TYPE_DESKTOP,
1126 ECORE_X_WINDOW_TYPE_DOCK,
1127 ECORE_X_WINDOW_TYPE_TOOLBAR,
1128 ECORE_X_WINDOW_TYPE_MENU,
1129 ECORE_X_WINDOW_TYPE_UTILITY,
1130 ECORE_X_WINDOW_TYPE_SPLASH,
1131 ECORE_X_WINDOW_TYPE_DIALOG,
1132 ECORE_X_WINDOW_TYPE_NORMAL,
1133 ECORE_X_WINDOW_TYPE_DROPDOWN_MENU,
1134 ECORE_X_WINDOW_TYPE_POPUP_MENU,
1135 ECORE_X_WINDOW_TYPE_TOOLTIP,
1136 ECORE_X_WINDOW_TYPE_NOTIFICATION,
1137 ECORE_X_WINDOW_TYPE_COMBO,
1138 ECORE_X_WINDOW_TYPE_DND
1139 } Ecore_X_Window_Type;
1141 typedef enum _Ecore_X_Action
1143 ECORE_X_ACTION_MOVE,
1144 ECORE_X_ACTION_RESIZE,
1145 ECORE_X_ACTION_MINIMIZE,
1146 ECORE_X_ACTION_SHADE,
1147 ECORE_X_ACTION_STICK,
1148 ECORE_X_ACTION_MAXIMIZE_HORZ,
1149 ECORE_X_ACTION_MAXIMIZE_VERT,
1150 ECORE_X_ACTION_FULLSCREEN,
1151 ECORE_X_ACTION_CHANGE_DESKTOP,
1152 ECORE_X_ACTION_CLOSE,
1153 ECORE_X_ACTION_ABOVE,
1154 ECORE_X_ACTION_BELOW
1157 typedef enum _Ecore_X_Window_Configure_Mask
1159 ECORE_X_WINDOW_CONFIGURE_MASK_X = (1 << 0),
1160 ECORE_X_WINDOW_CONFIGURE_MASK_Y = (1 << 1),
1161 ECORE_X_WINDOW_CONFIGURE_MASK_W = (1 << 2),
1162 ECORE_X_WINDOW_CONFIGURE_MASK_H = (1 << 3),
1163 ECORE_X_WINDOW_CONFIGURE_MASK_BORDER_WIDTH = (1 << 4),
1164 ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING = (1 << 5),
1165 ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE = (1 << 6)
1166 } Ecore_X_Window_Configure_Mask;
1168 typedef enum _Ecore_X_Virtual_Keyboard_State
1170 ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN = 0,
1171 ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF,
1172 ECORE_X_VIRTUAL_KEYBOARD_STATE_ON,
1173 ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA,
1174 ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC,
1175 ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN,
1176 ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER,
1177 ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX,
1178 ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL,
1179 ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD,
1180 ECORE_X_VIRTUAL_KEYBOARD_STATE_IP,
1181 ECORE_X_VIRTUAL_KEYBOARD_STATE_HOST,
1182 ECORE_X_VIRTUAL_KEYBOARD_STATE_FILE,
1183 ECORE_X_VIRTUAL_KEYBOARD_STATE_URL,
1184 ECORE_X_VIRTUAL_KEYBOARD_STATE_KEYPAD,
1185 ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME
1186 } Ecore_X_Virtual_Keyboard_State;
1188 typedef enum _Ecore_X_Illume_Mode
1190 ECORE_X_ILLUME_MODE_UNKNOWN = 0,
1191 ECORE_X_ILLUME_MODE_SINGLE,
1192 ECORE_X_ILLUME_MODE_DUAL_TOP,
1193 ECORE_X_ILLUME_MODE_DUAL_LEFT
1194 } Ecore_X_Illume_Mode;
1196 typedef enum _Ecore_X_Illume_Quickpanel_State
1198 ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN = 0,
1199 ECORE_X_ILLUME_QUICKPANEL_STATE_OFF,
1200 ECORE_X_ILLUME_QUICKPANEL_STATE_ON
1201 } Ecore_X_Illume_Quickpanel_State;
1203 typedef enum _Ecore_X_Illume_Indicator_State
1205 ECORE_X_ILLUME_INDICATOR_STATE_UNKNOWN = 0,
1206 ECORE_X_ILLUME_INDICATOR_STATE_OFF,
1207 ECORE_X_ILLUME_INDICATOR_STATE_ON
1208 } Ecore_X_Illume_Indicator_State;
1210 typedef enum _Ecore_X_Illume_Clipboard_State
1212 ECORE_X_ILLUME_CLIPBOARD_STATE_UNKNOWN = 0,
1213 ECORE_X_ILLUME_CLIPBOARD_STATE_OFF,
1214 ECORE_X_ILLUME_CLIPBOARD_STATE_ON
1215 } Ecore_X_Illume_Clipboard_State;
1217 typedef enum _Ecore_X_Illume_Indicator_Opacity_Mode
1219 ECORE_X_ILLUME_INDICATOR_OPACITY_UNKNOWN = 0,
1220 ECORE_X_ILLUME_INDICATOR_OPAQUE,
1221 ECORE_X_ILLUME_INDICATOR_TRANSLUCENT,
1222 ECORE_X_ILLUME_INDICATOR_TRANSPARENT
1223 } Ecore_X_Illume_Indicator_Opacity_Mode;
1225 typedef enum _Ecore_X_Illume_Window_State
1227 ECORE_X_ILLUME_WINDOW_STATE_NORMAL = 0,
1228 ECORE_X_ILLUME_WINDOW_STATE_FLOATING
1229 } Ecore_X_Illume_Window_State;
1231 /* Window layer constants */
1232 #define ECORE_X_WINDOW_LAYER_BELOW 2
1233 #define ECORE_X_WINDOW_LAYER_NORMAL 4
1234 #define ECORE_X_WINDOW_LAYER_ABOVE 6
1236 /* Property list operations */
1237 #define ECORE_X_PROP_LIST_REMOVE 0
1238 #define ECORE_X_PROP_LIST_ADD 1
1239 #define ECORE_X_PROP_LIST_TOGGLE 2
1241 EAPI int ecore_x_init(const char *name);
1242 EAPI int ecore_x_shutdown(void);
1243 EAPI int ecore_x_disconnect(void);
1244 EAPI Ecore_X_Display *ecore_x_display_get(void);
1245 EAPI Ecore_X_Connection *ecore_x_connection_get(void);
1246 EAPI int ecore_x_fd_get(void);
1247 EAPI Ecore_X_Screen *ecore_x_default_screen_get(void);
1248 EAPI void ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h);
1249 EAPI int ecore_x_screen_count_get(void);
1250 EAPI int ecore_x_screen_index_get(const Ecore_X_Screen *screen);
1251 EAPI Ecore_X_Screen *ecore_x_screen_get(int index);
1253 EAPI void ecore_x_double_click_time_set(double t);
1254 EAPI double ecore_x_double_click_time_get(void);
1255 EAPI void ecore_x_flush(void);
1256 EAPI void ecore_x_sync(void);
1257 EAPI void ecore_x_killall(Ecore_X_Window root);
1258 EAPI void ecore_x_kill(Ecore_X_Window win);
1259 EAPI int ecore_x_dpi_get(void);
1260 EAPI Eina_Bool ecore_x_bell(int percent);
1261 EAPI unsigned int ecore_x_visual_id_get(Ecore_X_Visual visual);
1263 EAPI Ecore_X_Visual ecore_x_default_visual_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1264 EAPI Ecore_X_Colormap ecore_x_default_colormap_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1265 EAPI int ecore_x_default_depth_get(Ecore_X_Display *disp, Ecore_X_Screen *screen);
1267 EAPI Ecore_X_Time ecore_x_current_time_get(void);
1269 EAPI void ecore_x_error_handler_set(void (*func)(void *data), const void *data);
1270 EAPI void ecore_x_io_error_handler_set(void (*func)(void *data), const void *data);
1271 EAPI int ecore_x_error_request_get(void);
1272 EAPI int ecore_x_error_code_get(void);
1273 EAPI Ecore_X_ID ecore_x_error_resource_id_get(void);
1275 EAPI void ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask);
1276 EAPI void ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask);
1278 EAPI Eina_Bool ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property, Ecore_X_Time time);
1279 EAPI Eina_Bool ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size);
1280 EAPI Eina_Bool ecore_x_selection_primary_clear(void);
1281 EAPI Eina_Bool ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size);
1282 EAPI Eina_Bool ecore_x_selection_secondary_clear(void);
1283 EAPI Eina_Bool ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size);
1284 EAPI Eina_Bool ecore_x_selection_xdnd_clear(void);
1285 EAPI Eina_Bool ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size);
1286 EAPI Eina_Bool ecore_x_selection_clipboard_clear(void);
1287 EAPI void ecore_x_selection_primary_request(Ecore_X_Window w, const char *target);
1288 EAPI void ecore_x_selection_secondary_request(Ecore_X_Window w, const char *target);
1289 EAPI void ecore_x_selection_xdnd_request(Ecore_X_Window w, const char *target);
1290 EAPI void ecore_x_selection_clipboard_request(Ecore_X_Window w, const char *target);
1291 EAPI Eina_Bool ecore_x_selection_convert(Ecore_X_Atom selection, Ecore_X_Atom target, void **data_ret, int *len, Ecore_X_Atom *targprop, int *targsize);
1292 EAPI void ecore_x_selection_converter_add(char *target, Eina_Bool (*func)(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *, int *));
1293 EAPI void ecore_x_selection_converter_atom_add(Ecore_X_Atom target, Eina_Bool (*func)(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *tprop, int *tsize));
1294 EAPI void ecore_x_selection_converter_del(char *target);
1295 EAPI void ecore_x_selection_converter_atom_del(Ecore_X_Atom target);
1296 EAPI void ecore_x_selection_parser_add(const char *target, void *(*func)(const char *target, void *data, int size, int format));
1297 EAPI void ecore_x_selection_parser_del(const char *target);
1298 EAPI void ecore_x_selection_owner_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Time tm);
1299 EAPI Ecore_X_Window ecore_x_selection_owner_get(Ecore_X_Atom atom);
1301 EAPI void ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on);
1302 EAPI int ecore_x_dnd_version_get(Ecore_X_Window win);
1303 EAPI Eina_Bool ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type);
1304 EAPI void ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, Eina_Bool on);
1305 EAPI void ecore_x_dnd_types_set(Ecore_X_Window win, const char **types, unsigned int num_types);
1306 EAPI void ecore_x_dnd_actions_set(Ecore_X_Window win, Ecore_X_Atom *actions, unsigned int num_actions);
1307 EAPI Eina_Bool ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size);
1308 EAPI Eina_Bool ecore_x_dnd_drop(void);
1309 EAPI void ecore_x_dnd_send_status(Eina_Bool will_accept, Eina_Bool suppress, Ecore_X_Rectangle rectangle, Ecore_X_Atom action);
1310 EAPI void ecore_x_dnd_send_finished(void);
1311 EAPI void ecore_x_dnd_source_action_set(Ecore_X_Atom action);
1312 EAPI Ecore_X_Atom ecore_x_dnd_source_action_get(void);
1313 EAPI void ecore_x_dnd_callback_pos_update_set(void (*cb)(void *, Ecore_X_Xdnd_Position *data), const void *data);
1315 EAPI Ecore_X_Window ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h);
1316 EAPI Ecore_X_Window ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h);
1317 EAPI int ecore_x_window_argb_get(Ecore_X_Window win);
1318 EAPI Ecore_X_Window ecore_x_window_manager_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1319 EAPI Ecore_X_Window ecore_x_window_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1320 EAPI Ecore_X_Window ecore_x_window_override_argb_new(Ecore_X_Window parent, int x, int y, int w, int h);
1321 EAPI Ecore_X_Window ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h);
1322 EAPI void ecore_x_window_configure(Ecore_X_Window win, Ecore_X_Window_Configure_Mask mask, int x, int y, int w, int h, int border_width, Ecore_X_Window sibling, int stack_mode);
1323 EAPI void ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c);
1324 EAPI void ecore_x_window_free(Ecore_X_Window win);
1325 EAPI void ecore_x_window_ignore_set(Ecore_X_Window win, int ignore);
1326 EAPI Ecore_X_Window *ecore_x_window_ignore_list(int *num);
1328 EAPI void ecore_x_window_delete_request_send(Ecore_X_Window win);
1329 EAPI void ecore_x_window_show(Ecore_X_Window win);
1330 EAPI void ecore_x_window_hide(Ecore_X_Window win);
1331 EAPI void ecore_x_window_move(Ecore_X_Window win, int x, int y);
1332 EAPI void ecore_x_window_resize(Ecore_X_Window win, int w, int h);
1333 EAPI void ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h);
1334 EAPI void ecore_x_window_focus(Ecore_X_Window win);
1335 EAPI void ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t);
1336 EAPI Ecore_X_Window ecore_x_window_focus_get(void);
1337 EAPI void ecore_x_window_raise(Ecore_X_Window win);
1338 EAPI void ecore_x_window_lower(Ecore_X_Window win);
1339 EAPI void ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y);
1340 EAPI void ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h);
1341 EAPI void ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1342 EAPI int ecore_x_window_border_width_get(Ecore_X_Window win);
1343 EAPI void ecore_x_window_border_width_set(Ecore_X_Window win, int width);
1344 EAPI int ecore_x_window_depth_get(Ecore_X_Window win);
1345 EAPI void ecore_x_window_cursor_show(Ecore_X_Window win, Eina_Bool show);
1346 EAPI void ecore_x_window_defaults_set(Ecore_X_Window win);
1347 EAPI int ecore_x_window_visible_get(Ecore_X_Window win);
1348 EAPI Ecore_X_Window ecore_x_window_shadow_tree_at_xy_with_skip_get(Ecore_X_Window base, int x, int y, Ecore_X_Window *skip, int skip_num);
1349 EAPI Ecore_X_Window ecore_x_window_shadow_parent_get(Ecore_X_Window root, Ecore_X_Window win);
1350 EAPI void ecore_x_window_shadow_tree_flush(void);
1351 EAPI Ecore_X_Window ecore_x_window_root_get(Ecore_X_Window win);
1352 EAPI Ecore_X_Window ecore_x_window_at_xy_get(int x, int y);
1353 EAPI Ecore_X_Window ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_num);
1354 EAPI Ecore_X_Window ecore_x_window_at_xy_begin_get(Ecore_X_Window begin, int x, int y);
1355 EAPI Ecore_X_Window ecore_x_window_parent_get(Ecore_X_Window win);
1357 EAPI void ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r, unsigned short g, unsigned short b);
1358 EAPI void ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav);
1359 EAPI void ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav);
1360 EAPI void ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap);
1361 EAPI void ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h);
1362 EAPI void ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h);
1363 EAPI void ecore_x_window_override_set(Ecore_X_Window win, Eina_Bool override);
1365 EAPI void ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int *val, unsigned int num);
1366 EAPI int ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int *val, unsigned int len);
1367 EAPI int ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int **plst);
1369 EAPI void ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID *lst, unsigned int num);
1370 EAPI int ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID *lst, unsigned int len);
1371 EAPI int ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID **plst);
1372 EAPI void ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom type, Ecore_X_ID item, int op);
1373 EAPI void ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom *val, unsigned int num);
1374 EAPI int ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom *val, unsigned int len);
1375 EAPI int ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom **plst);
1376 EAPI void ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom item, int op);
1377 EAPI void ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window *val, unsigned int num);
1378 EAPI int ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window *val, unsigned int len);
1379 EAPI int ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Window **plst);
1381 EAPI Ecore_X_Atom ecore_x_window_prop_any_type(void);
1382 EAPI void ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Atom format, int size, void *data, int number);
1383 EAPI int ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, unsigned char **data, int *num);
1384 EAPI void ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property);
1385 EAPI Ecore_X_Atom *ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret);
1386 EAPI void ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str);
1387 EAPI char *ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type);
1388 EAPI Eina_Bool ecore_x_window_prop_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol);
1389 EAPI Ecore_X_WM_Protocol *ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret);
1391 EAPI void ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask);
1392 EAPI void ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win);
1393 EAPI void ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1394 EAPI void ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h);
1395 EAPI void ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1396 EAPI void ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h);
1397 EAPI void ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1398 EAPI void ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h);
1399 EAPI void ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, int x, int y, int w, int h);
1400 EAPI void ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, int x, int y, int w, int h);
1401 EAPI void ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1402 EAPI void ecore_x_window_shape_input_window_set(Ecore_X_Window win, Ecore_X_Window shape_win);
1403 EAPI void ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win);
1404 EAPI void ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1405 EAPI void ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y);
1406 EAPI void ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h);
1407 EAPI void ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h);
1408 EAPI void ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h);
1409 EAPI void ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1410 EAPI void ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num);
1411 EAPI Ecore_X_Rectangle *ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret);
1412 EAPI Ecore_X_Rectangle *ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, int *num_ret);
1413 EAPI void ecore_x_window_shape_events_select(Ecore_X_Window win, Eina_Bool on);
1414 EAPI void ecore_x_window_shape_input_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask);
1416 EAPI Ecore_X_Pixmap ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep);
1417 EAPI void ecore_x_pixmap_free(Ecore_X_Pixmap pmap);
1418 EAPI void ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest, Ecore_X_GC gc, int sx, int sy, int w, int h, int dx, int dy);
1419 EAPI void ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h);
1420 EAPI int ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap);
1422 EAPI Ecore_X_GC ecore_x_gc_new(Ecore_X_Drawable draw, Ecore_X_GC_Value_Mask value_mask, const unsigned int *value_list);
1423 EAPI void ecore_x_gc_free(Ecore_X_GC gc);
1424 EAPI void ecore_x_gc_foreground_set(Ecore_X_GC gc, unsigned long foreground);
1425 EAPI void ecore_x_gc_background_set(Ecore_X_GC gc, unsigned long background);
1427 EAPI Eina_Bool ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Event_Mask mask, long d0, long d1, long d2, long d3, long d4);
1428 EAPI Eina_Bool ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type, const void *data, int len);
1429 EAPI Eina_Bool ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y);
1430 EAPI Eina_Bool ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b);
1431 EAPI Eina_Bool ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b);
1432 EAPI Eina_Bool ecore_x_mouse_in_send(Ecore_X_Window win, int x, int y);
1433 EAPI Eina_Bool ecore_x_mouse_out_send(Ecore_X_Window win, int x, int y);
1435 EAPI void ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h);
1436 EAPI int ecore_x_drawable_border_width_get(Ecore_X_Drawable d);
1437 EAPI int ecore_x_drawable_depth_get(Ecore_X_Drawable d);
1438 EAPI void ecore_x_drawable_rectangle_fill(Ecore_X_Drawable d, Ecore_X_GC gc, int x, int y, int width, int height);
1440 EAPI Eina_Bool ecore_x_cursor_color_supported_get(void);
1441 EAPI Ecore_X_Cursor ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y);
1442 EAPI void ecore_x_cursor_free(Ecore_X_Cursor c);
1443 EAPI Ecore_X_Cursor ecore_x_cursor_shape_get(int shape);
1444 EAPI void ecore_x_cursor_size_set(int size);
1445 EAPI int ecore_x_cursor_size_get(void);
1447 /* FIXME: these funcs need categorising */
1448 EAPI Ecore_X_Window *ecore_x_window_root_list(int *num_ret);
1449 EAPI Ecore_X_Window ecore_x_window_root_first_get(void);
1450 EAPI Eina_Bool ecore_x_window_manage(Ecore_X_Window win);
1451 EAPI void ecore_x_window_container_manage(Ecore_X_Window win);
1452 EAPI void ecore_x_window_client_manage(Ecore_X_Window win);
1453 EAPI void ecore_x_window_sniff(Ecore_X_Window win);
1454 EAPI void ecore_x_window_client_sniff(Ecore_X_Window win);
1456 EAPI Ecore_X_Atom ecore_x_atom_get(const char *name);
1457 EAPI void ecore_x_atoms_get(const char **names, int num, Ecore_X_Atom *atoms);
1458 EAPI char *ecore_x_atom_name_get(Ecore_X_Atom atom);
1460 EAPI void ecore_x_icccm_init(void);
1461 EAPI void ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state);
1462 EAPI Ecore_X_Window_State_Hint ecore_x_icccm_state_get(Ecore_X_Window win);
1463 EAPI void ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t);
1464 EAPI void ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t);
1465 EAPI void ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t);
1466 EAPI void ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h);
1467 EAPI void ecore_x_icccm_hints_set(Ecore_X_Window win, Eina_Bool accepts_focus, Ecore_X_Window_State_Hint initial_state, Ecore_X_Pixmap icon_pixmap, Ecore_X_Pixmap icon_mask, Ecore_X_Window icon_window, Ecore_X_Window window_group, Eina_Bool is_urgent);
1468 EAPI Eina_Bool ecore_x_icccm_hints_get(Ecore_X_Window win, Eina_Bool *accepts_focus, Ecore_X_Window_State_Hint *initial_state, Ecore_X_Pixmap *icon_pixmap, Ecore_X_Pixmap *icon_mask, Ecore_X_Window *icon_window, Ecore_X_Window *window_group, Eina_Bool *is_urgent);
1469 EAPI void ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win, Eina_Bool request_pos, Ecore_X_Gravity gravity, int min_w, int min_h, int max_w, int max_h, int base_w, int base_h, int step_x, int step_y, double min_aspect, double max_aspect);
1470 EAPI Eina_Bool ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win, Eina_Bool *request_pos, Ecore_X_Gravity *gravity, int *min_w, int *min_h, int *max_w, int *max_h, int *base_w, int *base_h, int *step_x, int *step_y, double *min_aspect, double *max_aspect);
1471 EAPI void ecore_x_icccm_title_set(Ecore_X_Window win, const char *t);
1472 EAPI char *ecore_x_icccm_title_get(Ecore_X_Window win);
1473 EAPI void ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win, Ecore_X_Atom *protos, int num);
1474 EAPI void ecore_x_icccm_protocol_set(Ecore_X_Window win, Ecore_X_WM_Protocol protocol, Eina_Bool on);
1475 EAPI Eina_Bool ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol);
1476 EAPI void ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c);
1477 EAPI void ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c);
1478 EAPI char *ecore_x_icccm_client_machine_get(Ecore_X_Window win);
1479 EAPI void ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv);
1480 EAPI void ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv);
1481 EAPI char *ecore_x_icccm_icon_name_get(Ecore_X_Window win);
1482 EAPI void ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t);
1483 EAPI void ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin);
1484 EAPI void ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin);
1485 EAPI void ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin);
1486 EAPI void ecore_x_icccm_transient_for_unset(Ecore_X_Window win);
1487 EAPI Ecore_X_Window ecore_x_icccm_transient_for_get(Ecore_X_Window win);
1488 EAPI void ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role);
1489 EAPI char *ecore_x_icccm_window_role_get(Ecore_X_Window win);
1490 EAPI void ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l);
1491 EAPI Ecore_X_Window ecore_x_icccm_client_leader_get(Ecore_X_Window win);
1492 EAPI void ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root);
1494 typedef enum _Ecore_X_MWM_Hint_Func
1496 ECORE_X_MWM_HINT_FUNC_ALL = (1 << 0),
1497 ECORE_X_MWM_HINT_FUNC_RESIZE = (1 << 1),
1498 ECORE_X_MWM_HINT_FUNC_MOVE = (1 << 2),
1499 ECORE_X_MWM_HINT_FUNC_MINIMIZE = (1 << 3),
1500 ECORE_X_MWM_HINT_FUNC_MAXIMIZE = (1 << 4),
1501 ECORE_X_MWM_HINT_FUNC_CLOSE = (1 << 5)
1502 } Ecore_X_MWM_Hint_Func;
1504 typedef enum _Ecore_X_MWM_Hint_Decor
1506 ECORE_X_MWM_HINT_DECOR_ALL = (1 << 0),
1507 ECORE_X_MWM_HINT_DECOR_BORDER = (1 << 1),
1508 ECORE_X_MWM_HINT_DECOR_RESIZEH = (1 << 2),
1509 ECORE_X_MWM_HINT_DECOR_TITLE = (1 << 3),
1510 ECORE_X_MWM_HINT_DECOR_MENU = (1 << 4),
1511 ECORE_X_MWM_HINT_DECOR_MINIMIZE = (1 << 5),
1512 ECORE_X_MWM_HINT_DECOR_MAXIMIZE = (1 << 6)
1513 } Ecore_X_MWM_Hint_Decor;
1515 typedef enum _Ecore_X_MWM_Hint_Input
1517 ECORE_X_MWM_HINT_INPUT_MODELESS = 0,
1518 ECORE_X_MWM_HINT_INPUT_PRIMARY_APPLICATION_MODAL = 1,
1519 ECORE_X_MWM_HINT_INPUT_SYSTEM_MODAL = 2,
1520 ECORE_X_MWM_HINT_INPUT_FULL_APPLICATION_MODAL = 3
1521 } Ecore_X_MWM_Hint_Input;
1523 EAPI Eina_Bool ecore_x_mwm_hints_get(Ecore_X_Window win, Ecore_X_MWM_Hint_Func *fhint, Ecore_X_MWM_Hint_Decor *dhint, Ecore_X_MWM_Hint_Input *ihint);
1524 EAPI void ecore_x_mwm_borderless_set(Ecore_X_Window win, Eina_Bool borderless);
1527 EAPI void ecore_x_netwm_init(void);
1528 EAPI void ecore_x_netwm_shutdown(void);
1529 EAPI void ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check, const char *wm_name);
1530 EAPI void ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num);
1531 EAPI Eina_Bool ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *num);
1532 EAPI void ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks);
1533 EAPI void ecore_x_netwm_desk_roots_set(Ecore_X_Window root, Ecore_X_Window *vroots, unsigned int n_desks);
1534 EAPI void ecore_x_netwm_desk_names_set(Ecore_X_Window root, const char **names, unsigned int n_desks);
1535 EAPI void ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width, unsigned int height);
1536 EAPI void ecore_x_netwm_desk_workareas_set(Ecore_X_Window root, unsigned int *areas, unsigned int n_desks);
1537 EAPI unsigned int *ecore_x_netwm_desk_workareas_get(Ecore_X_Window root, unsigned int *n_desks);
1538 EAPI void ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk);
1539 EAPI void ecore_x_netwm_desk_viewports_set(Ecore_X_Window root, unsigned int *origins, unsigned int n_desks);
1540 EAPI void ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation, int columns, int rows, int starting_corner);
1541 EAPI void ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, Eina_Bool on);
1542 EAPI void ecore_x_netwm_client_list_set(Ecore_X_Window root, Ecore_X_Window *p_clients, unsigned int n_clients);
1543 EAPI void ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root, Ecore_X_Window *p_clients, unsigned int n_clients);
1544 EAPI void ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win);
1545 EAPI void ecore_x_netwm_client_active_request(Ecore_X_Window root, Ecore_X_Window win, int type, Ecore_X_Window current_win);
1546 EAPI void ecore_x_netwm_name_set(Ecore_X_Window win, const char *name);
1547 EAPI int ecore_x_netwm_name_get(Ecore_X_Window win, char **name);
1548 EAPI void ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id);
1549 EAPI int ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id);
1550 EAPI void ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name);
1551 EAPI int ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name);
1552 EAPI void ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name);
1553 EAPI int ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name);
1554 EAPI void ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name);
1555 EAPI int ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name);
1556 EAPI void ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk);
1557 EAPI Eina_Bool ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk);
1558 EAPI void ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right, int top, int bottom);
1559 EAPI Eina_Bool ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right, int *top, int *bottom);
1560 EAPI void ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right, int top, int bottom, int left_start_y, int left_end_y, int right_start_y, int right_end_y, int top_start_x, int top_end_x, int bottom_start_x, int bottom_end_x);
1561 EAPI Eina_Bool ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right, int *top, int *bottom, int *left_start_y, int *left_end_y, int *right_start_y, int *right_end_y, int *top_start_x, int *top_end_x, int *bottom_start_x, int *bottom_end_x);
1563 EAPI void ecore_x_netwm_icons_set(Ecore_X_Window win, Ecore_X_Icon *icon, int num);
1565 EAPI Eina_Bool ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num);
1566 EAPI void ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int height);
1567 EAPI Eina_Bool ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width, int *height);
1568 EAPI void ecore_x_netwm_pid_set(Ecore_X_Window win, int pid);
1569 EAPI Eina_Bool ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid);
1570 EAPI void ecore_x_netwm_handled_icons_set(Ecore_X_Window win);
1571 EAPI Eina_Bool ecore_x_netwm_handled_icons_get(Ecore_X_Window win);
1572 EAPI void ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time);
1573 EAPI Eina_Bool ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time);
1574 EAPI void ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state, unsigned int num);
1575 EAPI Eina_Bool ecore_x_netwm_window_state_get(Ecore_X_Window win, Ecore_X_Window_State **state, unsigned int *num);
1576 EAPI void ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type);
1577 EAPI Eina_Bool ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type);
1578 EAPI int ecore_x_netwm_window_types_get(Ecore_X_Window win, Ecore_X_Window_Type **types);
1579 EAPI Eina_Bool ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action);
1580 EAPI void ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action *action, unsigned int num);
1581 EAPI Eina_Bool ecore_x_netwm_allowed_action_get(Ecore_X_Window win, Ecore_X_Action **action, unsigned int *num);
1582 EAPI void ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity);
1583 EAPI Eina_Bool ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity);
1584 EAPI void ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
1585 EAPI Eina_Bool ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb);
1586 EAPI Eina_Bool ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter);
1587 EAPI void ecore_x_netwm_ping_send(Ecore_X_Window win);
1588 EAPI void ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial);
1589 EAPI void ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root, Ecore_X_Window_State s1, Ecore_X_Window_State s2, Eina_Bool set);
1590 EAPI void ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsigned int desktop);
1592 EAPI void ecore_x_e_init(void);
1593 EAPI void ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
1594 EAPI void ecore_x_e_virtual_keyboard_set(Ecore_X_Window win, unsigned int is_keyboard);
1595 EAPI Eina_Bool ecore_x_e_virtual_keyboard_get(Ecore_X_Window win);
1596 EAPI void ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state);
1597 EAPI Ecore_X_Virtual_Keyboard_State ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win);
1598 EAPI void ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state);
1600 /* Illume functions */
1601 EAPI void ecore_x_e_illume_zone_set(Ecore_X_Window win, Ecore_X_Window zone);
1602 EAPI Ecore_X_Window ecore_x_e_illume_zone_get(Ecore_X_Window win);
1603 EAPI void ecore_x_e_illume_zone_list_set(Ecore_X_Window win, Ecore_X_Window *zones, unsigned int n_zones);
1604 EAPI void ecore_x_e_illume_conformant_set(Ecore_X_Window win, unsigned int is_conformant);
1605 EAPI Eina_Bool ecore_x_e_illume_conformant_get(Ecore_X_Window win);
1606 EAPI void ecore_x_e_illume_mode_set(Ecore_X_Window win, Ecore_X_Illume_Mode mode);
1607 EAPI Ecore_X_Illume_Mode ecore_x_e_illume_mode_get(Ecore_X_Window win);
1608 EAPI void ecore_x_e_illume_mode_send(Ecore_X_Window win, Ecore_X_Illume_Mode mode);
1609 EAPI void ecore_x_e_illume_focus_back_send(Ecore_X_Window win);
1610 EAPI void ecore_x_e_illume_focus_forward_send(Ecore_X_Window win);
1611 EAPI void ecore_x_e_illume_focus_home_send(Ecore_X_Window win);
1612 EAPI void ecore_x_e_illume_close_send(Ecore_X_Window win);
1613 EAPI void ecore_x_e_illume_home_new_send(Ecore_X_Window win);
1614 EAPI void ecore_x_e_illume_home_del_send(Ecore_X_Window win);
1615 EAPI void ecore_x_e_illume_access_action_next_send(Ecore_X_Window win);
1616 EAPI void ecore_x_e_illume_access_action_prev_send(Ecore_X_Window win);
1617 EAPI void ecore_x_e_illume_access_action_activate_send(Ecore_X_Window win);
1618 EAPI void ecore_x_e_illume_access_action_read_send(Ecore_X_Window win);
1619 EAPI void ecore_x_e_illume_access_action_read_next_send(Ecore_X_Window win);
1620 EAPI void ecore_x_e_illume_access_action_read_prev_send(Ecore_X_Window win);
1622 EAPI void ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag);
1623 EAPI Eina_Bool ecore_x_e_illume_drag_get(Ecore_X_Window win);
1624 EAPI void ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked);
1625 EAPI Eina_Bool ecore_x_e_illume_drag_locked_get(Ecore_X_Window win);
1626 EAPI void ecore_x_e_illume_drag_start_send(Ecore_X_Window win);
1627 EAPI void ecore_x_e_illume_drag_end_send(Ecore_X_Window win);
1628 EAPI void ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1629 EAPI Eina_Bool ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1630 EAPI void ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1631 EAPI Eina_Bool ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1632 EAPI void ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1633 EAPI Eina_Bool ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1634 EAPI void ecore_x_e_illume_quickpanel_set(Ecore_X_Window win, unsigned int is_quickpanel);
1635 EAPI Eina_Bool ecore_x_e_illume_quickpanel_get(Ecore_X_Window win);
1636 EAPI void ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win, Ecore_X_Illume_Quickpanel_State state);
1637 EAPI Ecore_X_Illume_Quickpanel_State ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win);
1638 EAPI void ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win, Ecore_X_Illume_Quickpanel_State state);
1639 EAPI void ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win);
1640 EAPI void ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win, unsigned int priority);
1641 EAPI int ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win);
1642 EAPI void ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win, unsigned int priority);
1643 EAPI int ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win);
1644 EAPI void ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win, unsigned int zone);
1645 EAPI int ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win);
1646 EAPI void ecore_x_e_illume_quickpanel_zone_request_send(Ecore_X_Window win);
1647 EAPI void ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win);
1649 EAPI void ecore_x_e_illume_clipboard_state_set(Ecore_X_Window win, Ecore_X_Illume_Clipboard_State state);
1651 EAPI Ecore_X_Illume_Clipboard_State ecore_x_e_illume_clipboard_state_get(Ecore_X_Window win);
1653 EAPI void ecore_x_e_illume_clipboard_geometry_set(Ecore_X_Window win, int x, int y, int w, int h);
1654 EAPI Eina_Bool ecore_x_e_illume_clipboard_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h);
1655 EAPI void ecore_x_e_comp_sync_counter_set(Ecore_X_Window win, Ecore_X_Sync_Counter counter);
1656 EAPI Ecore_X_Sync_Counter ecore_x_e_comp_sync_counter_get(Ecore_X_Window win);
1657 EAPI void ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root, Ecore_X_Window win);
1658 EAPI void ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root, Ecore_X_Window win, int w, int h);
1659 EAPI void ecore_x_e_comp_sync_supported_set(Ecore_X_Window root, Eina_Bool enabled);
1660 EAPI Eina_Bool ecore_x_e_comp_sync_supported_get(Ecore_X_Window root);
1661 EAPI void ecore_x_e_comp_sync_begin_send(Ecore_X_Window win);
1662 EAPI void ecore_x_e_comp_sync_end_send(Ecore_X_Window win);
1663 EAPI void ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win);
1665 EAPI void ecore_x_e_comp_flush_send(Ecore_X_Window win);
1666 EAPI void ecore_x_e_comp_dump_send(Ecore_X_Window win);
1667 EAPI void ecore_x_e_comp_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pixmap);
1668 EAPI Ecore_X_Pixmap ecore_x_e_comp_pixmap_get(Ecore_X_Window win);
1670 EAPI Ecore_X_Sync_Alarm ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter);
1671 EAPI Eina_Bool ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm);
1672 EAPI Eina_Bool ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val);
1673 EAPI Ecore_X_Sync_Counter ecore_x_sync_counter_new(int val);
1674 EAPI void ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter);
1675 EAPI void ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter, int by);
1676 EAPI void ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter, int val);
1678 EAPI void ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter, int val);
1679 EAPI void ecore_x_sync_counter_2_set(Ecore_X_Sync_Counter counter, int val_hi, unsigned int val_lo);
1680 EAPI Eina_Bool ecore_x_sync_counter_2_query(Ecore_X_Sync_Counter counter, int *val_hi, unsigned int *val_lo);
1682 EAPI int ecore_x_xinerama_screen_count_get(void);
1683 EAPI Eina_Bool ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h);
1685 EAPI Eina_Bool ecore_x_screensaver_event_available_get(void);
1686 EAPI int ecore_x_screensaver_idle_time_get(void);
1687 EAPI void ecore_x_screensaver_set(int timeout, int interval, int prefer_blanking, int allow_exposures);
1688 EAPI void ecore_x_screensaver_timeout_set(int timeout);
1689 EAPI int ecore_x_screensaver_timeout_get(void);
1690 EAPI void ecore_x_screensaver_blank_set(int timeout);
1691 EAPI int ecore_x_screensaver_blank_get(void);
1692 EAPI void ecore_x_screensaver_expose_set(int timeout);
1693 EAPI int ecore_x_screensaver_expose_get(void);
1694 EAPI void ecore_x_screensaver_interval_set(int timeout);
1695 EAPI int ecore_x_screensaver_interval_get(void);
1696 EAPI void ecore_x_screensaver_event_listen_set(Eina_Bool on);
1698 /* FIXME: these funcs need categorising */
1700 typedef struct _Ecore_X_Window_Attributes
1702 Ecore_X_Window root;
1706 Eina_Bool visible : 1;
1707 Eina_Bool viewable : 1;
1708 Eina_Bool override : 1;
1709 Eina_Bool input_only : 1;
1710 Eina_Bool save_under : 1;
1713 Ecore_X_Event_Mask mine;
1714 Ecore_X_Event_Mask all;
1715 Ecore_X_Event_Mask no_propagate;
1717 Ecore_X_Gravity window_gravity;
1718 Ecore_X_Gravity pixel_gravity;
1719 Ecore_X_Colormap colormap;
1720 Ecore_X_Visual visual;
1722 * int map_installed;
1725 } Ecore_X_Window_Attributes;
1727 EAPI Eina_Bool ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att_ret);
1728 EAPI void ecore_x_window_save_set_add(Ecore_X_Window win);
1729 EAPI void ecore_x_window_save_set_del(Ecore_X_Window win);
1730 EAPI Ecore_X_Window *ecore_x_window_children_get(Ecore_X_Window win, int *num);
1732 EAPI Eina_Bool ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold);
1733 EAPI Eina_Bool ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold);
1734 EAPI Eina_Bool ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
1735 EAPI Eina_Bool ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
1736 EAPI Eina_Bool ecore_x_pointer_grab(Ecore_X_Window win);
1737 EAPI Eina_Bool ecore_x_pointer_confine_grab(Ecore_X_Window win);
1738 EAPI void ecore_x_pointer_ungrab(void);
1739 EAPI Eina_Bool ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
1740 EAPI Eina_Bool ecore_x_keyboard_grab(Ecore_X_Window win);
1741 EAPI void ecore_x_keyboard_ungrab(void);
1742 EAPI void ecore_x_grab(void);
1743 EAPI void ecore_x_ungrab(void);
1744 EAPI void ecore_x_passive_grab_replay_func_set(Eina_Bool (*func)(void *data, int event_type, void *event), void *data);
1745 EAPI void ecore_x_window_button_grab(Ecore_X_Window win, int button, Ecore_X_Event_Mask event_mask, int mod, int any_mod);
1746 EAPI void ecore_x_window_button_ungrab(Ecore_X_Window win, int button, int mod, int any_mod);
1747 EAPI void ecore_x_window_key_grab(Ecore_X_Window win, const char *key, int mod, int any_mod);
1748 EAPI void ecore_x_window_key_ungrab(Ecore_X_Window win, const char *key, int mod, int any_mod);
1750 EAPI void ecore_x_focus_reset(void);
1751 EAPI void ecore_x_events_allow_all(void);
1752 EAPI void ecore_x_pointer_last_xy_get(int *x, int *y);
1753 EAPI void ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y);
1755 /* ecore_x_region.c */
1756 EAPI Ecore_X_XRegion *ecore_x_xregion_new(void);
1757 EAPI void ecore_x_xregion_free(Ecore_X_XRegion *region);
1758 EAPI Eina_Bool ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc);
1759 EAPI void ecore_x_xregion_translate(Ecore_X_XRegion *region, int x, int y);
1760 EAPI Eina_Bool ecore_x_xregion_intersect(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1761 EAPI Eina_Bool ecore_x_xregion_union(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1762 EAPI Eina_Bool ecore_x_xregion_union_rect(Ecore_X_XRegion *dst, Ecore_X_XRegion *src, Ecore_X_Rectangle *rect);
1763 EAPI Eina_Bool ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1764 EAPI Eina_Bool ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
1765 EAPI Eina_Bool ecore_x_xregion_is_equal(Ecore_X_XRegion *r1, Ecore_X_XRegion *r2);
1766 EAPI Eina_Bool ecore_x_xregion_point_contain(Ecore_X_XRegion *region, int x, int y);
1767 EAPI Eina_Bool ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, Ecore_X_Rectangle *rect);
1769 /* ecore_x_randr.c */
1771 /* The usage of 'Ecore_X_Randr_None' or 'Ecore_X_Randr_Unset'
1772 * depends on the context. In most cases 'Ecore_X_Randr_Unset'
1773 * can be used, but in some cases -1 is a special value to
1774 * functions, thus 'Ecore_X_Randr_None' (=0) must be used.
1777 typedef short Ecore_X_Randr_Refresh_Rate;
1778 typedef int Ecore_X_Randr_Crtc_Gamma;
1779 typedef int Ecore_X_Randr_Signal_Format;
1780 typedef int Ecore_X_Randr_Signal_Property;
1781 typedef int Ecore_X_Randr_Connector_Type;
1783 typedef struct _Ecore_X_Randr_Mode_Info
1787 unsigned int height;
1788 unsigned long dotClock;
1789 unsigned int hSyncStart;
1790 unsigned int hSyncEnd;
1791 unsigned int hTotal;
1793 unsigned int vSyncStart;
1794 unsigned int vSyncEnd;
1795 unsigned int vTotal;
1797 unsigned int nameLength;
1798 unsigned long modeFlags;
1799 } Ecore_X_Randr_Mode_Info;
1801 EAPI int ecore_x_randr_version_get(void);
1802 EAPI Eina_Bool ecore_x_randr_query(void);
1804 /* ecore_x_randr_11.c */
1805 EAPI Ecore_X_Randr_Orientation ecore_x_randr_screen_primary_output_orientations_get(Ecore_X_Window root);
1806 EAPI Ecore_X_Randr_Orientation ecore_x_randr_screen_primary_output_orientation_get(Ecore_X_Window root);
1807 EAPI Eina_Bool ecore_x_randr_screen_primary_output_orientation_set(Ecore_X_Window root, Ecore_X_Randr_Orientation orientation);
1808 EAPI Ecore_X_Randr_Screen_Size_MM *ecore_x_randr_screen_primary_output_sizes_get(Ecore_X_Window root, int *num);
1811 * @brief get the current set size of a given screen's primary output
1812 * @param root window which's primary output will be queried
1813 * @param w the current size's width
1814 * @param h the current size's height
1815 * @param w_mm the current size's width in mm
1816 * @param h_mm the current size's height in mm
1817 * @param size_index of current set size to be used with ecore_x_randr_primary_output_size_set()
1819 EAPI void ecore_x_randr_screen_primary_output_current_size_get(Ecore_X_Window root, int *w, int *h, int *w_mm, int *h_mm, int *size_index);
1820 EAPI Eina_Bool ecore_x_randr_screen_primary_output_size_set(Ecore_X_Window root, int size_index);
1821 EAPI Ecore_X_Randr_Refresh_Rate ecore_x_randr_screen_primary_output_current_refresh_rate_get(Ecore_X_Window root);
1822 EAPI Ecore_X_Randr_Refresh_Rate *ecore_x_randr_screen_primary_output_refresh_rates_get(Ecore_X_Window root, int size_index, int *num);
1823 EAPI Eina_Bool ecore_x_randr_screen_primary_output_refresh_rate_set(Ecore_X_Window root, int size_index, Ecore_X_Randr_Refresh_Rate rate);
1825 /* ecore_x_randr_12.c */
1826 EAPI void ecore_x_randr_events_select(Ecore_X_Window win, Eina_Bool on);
1828 EAPI void ecore_x_randr_screen_current_size_get(Ecore_X_Window root, int *w, int *h, int *w_mm, int *h_mm);
1829 EAPI void ecore_x_randr_screen_size_range_get(Ecore_X_Window root, int *wmin, int *hmin, int *wmax, int *hmax);
1830 EAPI void ecore_x_randr_screen_reset(Ecore_X_Window root);
1831 EAPI Eina_Bool ecore_x_randr_screen_current_size_set(Ecore_X_Window root, int w, int h, int w_mm, int h_mm);
1832 EAPI Ecore_X_Randr_Mode_Info **ecore_x_randr_modes_info_get(Ecore_X_Window root, int *num);
1833 EAPI Ecore_X_Randr_Mode ecore_x_randr_mode_info_add(Ecore_X_Window root, Ecore_X_Randr_Mode_Info *mode_info);
1834 EAPI void ecore_x_randr_mode_del(Ecore_X_Randr_Mode mode);
1835 EAPI Ecore_X_Randr_Mode_Info *ecore_x_randr_mode_info_get(Ecore_X_Window root, Ecore_X_Randr_Mode mode);
1836 EAPI void ecore_x_randr_mode_info_free(Ecore_X_Randr_Mode_Info *mode_info);
1837 EAPI Ecore_X_Randr_Crtc *ecore_x_randr_crtcs_get(Ecore_X_Window root, int *num);
1838 EAPI Ecore_X_Randr_Output *ecore_x_randr_outputs_get(Ecore_X_Window root, int *num);
1839 EAPI Ecore_X_Randr_Output *ecore_x_randr_window_outputs_get(Ecore_X_Window window, int *num);
1840 EAPI Ecore_X_Randr_Output *ecore_x_randr_current_output_get(Ecore_X_Window window, int *num);
1841 EAPI Ecore_X_Randr_Crtc *ecore_x_randr_window_crtcs_get(Ecore_X_Window window, int *num);
1842 EAPI Ecore_X_Randr_Crtc *ecore_x_randr_current_crtc_get(Ecore_X_Window window, int *num);
1843 EAPI Ecore_X_Randr_Output *ecore_x_randr_crtc_outputs_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *num);
1844 EAPI Ecore_X_Randr_Output *ecore_x_randr_crtc_possible_outputs_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *num);
1845 EAPI void ecore_x_randr_crtc_geometry_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h);
1846 EAPI void ecore_x_randr_crtc_pos_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y);
1847 EAPI Eina_Bool ecore_x_randr_crtc_pos_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int x, int y);
1848 EAPI Ecore_X_Randr_Mode ecore_x_randr_crtc_mode_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1849 EAPI Eina_Bool ecore_x_randr_crtc_mode_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Output *outputs, int noutputs, Ecore_X_Randr_Mode mode);
1850 EAPI void ecore_x_randr_crtc_size_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *w, int *h);
1851 EAPI Ecore_X_Randr_Refresh_Rate ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Mode mode);
1852 EAPI Ecore_X_Randr_Orientation ecore_x_randr_crtc_orientations_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1853 EAPI Ecore_X_Randr_Orientation ecore_x_randr_crtc_orientation_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
1854 EAPI Eina_Bool ecore_x_randr_crtc_orientation_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, const Ecore_X_Randr_Orientation orientation);
1855 EAPI Eina_Bool ecore_x_randr_crtc_clone_set(Ecore_X_Window root, Ecore_X_Randr_Crtc original, Ecore_X_Randr_Crtc clone);
1856 EAPI Eina_Bool ecore_x_randr_crtc_settings_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, Ecore_X_Randr_Output *outputs, int noutputs, int x, int y, Ecore_X_Randr_Mode mode, Ecore_X_Randr_Orientation orientation);
1857 EAPI Eina_Bool ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc_r1, Ecore_X_Randr_Crtc crtc_r2, Ecore_X_Randr_Output_Policy policy, Ecore_X_Randr_Relative_Alignment alignment);
1858 EAPI Eina_Bool ecore_x_randr_output_mode_add(Ecore_X_Randr_Output output, Ecore_X_Randr_Mode mode);
1859 EAPI void ecore_x_randr_output_mode_del(Ecore_X_Randr_Output output, Ecore_X_Randr_Mode mode);
1860 EAPI Ecore_X_Randr_Mode *ecore_x_randr_output_modes_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num, int *npreferred);
1861 EAPI Ecore_X_Randr_Output *ecore_x_randr_output_clones_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
1862 EAPI Ecore_X_Randr_Crtc *ecore_x_randr_output_possible_crtcs_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
1863 EAPI Ecore_X_Randr_Crtc ecore_x_randr_output_crtc_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
1864 EAPI char *ecore_x_randr_output_name_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *len);
1865 EAPI int ecore_x_randr_crtc_gamma_ramp_size_get(Ecore_X_Randr_Crtc crtc);
1866 EAPI Ecore_X_Randr_Crtc_Gamma **ecore_x_randr_crtc_gamma_ramps_get(Ecore_X_Randr_Crtc crtc);
1867 EAPI Eina_Bool ecore_x_randr_crtc_gamma_ramps_set(Ecore_X_Randr_Crtc crtc, const Ecore_X_Randr_Crtc_Gamma *red, const Ecore_X_Randr_Crtc_Gamma *green, const Ecore_X_Randr_Crtc_Gamma *blue);
1868 EAPI Eina_Bool ecore_x_randr_move_all_crtcs_but(Ecore_X_Window root, const Ecore_X_Randr_Crtc *not_moved, int nnot_moved, int dx, int dy);
1869 EAPI Eina_Bool ecore_x_randr_move_crtcs(Ecore_X_Window root, const Ecore_X_Randr_Crtc *crtcs, int ncrtc, int dx, int dy);
1870 EAPI void ecore_x_randr_mode_size_get(Ecore_X_Window root, Ecore_X_Randr_Mode mode, int *w, int *h);
1871 EAPI Ecore_X_Randr_Connection_Status ecore_x_randr_output_connection_status_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
1872 EAPI void ecore_x_randr_output_size_mm_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *w, int *h);
1873 EAPI Eina_Bool ecore_x_randr_output_crtc_set(Ecore_X_Window root, Ecore_X_Randr_Output output, const Ecore_X_Randr_Crtc crtc);
1875 /* ecore_x_randr_12_edid.c */
1878 * @brief Validates the header from raw EDID data.
1880 * @param edid The edid structure.
1881 * @param edid_length Length of the edid structure.
1882 * @return @c EINA_TRUE, if the header is valid, @c EINA_FALSE otherwise.
1884 EAPI Eina_Bool ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length);
1887 * @brief Checks whether a display's EDID has a valid checksum.
1889 * @param edid The edid structure.
1890 * @param edid_length Length of the edid structure.
1891 * @return @c EINA_TRUE, if the checksum is valid, @c EINA_FALSE otherwise.
1893 EAPI Eina_Bool ecore_x_randr_edid_info_has_valid_checksum(unsigned char *edid, unsigned long edid_length);
1896 * @brief Get the encoded version from raw EDID data.
1898 * The return value has the minor version in the lowest 8 bits, and the major
1899 * version in all the rest of the bits. i.e.
1901 * minor = (version & 0x000000ff);
1902 * major = (version & 0xffffff00) >> 8;
1904 * @param edid the edid structure
1905 * @param edid_length length of the edid structure
1906 * @return The encoded major and minor version encasuplated an int.
1908 EAPI int ecore_x_randr_edid_version_get(unsigned char *edid, unsigned long edid_length);
1911 * @brief Get the encoded manufacturer from raw EDID data.
1913 * @param edid the edid structure
1914 * @param edid_length length of the edid structure
1915 * @return The encoded manufacturer identifier.
1917 EAPI char *ecore_x_randr_edid_manufacturer_name_get(unsigned char *edid, unsigned long edid_length);
1920 * @brief Get the encoded name from raw EDID data.
1922 * @param edid the edid structure
1923 * @param edid_length length of the edid structure
1924 * @return The encoded manufacturer identifier.
1926 EAPI char *ecore_x_randr_edid_display_name_get(unsigned char *edid, unsigned long edid_length);
1929 * @brief Get the encoded ASCII from raw EDID data.
1931 * @param edid the edid structure
1932 * @param edid_length length of the edid structure
1933 * @return The encoded ASCII display identifier.
1935 EAPI char *ecore_x_randr_edid_display_ascii_get(unsigned char *edid, unsigned long edid_length);
1938 * @brief Get the encoded serial identifier from raw EDID data.
1940 * @param edid the edid structure
1941 * @param edid_length length of the edid structure
1942 * @return The encoded serial identifier.
1944 EAPI char *ecore_x_randr_edid_display_serial_get(unsigned char *edid, unsigned long edid_length);
1947 * @brief Get the encoded model number from raw EDID data.
1949 * The manufacturer ID table is necessary for a useful description.
1951 * @param edid the edid structure
1952 * @param edid_length length of the edid structure
1953 * @return The encoded model number.
1955 EAPI int ecore_x_randr_edid_model_get(unsigned char *edid, unsigned long edid_length);
1958 * @brief Get the manufacturer serial number from raw EDID data.
1960 * @param edid the edid structure
1961 * @param edid_length length of the edid structure
1962 * @return The encoded serial manufacturer serial number.
1964 EAPI int ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned long edid_length);
1967 * @brief Get the manufacturer model number from raw EDID data.
1969 * @param edid the edid structure
1970 * @param edid_length length of the edid structure
1971 * @return The manufacturer's model number.
1973 EAPI int ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid, unsigned long edid_length);
1976 * @brief Looks up the DPMS support from raw EDID data.
1978 * @param edid The edid structure.
1979 * @param edid_length Length of the edid structure.
1980 * @return @c EINA_TRUE, if DPMS is supported in some way, @c EINA_FALSE
1983 EAPI Eina_Bool ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_length);
1986 * @brief Looks up the DPMS Standby support from raw EDID data.
1988 * @param edid The edid structure.
1989 * @param edid_length Length of the edid structure.
1990 * @return @c EINA_TRUE, if DPMS Standby is supported, @c EINA_FALSE otherwise.
1992 EAPI Eina_Bool ecore_x_randr_edid_dpms_standby_available_get(unsigned char *edid, unsigned long edid_length);
1995 * @brief Looks up the DPMS Suspend support from raw EDID data.
1997 * @param edid The edid structure.
1998 * @param edid_length Length of the edid structure.
1999 * @return @c EINA_TRUE, if DPMS Suspend is supported, @c EINA_FALSE otherwise.
2001 EAPI Eina_Bool ecore_x_randr_edid_dpms_suspend_available_get(unsigned char *edid, unsigned long edid_length);
2004 * @brief Looks up the DPMS Off support from raw EDID data.
2006 * @param edid The edid structure.
2007 * @param edid_length Length of the edid structure.
2008 * @return @c EINA_TRUE, if DPMS Off is supported, @c EINA_FALSE otherwise.
2010 EAPI Eina_Bool ecore_x_randr_edid_dpms_off_available_get(unsigned char *edid, unsigned long edid_length);
2013 * @brief Get the preferred aspect ratio from raw EDID data.
2015 * @param edid the edid structure
2016 * @param edid_length length of the edid structure
2017 * @return The preferred aspect ratio.
2019 EAPI Ecore_X_Randr_Edid_Aspect_Ratio ecore_x_randr_edid_display_aspect_ratio_preferred_get(unsigned char *edid, unsigned long edid_length);
2022 * @brief Get the supported aspect ratios from raw EDID data.
2024 * @param edid the edid structure
2025 * @param edid_length length of the edid structure
2026 * @return The supported aspect ratios.
2028 EAPI Ecore_X_Randr_Edid_Aspect_Ratio ecore_x_randr_edid_display_aspect_ratios_get(unsigned char *edid, unsigned long edid_length);
2031 * @brief Get the supported colorschemes from raw EDID data.
2033 * @param edid the edid structure
2034 * @param edid_length length of the edid structure
2035 * @return The supported colorschemes.
2037 EAPI Ecore_X_Randr_Edid_Display_Colorscheme ecore_x_randr_edid_display_colorscheme_get(unsigned char *edid, unsigned long edid_length);
2040 * @brief Get the display type from raw EDID data.
2042 * @param edid The edid structure.
2043 * @param edid_length Length of the edid structure.
2044 * @return @c EINA_TRUE, if the display is a digital one, @c EINA_FALSE
2047 EAPI Eina_Bool ecore_x_randr_edid_display_type_digital_get(unsigned char *edid, unsigned long edid_length);
2050 * @brief Get the display interface type from raw EDID data.
2052 * @param edid the edid structure
2053 * @param edid_length length of the edid structure
2054 * @return The interface type.
2056 EAPI Ecore_X_Randr_Edid_Display_Interface_Type ecore_x_randr_edid_display_interface_type_get(unsigned char *edid, unsigned long edid_length);
2058 /* ecore_x_randr_12.c */
2060 EAPI Eina_Bool ecore_x_randr_output_backlight_available(void);
2061 EAPI void ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level);
2062 EAPI double ecore_x_randr_output_backlight_level_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2063 EAPI Eina_Bool ecore_x_randr_output_backlight_level_set(Ecore_X_Window root, Ecore_X_Randr_Output output, double level);
2064 EAPI Ecore_X_Randr_Output ecore_x_randr_primary_output_get(Ecore_X_Window root);
2065 EAPI void ecore_x_randr_primary_output_set(Ecore_X_Window root, Ecore_X_Randr_Output output);
2066 EAPI Ecore_X_Render_Subpixel_Order ecore_x_randr_output_subpixel_order_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2067 EAPI unsigned char *ecore_x_randr_output_edid_get(Ecore_X_Window root, Ecore_X_Randr_Output output, unsigned long *length);
2068 EAPI Ecore_X_Randr_Output *ecore_x_randr_output_wired_clones_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2069 EAPI Ecore_X_Randr_Output **ecore_x_randr_output_compatibility_list_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2070 EAPI Ecore_X_Randr_Signal_Format *ecore_x_randr_output_signal_formats_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2071 EAPI Eina_Bool ecore_x_randr_output_signal_format_set(Ecore_X_Window root, Ecore_X_Randr_Output output, Ecore_X_Randr_Signal_Format *signal);
2072 EAPI Ecore_X_Randr_Signal_Property *ecore_x_randr_output_signal_properties_get(Ecore_X_Window root, Ecore_X_Randr_Output output, int *num);
2073 EAPI int ecore_x_randr_output_connector_number_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2074 EAPI Ecore_X_Randr_Connector_Type ecore_x_randr_output_connector_type_get(Ecore_X_Window root, Ecore_X_Randr_Output output);
2075 EAPI Eina_Rectangle *ecore_x_randr_crtc_panning_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h);
2076 EAPI Eina_Bool ecore_x_randr_crtc_panning_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int x, const int y, const int w, const int h);
2077 EAPI Eina_Rectangle *ecore_x_randr_crtc_tracking_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int *x, int *y, int *w, int *h);
2078 EAPI Eina_Bool ecore_x_randr_crtc_tracking_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int x, const int y, const int w, const int h);
2079 EAPI Eina_Rectangle *ecore_x_randr_crtc_border_area_get(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc);
2080 EAPI Eina_Bool ecore_x_randr_crtc_border_area_set(Ecore_X_Window root, Ecore_X_Randr_Crtc crtc, int left, const int top, const int right, const int bottom);
2082 /* XRender Support (horrendously incomplete) */
2083 typedef Ecore_X_ID Ecore_X_Picture;
2085 /* XFixes Extension Support */
2086 typedef Ecore_X_ID Ecore_X_Region;
2088 typedef enum _Ecore_X_Region_Type
2090 ECORE_X_REGION_BOUNDING,
2092 } Ecore_X_Region_Type;
2094 EAPI Ecore_X_Region ecore_x_region_new(Ecore_X_Rectangle *rects, int num);
2095 EAPI Ecore_X_Region ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap);
2096 EAPI Ecore_X_Region ecore_x_region_new_from_window(Ecore_X_Window win, Ecore_X_Region_Type type);
2097 EAPI Ecore_X_Region ecore_x_region_new_from_gc(Ecore_X_GC gc);
2098 EAPI Ecore_X_Region ecore_x_region_new_from_picture(Ecore_X_Picture picture);
2099 EAPI void ecore_x_region_free(Ecore_X_Region region);
2100 EAPI void ecore_x_region_set(Ecore_X_Region region, Ecore_X_Rectangle *rects, int num);
2101 EAPI void ecore_x_region_copy(Ecore_X_Region dest, Ecore_X_Region source);
2102 EAPI void ecore_x_region_combine(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2103 EAPI void ecore_x_region_intersect(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2104 EAPI void ecore_x_region_subtract(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2);
2105 EAPI void ecore_x_region_invert(Ecore_X_Region dest, Ecore_X_Rectangle *bounds, Ecore_X_Region source);
2106 EAPI void ecore_x_region_translate(Ecore_X_Region region, int dx, int dy);
2107 EAPI void ecore_x_region_extents(Ecore_X_Region dest, Ecore_X_Region source);
2108 EAPI Ecore_X_Rectangle *ecore_x_region_fetch(Ecore_X_Region region, int *num, Ecore_X_Rectangle *bounds);
2109 EAPI void ecore_x_region_expand(Ecore_X_Region dest, Ecore_X_Region source, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom);
2110 EAPI void ecore_x_region_gc_clip_set(Ecore_X_Region region, Ecore_X_GC gc, int x_origin, int y_origin);
2111 EAPI void ecore_x_region_window_shape_set(Ecore_X_Region region, Ecore_X_Window win, Ecore_X_Shape_Type type, int x_offset, int y_offset);
2112 EAPI void ecore_x_region_picture_clip_set(Ecore_X_Region region, Ecore_X_Picture picture, int x_origin, int y_origin);
2115 * xfixes selection notification request.
2117 * This lets you choose which selections you want to get notifications for.
2118 * @param selection The selection atom.
2119 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
2122 EAPI Eina_Bool ecore_x_fixes_selection_notification_request(Ecore_X_Atom selection);
2124 /* XComposite Extension Support */
2125 EAPI Eina_Bool ecore_x_composite_query(void);
2126 EAPI void ecore_x_composite_redirect_window(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2127 EAPI void ecore_x_composite_redirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2128 EAPI void ecore_x_composite_unredirect_window(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2129 EAPI void ecore_x_composite_unredirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Update_Type type);
2130 EAPI Ecore_X_Pixmap ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win);
2131 EAPI void ecore_x_composite_window_events_disable(Ecore_X_Window win);
2132 EAPI void ecore_x_composite_window_events_enable(Ecore_X_Window win);
2133 EAPI Ecore_X_Window ecore_x_composite_render_window_enable(Ecore_X_Window root);
2134 EAPI void ecore_x_composite_render_window_disable(Ecore_X_Window root);
2136 /* XDamage Extension Support */
2137 typedef Ecore_X_ID Ecore_X_Damage;
2139 typedef enum _Ecore_X_Damage_Report_Level
2141 ECORE_X_DAMAGE_REPORT_RAW_RECTANGLES,
2142 ECORE_X_DAMAGE_REPORT_DELTA_RECTANGLES,
2143 ECORE_X_DAMAGE_REPORT_BOUNDING_BOX,
2144 ECORE_X_DAMAGE_REPORT_NON_EMPTY
2145 } Ecore_X_Damage_Report_Level;
2147 struct _Ecore_X_Event_Damage
2149 Ecore_X_Damage_Report_Level level;
2150 Ecore_X_Drawable drawable;
2151 Ecore_X_Damage damage;
2154 Ecore_X_Rectangle area;
2155 Ecore_X_Rectangle geometry;
2158 typedef struct _Ecore_X_Event_Damage Ecore_X_Event_Damage;
2160 EAPI Eina_Bool ecore_x_damage_query(void);
2161 EAPI Ecore_X_Damage ecore_x_damage_new(Ecore_X_Drawable d, Ecore_X_Damage_Report_Level level);
2162 EAPI void ecore_x_damage_free(Ecore_X_Damage damage);
2163 EAPI void ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Region parts);
2165 EAPI Eina_Bool ecore_x_screen_is_composited(int screen);
2166 EAPI void ecore_x_screen_is_composited_set(int screen, Ecore_X_Window win);
2168 EAPI Eina_Bool ecore_x_dpms_query(void);
2169 EAPI Eina_Bool ecore_x_dpms_capable_get(void);
2170 EAPI Eina_Bool ecore_x_dpms_enabled_get(void);
2171 EAPI void ecore_x_dpms_enabled_set(int enabled);
2172 EAPI void ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off);
2173 EAPI Eina_Bool ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off);
2174 EAPI unsigned int ecore_x_dpms_timeout_standby_get(void);
2175 EAPI unsigned int ecore_x_dpms_timeout_suspend_get(void);
2176 EAPI unsigned int ecore_x_dpms_timeout_off_get(void);
2177 EAPI void ecore_x_dpms_timeout_standby_set(unsigned int new_timeout);
2178 EAPI void ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout);
2179 EAPI void ecore_x_dpms_timeout_off_set(unsigned int new_timeout);
2181 EAPI Eina_Bool ecore_x_test_fake_key_down(const char *key);
2182 EAPI Eina_Bool ecore_x_test_fake_key_up(const char *key);
2183 EAPI Eina_Bool ecore_x_test_fake_key_press(const char *key);
2184 EAPI const char *ecore_x_keysym_string_get(int keysym);
2187 * Given a keyname, return the keycode representing that key
2188 * @param keyname The key from which to get the keycode.
2189 * @return The keycode of the key.
2193 EAPI int ecore_x_keysym_keycode_get(const char *keyname);
2195 typedef struct _Ecore_X_Image Ecore_X_Image;
2197 EAPI Ecore_X_Image *ecore_x_image_new(int w, int h, Ecore_X_Visual vis, int depth);
2198 EAPI void ecore_x_image_free(Ecore_X_Image *im);
2199 EAPI Eina_Bool ecore_x_image_get(Ecore_X_Image *im, Ecore_X_Drawable draw, int x, int y, int sx, int sy, int w, int h);
2200 EAPI void ecore_x_image_put(Ecore_X_Image *im, Ecore_X_Drawable draw, Ecore_X_GC gc, int x, int y, int sx, int sy, int w, int h);
2201 EAPI void *ecore_x_image_data_get(Ecore_X_Image *im, int *bpl, int *rows, int *bpp);
2202 EAPI Eina_Bool ecore_x_image_is_argb32_get(Ecore_X_Image *im);
2204 EAPI Eina_Bool ecore_x_image_to_argb_convert(void *src, int sbpp, int sbpl, Ecore_X_Colormap c, Ecore_X_Visual v, int x, int y, int w, int h, unsigned int *dst, int dbpl, int dx, int dy);
2206 EAPI Eina_Bool ecore_x_input_multi_select(Ecore_X_Window win);
2208 EAPI Eina_Bool ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win);
2210 typedef enum _Ecore_X_Gesture_Event_Mask
2212 ECORE_X_GESTURE_EVENT_MASK_NONE = 0L,
2213 ECORE_X_GESTURE_EVENT_MASK_FLICK = (1L << 0),
2214 ECORE_X_GESTURE_EVENT_MASK_PAN = (1L << 1),
2215 ECORE_X_GESTURE_EVENT_MASK_PINCHROTATION = (1L << 2),
2216 ECORE_X_GESTURE_EVENT_MASK_TAP = (1L << 3),
2217 ECORE_X_GESTURE_EVENT_MASK_TAPNHOLD = (1L << 4),
2218 ECORE_X_GESTURE_EVENT_MASK_HOLD = (1L << 5),
2219 ECORE_X_GESTURE_EVENT_MASK_GROUP = (1L << 6)
2220 } Ecore_X_Gesture_Event_Mask;
2222 typedef enum _Ecore_X_Gesture_Event_Type
2224 ECORE_X_GESTURE_EVENT_FLICK,
2225 ECORE_X_GESTURE_EVENT_PAN,
2226 ECORE_X_GESTURE_EVENT_PINCHROTATION,
2227 ECORE_X_GESTURE_EVENT_TAP,
2228 ECORE_X_GESTURE_EVENT_TAPNHOLD,
2229 ECORE_X_GESTURE_EVENT_HOLD,
2230 ECORE_X_GESTURE_EVENT_GROUP
2231 } Ecore_X_Gesture_Event_Type;
2233 typedef enum _Ecore_X_Gesture_Event_Subtype
2235 ECORE_X_GESTURE_END,
2236 ECORE_X_GESTURE_BEGIN,
2237 ECORE_X_GESTURE_UPDATE,
2238 ECORE_X_GESTURE_DONE
2239 } Ecore_X_Gesture_Event_Subtype;
2241 typedef enum _Ecore_X_Gesture_Group_Subtype
2243 ECORE_X_GESTURE_GROUP_REMOVED,
2244 ECORE_X_GESTURE_GROUP_ADDED,
2245 ECORE_X_GESTURE_GROUP_CURRENT
2246 } Ecore_X_Gesture_Group_Subtype;
2248 typedef enum _Ecore_X_Gesture_Direction
2250 ECORE_X_GESTURE_NORTHWARD,
2251 ECORE_X_GESTURE_NORTHEASTWARD,
2252 ECORE_X_GESTURE_EASTWARD,
2253 ECORE_X_GESTURE_SOUTHEASTWARD,
2254 ECORE_X_GESTURE_SOUTHWARD,
2255 ECORE_X_GESTURE_SOUTHWESTWARD,
2256 ECORE_X_GESTURE_WESTWARD,
2257 ECORE_X_GESTURE_NORTHWESTWARD
2258 } Ecore_X_Gesture_Direction;
2260 struct _Ecore_X_Event_Gesture_Notify_Flick
2264 Ecore_X_Gesture_Event_Subtype subtype;
2267 Ecore_X_Time duration;
2268 Ecore_X_Gesture_Direction direction;
2272 struct _Ecore_X_Event_Gesture_Notify_Pan
2276 Ecore_X_Gesture_Event_Subtype subtype;
2281 Ecore_X_Time duration;
2282 Ecore_X_Gesture_Direction direction;
2285 struct _Ecore_X_Event_Gesture_Notify_PinchRotation
2289 Ecore_X_Gesture_Event_Subtype subtype;
2298 struct _Ecore_X_Event_Gesture_Notify_Tap
2302 Ecore_X_Gesture_Event_Subtype subtype;
2307 Ecore_X_Time interval;
2310 struct _Ecore_X_Event_Gesture_Notify_TapNHold
2314 Ecore_X_Gesture_Event_Subtype subtype;
2318 Ecore_X_Time interval;
2319 Ecore_X_Time hold_time;
2322 struct _Ecore_X_Event_Gesture_Notify_Hold
2326 Ecore_X_Gesture_Event_Subtype subtype;
2330 Ecore_X_Time hold_time;
2333 struct _Ecore_X_Event_Gesture_Notify_Group
2337 Ecore_X_Gesture_Group_Subtype subtype;
2342 EAPI Eina_Bool ecore_x_gesture_supported(void);
2344 EAPI Eina_Bool ecore_x_gesture_events_select(Ecore_X_Window win, Ecore_X_Gesture_Event_Mask mask);
2346 EAPI Ecore_X_Gesture_Event_Mask ecore_x_gesture_events_selected_get(Ecore_X_Window win);
2348 EAPI Eina_Bool ecore_x_gesture_event_grab(Ecore_X_Window win, Ecore_X_Gesture_Event_Type type, int num_fingers);
2350 EAPI Eina_Bool ecore_x_gesture_event_ungrab(Ecore_X_Window win, Ecore_X_Gesture_Event_Type type, int num_fingers);
2352 EAPI void ecore_x_e_illume_indicator_state_set(Ecore_X_Window win, Ecore_X_Illume_Indicator_State state);
2353 EAPI Ecore_X_Illume_Indicator_State ecore_x_e_illume_indicator_state_get(Ecore_X_Window win);
2354 EAPI void ecore_x_e_illume_indicator_state_send(Ecore_X_Window win, Ecore_X_Illume_Indicator_State state);
2356 EAPI void ecore_x_e_illume_indicator_opacity_set(Ecore_X_Window win, Ecore_X_Illume_Indicator_Opacity_Mode mode);
2358 EAPI Ecore_X_Illume_Indicator_Opacity_Mode ecore_x_e_illume_indicator_opacity_get(Ecore_X_Window win);
2360 EAPI void ecore_x_e_illume_indicator_opacity_send(Ecore_X_Window win, Ecore_X_Illume_Indicator_Opacity_Mode mode);
2363 ecore_x_e_illume_window_state_set(Ecore_X_Window win,
2364 Ecore_X_Illume_Window_State state);
2366 EAPI Ecore_X_Illume_Window_State
2367 ecore_x_e_illume_window_state_get(Ecore_X_Window win);
2371 #endif // ifdef __cplusplus
2373 #include <Ecore_X_Atoms.h>
2374 #include <Ecore_X_Cursor.h>
2376 #endif // ifndef _ECORE_X_H