At rasters request, I followed his example and told them all to stfu.

SVN revision: 19573
This commit is contained in:
David Walter Seikel 2006-01-06 20:22:09 +00:00
parent 770cb8b3b9
commit ace06b37f6
17 changed files with 337 additions and 336 deletions

View File

@ -62,73 +62,73 @@ Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_PRIMARY = 0;
Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_SECONDARY = 0;
Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD = 0;
int ECORE_X_EVENT_KEY_DOWN = 0;
int ECORE_X_EVENT_KEY_UP = 0;
int ECORE_X_EVENT_MOUSE_BUTTON_DOWN = 0;
int ECORE_X_EVENT_MOUSE_BUTTON_UP = 0;
int ECORE_X_EVENT_MOUSE_MOVE = 0;
int ECORE_X_EVENT_MOUSE_IN = 0;
int ECORE_X_EVENT_MOUSE_OUT = 0;
int ECORE_X_EVENT_MOUSE_WHEEL = 0;
int ECORE_X_EVENT_WINDOW_FOCUS_IN = 0;
int ECORE_X_EVENT_WINDOW_FOCUS_OUT = 0;
int ECORE_X_EVENT_WINDOW_KEYMAP = 0;
int ECORE_X_EVENT_WINDOW_DAMAGE = 0;
int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_CREATE = 0;
int ECORE_X_EVENT_WINDOW_DESTROY = 0;
int ECORE_X_EVENT_WINDOW_HIDE = 0;
int ECORE_X_EVENT_WINDOW_SHOW = 0;
int ECORE_X_EVENT_WINDOW_SHOW_REQUEST = 0;
int ECORE_X_EVENT_WINDOW_REPARENT = 0;
int ECORE_X_EVENT_WINDOW_CONFIGURE = 0;
int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST = 0;
int ECORE_X_EVENT_WINDOW_GRAVITY = 0;
int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST = 0;
int ECORE_X_EVENT_WINDOW_STACK = 0;
int ECORE_X_EVENT_WINDOW_STACK_REQUEST = 0;
int ECORE_X_EVENT_WINDOW_PROPERTY = 0;
int ECORE_X_EVENT_WINDOW_COLORMAP = 0;
int ECORE_X_EVENT_WINDOW_MAPPING = 0;
int ECORE_X_EVENT_SELECTION_CLEAR = 0;
int ECORE_X_EVENT_SELECTION_REQUEST = 0;
int ECORE_X_EVENT_SELECTION_NOTIFY = 0;
int ECORE_X_EVENT_CLIENT_MESSAGE = 0;
int ECORE_X_EVENT_WINDOW_SHAPE = 0;
int ECORE_X_EVENT_SYNC_COUNTER = 0;
int ECORE_X_EVENT_SYNC_ALARM = 0;
int ECORE_X_EVENT_SCREEN_CHANGE = 0;
EAPI int ECORE_X_EVENT_KEY_DOWN = 0;
EAPI int ECORE_X_EVENT_KEY_UP = 0;
EAPI int ECORE_X_EVENT_MOUSE_BUTTON_DOWN = 0;
EAPI int ECORE_X_EVENT_MOUSE_BUTTON_UP = 0;
EAPI int ECORE_X_EVENT_MOUSE_MOVE = 0;
EAPI int ECORE_X_EVENT_MOUSE_IN = 0;
EAPI int ECORE_X_EVENT_MOUSE_OUT = 0;
EAPI int ECORE_X_EVENT_MOUSE_WHEEL = 0;
EAPI int ECORE_X_EVENT_WINDOW_FOCUS_IN = 0;
EAPI int ECORE_X_EVENT_WINDOW_FOCUS_OUT = 0;
EAPI int ECORE_X_EVENT_WINDOW_KEYMAP = 0;
EAPI int ECORE_X_EVENT_WINDOW_DAMAGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_CREATE = 0;
EAPI int ECORE_X_EVENT_WINDOW_DESTROY = 0;
EAPI int ECORE_X_EVENT_WINDOW_HIDE = 0;
EAPI int ECORE_X_EVENT_WINDOW_SHOW = 0;
EAPI int ECORE_X_EVENT_WINDOW_SHOW_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_REPARENT = 0;
EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE = 0;
EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_GRAVITY = 0;
EAPI int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_STACK = 0;
EAPI int ECORE_X_EVENT_WINDOW_STACK_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROPERTY = 0;
EAPI int ECORE_X_EVENT_WINDOW_COLORMAP = 0;
EAPI int ECORE_X_EVENT_WINDOW_MAPPING = 0;
EAPI int ECORE_X_EVENT_SELECTION_CLEAR = 0;
EAPI int ECORE_X_EVENT_SELECTION_REQUEST = 0;
EAPI int ECORE_X_EVENT_SELECTION_NOTIFY = 0;
EAPI int ECORE_X_EVENT_CLIENT_MESSAGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_SHAPE = 0;
EAPI int ECORE_X_EVENT_SYNC_COUNTER = 0;
EAPI int ECORE_X_EVENT_SYNC_ALARM = 0;
EAPI int ECORE_X_EVENT_SCREEN_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_DELETE_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_DELETE_REQUEST = 0;
/*
int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE = 0;
int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE = 0;
*/
int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = 0;
int ECORE_X_EVENT_WINDOW_STATE_REQUEST = 0;
int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST = 0;
int ECORE_X_EVENT_PING = 0;
int ECORE_X_EVENT_DESKTOP_CHANGE = 0;
EAPI int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = 0;
EAPI int ECORE_X_EVENT_WINDOW_STATE_REQUEST = 0;
EAPI int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST = 0;
EAPI int ECORE_X_EVENT_PING = 0;
EAPI int ECORE_X_EVENT_DESKTOP_CHANGE = 0;
int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW = 0;
int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE = 0;
int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE = 0;
EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW = 0;
EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE = 0;
EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE = 0;
int ECORE_X_MODIFIER_SHIFT = 0;
int ECORE_X_MODIFIER_CTRL = 0;
int ECORE_X_MODIFIER_ALT = 0;
int ECORE_X_MODIFIER_WIN = 0;
EAPI int ECORE_X_MODIFIER_SHIFT = 0;
EAPI int ECORE_X_MODIFIER_CTRL = 0;
EAPI int ECORE_X_MODIFIER_ALT = 0;
EAPI int ECORE_X_MODIFIER_WIN = 0;
int ECORE_X_LOCK_SCROLL = 0;
int ECORE_X_LOCK_NUM = 0;
int ECORE_X_LOCK_CAPS = 0;
EAPI int ECORE_X_LOCK_SCROLL = 0;
EAPI int ECORE_X_LOCK_NUM = 0;
EAPI int ECORE_X_LOCK_CAPS = 0;
/**
* @defgroup Ecore_X_Init_Group X Library Init and Shutdown Functions
@ -145,7 +145,7 @@ int ECORE_X_LOCK_CAPS = 0;
* being shut down. 0 is returned if an error occurs.
* @ingroup Ecore_X_Init_Group
*/
int
EAPI int
ecore_x_init(const char *name)
{
int shape_base = 0;
@ -423,7 +423,7 @@ _ecore_x_shutdown(int close_display)
* being shut down.
* @ingroup Ecore_X_Init_Group
*/
int
EAPI int
ecore_x_shutdown(void)
{
return _ecore_x_shutdown(1);
@ -436,7 +436,7 @@ ecore_x_shutdown(void)
*
* @ingroup Ecore_X_Init_Group
*/
int
EAPI int
ecore_x_disconnect(void)
{
return _ecore_x_shutdown(0);
@ -453,7 +453,7 @@ ecore_x_disconnect(void)
* @return The current X display.
* @ingroup Ecore_X_Display_Attr_Group
*/
Ecore_X_Display *
EAPI Ecore_X_Display *
ecore_x_display_get(void)
{
return (Ecore_X_Display *)_ecore_x_disp;
@ -464,7 +464,7 @@ ecore_x_display_get(void)
* @return The current X display file descriptor.
* @ingroup Ecore_X_Display_Attr_Group
*/
int
EAPI int
ecore_x_fd_get(void)
{
return ConnectionNumber(_ecore_x_disp);
@ -480,7 +480,7 @@ ecore_x_fd_get(void)
* @param t The time in seconds
* @ingroup Ecore_X_Display_Attr_Group
*/
void
EAPI void
ecore_x_double_click_time_set(double t)
{
if (t < 0.0) t = 0.0;
@ -495,7 +495,7 @@ ecore_x_double_click_time_set(double t)
* @return The timeout for double clicks in seconds.
* @ingroup Ecore_X_Display_Attr_Group
*/
double
EAPI double
ecore_x_double_click_time_get(void)
{
return _ecore_x_double_click_time;
@ -512,7 +512,7 @@ ecore_x_double_click_time_get(void)
* Sends all X commands in the X Display buffer.
* @ingroup Ecore_X_Flush_Group
*/
void
EAPI void
ecore_x_flush(void)
{
XFlush(_ecore_x_disp);
@ -523,7 +523,7 @@ ecore_x_flush(void)
* processed by the server.
* @ingroup Ecore_X_Flush_Group
*/
void
EAPI void
ecore_x_sync(void)
{
XSync(_ecore_x_disp, False);
@ -538,7 +538,7 @@ ecore_x_sync(void)
*
* @param root The window whose children will be killed.
*/
void
EAPI void
ecore_x_killall(Ecore_X_Window root)
{
int screens;
@ -579,7 +579,7 @@ ecore_x_killall(Ecore_X_Window root)
*
* @param win Window of the client to be killed
*/
void
EAPI void
ecore_x_kill(Ecore_X_Window win)
{
XKillClient(_ecore_x_disp, win);
@ -588,7 +588,7 @@ ecore_x_kill(Ecore_X_Window win)
/**
* Return the last event time
*/
Ecore_X_Time
EAPI Ecore_X_Time
ecore_x_current_time_get(void)
{
return _ecore_x_event_last_time;
@ -744,7 +744,7 @@ _ecore_x_event_filter_end(void *data __UNUSED__, void *loop_data)
* @param w Pointer to an integer into which the width is to be stored.
* @param h Pointer to an integer into which the height is to be stored.
*/
void
EAPI void
ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h)
{
Window dummy_win;
@ -771,7 +771,7 @@ ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h
* @param d The given drawable.
* @return The border width of the given drawable.
*/
int
EAPI int
ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
{
Window dummy_win;
@ -790,7 +790,7 @@ ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
* @param d The given drawable.
* @return The depth of the given drawable.
*/
int
EAPI int
ecore_x_drawable_depth_get(Ecore_X_Drawable d)
{
Window dummy_win;
@ -812,7 +812,7 @@ ecore_x_drawable_depth_get(Ecore_X_Drawable d)
* @return An array of all the root windows. @c NULL is returned if memory
* could not be allocated for the list, or if @p num_ret is @c NULL.
*/
Ecore_X_Window *
EAPI Ecore_X_Window *
ecore_x_window_root_list(int *num_ret)
{
int num, i;
@ -902,7 +902,7 @@ ecore_x_window_root_list(int *num_ret)
return roots;
}
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_root_first_get(void)
{
int num;
@ -932,7 +932,7 @@ _ecore_x_window_manage_error(void *data __UNUSED__)
_ecore_x_window_manage_failed = 1;
}
int
EAPI int
ecore_x_window_manage(Ecore_X_Window win)
{
XWindowAttributes att;
@ -962,7 +962,7 @@ ecore_x_window_manage(Ecore_X_Window win)
return 1;
}
void
EAPI void
ecore_x_window_container_manage(Ecore_X_Window win)
{
XSelectInput(_ecore_x_disp, win,
@ -970,7 +970,7 @@ ecore_x_window_container_manage(Ecore_X_Window win)
SubstructureNotifyMask);
}
void
EAPI void
ecore_x_window_client_manage(Ecore_X_Window win)
{
XSelectInput(_ecore_x_disp, win,
@ -984,7 +984,7 @@ ecore_x_window_client_manage(Ecore_X_Window win)
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
}
void
EAPI void
ecore_x_window_sniff(Ecore_X_Window win)
{
XSelectInput(_ecore_x_disp, win,
@ -992,7 +992,7 @@ ecore_x_window_sniff(Ecore_X_Window win)
SubstructureNotifyMask);
}
void
EAPI void
ecore_x_window_client_sniff(Ecore_X_Window win)
{
XSelectInput(_ecore_x_disp, win,
@ -1009,7 +1009,7 @@ ecore_x_window_client_sniff(Ecore_X_Window win)
* @param name The given name.
* @return Associated atom value.
*/
Ecore_X_Atom
EAPI Ecore_X_Atom
ecore_x_atom_get(const char *name)
{
if (!_ecore_x_disp) return 0;
@ -1021,7 +1021,7 @@ ecore_x_atom_get(const char *name)
int
EAPI int
ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att_ret)
{
XWindowAttributes att;
@ -1049,19 +1049,19 @@ ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att
return 1;
}
void
EAPI void
ecore_x_window_save_set_add(Ecore_X_Window win)
{
XAddToSaveSet(_ecore_x_disp, win);
}
void
EAPI void
ecore_x_window_save_set_del(Ecore_X_Window win)
{
XRemoveFromSaveSet(_ecore_x_disp, win);
}
Ecore_X_Window *
EAPI Ecore_X_Window *
ecore_x_window_children_get(Ecore_X_Window win, int *num)
{
Ecore_X_Window *windows = NULL;
@ -1094,13 +1094,13 @@ ecore_x_window_children_get(Ecore_X_Window win, int *num)
int
EAPI int
ecore_x_cursor_color_supported_get(void)
{
return _ecore_x_xcursor;
}
Ecore_X_Cursor
EAPI Ecore_X_Cursor
ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y)
{
#ifdef ECORE_XCURSOR
@ -1277,7 +1277,7 @@ ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int
return 0;
}
void
EAPI void
ecore_x_cursor_free(Ecore_X_Cursor c)
{
XFreeCursor(_ecore_x_disp, c);
@ -1288,14 +1288,14 @@ ecore_x_cursor_free(Ecore_X_Cursor c)
* Note that the return value must not be freed with
* ecore_x_cursor_free()!
*/
Ecore_X_Cursor
EAPI Ecore_X_Cursor
ecore_x_cursor_shape_get(int shape)
{
/* Shapes are defined in Ecore_X_Cursor.h */
return XCreateFontCursor(_ecore_x_disp, shape);
}
void
EAPI void
ecore_x_cursor_size_set(int size)
{
#ifdef ECORE_XCURSOR
@ -1303,7 +1303,7 @@ ecore_x_cursor_size_set(int size)
#endif
}
int
EAPI int
ecore_x_cursor_size_get(void)
{
#ifdef ECORE_XCURSOR
@ -1313,7 +1313,7 @@ ecore_x_cursor_size_get(void)
#endif
}
int
EAPI int
ecore_x_pointer_grab(Ecore_X_Window win)
{
return XGrabPointer(_ecore_x_disp, win, False,
@ -1323,7 +1323,7 @@ ecore_x_pointer_grab(Ecore_X_Window win)
None, None, CurrentTime);
}
int
EAPI int
ecore_x_pointer_confine_grab(Ecore_X_Window win)
{
return XGrabPointer(_ecore_x_disp, win, False,
@ -1333,19 +1333,19 @@ ecore_x_pointer_confine_grab(Ecore_X_Window win)
win, None, CurrentTime);
}
void
EAPI void
ecore_x_pointer_ungrab(void)
{
XUngrabPointer(_ecore_x_disp, CurrentTime);
}
int
EAPI int
ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
{
return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y);
}
int
EAPI int
ecore_x_keyboard_grab(Ecore_X_Window win)
{
return XGrabKeyboard(_ecore_x_disp, win, False,
@ -1353,12 +1353,13 @@ ecore_x_keyboard_grab(Ecore_X_Window win)
CurrentTime);
}
void ecore_x_keyboard_ungrab(void)
EAPI void
ecore_x_keyboard_ungrab(void)
{
XUngrabKeyboard(_ecore_x_disp, CurrentTime);
}
void
EAPI void
ecore_x_grab(void)
{
_ecore_x_grab_count++;
@ -1367,7 +1368,7 @@ ecore_x_grab(void)
XGrabServer(_ecore_x_disp);
}
void
EAPI void
ecore_x_ungrab(void)
{
_ecore_x_grab_count--;
@ -1386,14 +1387,14 @@ Window *_ecore_window_grabs = NULL;
int (*_ecore_window_grab_replay_func) (void *data, int event_type, void *event);
void *_ecore_window_grab_replay_data;
void
EAPI void
ecore_x_passive_grab_replay_func_set(int (*func) (void *data, int event_type, void *event), void *data)
{
_ecore_window_grab_replay_func = func;
_ecore_window_grab_replay_data = data;
}
void
EAPI void
ecore_x_window_button_grab(Ecore_X_Window win, int button,
Ecore_X_Event_Mask event_mask,
int mod, int any_mod)
@ -1465,7 +1466,7 @@ _ecore_x_window_grab_remove(Ecore_X_Window win)
}
}
void
EAPI void
ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
int mod, int any_mod)
{
@ -1494,7 +1495,7 @@ ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
int _ecore_key_grabs_num = 0;
Window *_ecore_key_grabs = NULL;
void
EAPI void
ecore_x_window_key_grab(Ecore_X_Window win, char *key,
int mod, int any_mod)
{
@ -1555,7 +1556,7 @@ _ecore_x_key_grab_remove(Ecore_X_Window win)
}
}
void
EAPI void
ecore_x_window_key_ungrab(Ecore_X_Window win, char *key,
int mod, int any_mod)
{
@ -1603,7 +1604,7 @@ ecore_x_window_key_ungrab(Ecore_X_Window win, char *key,
*
* @return !0 on success.
*/
int
EAPI int
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)
@ -1633,7 +1634,7 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
*
* @return !0 on success.
*/
int
EAPI int
ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
const void *data, int len)
{
@ -1651,26 +1652,26 @@ ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
}
void
EAPI void
ecore_x_focus_reset(void)
{
XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
}
void
EAPI void
ecore_x_events_allow_all(void)
{
XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
}
void
EAPI void
ecore_x_pointer_last_xy_get(int *x, int *y)
{
if (x) *x = _ecore_x_event_last_root_x;
if (y) *y = _ecore_x_event_last_root_y;
}
void
EAPI void
ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y)
{
Window rwin, cwin;

View File

@ -26,18 +26,18 @@ Ecore_X_Atom ECORE_X_ATOM_XDND_FINISHED = 0;
Ecore_X_Atom ECORE_X_ATOM_XDND_LEAVE = 0;
/* Xdnd atoms that need to be exposed to the application interface */
Ecore_X_Atom ECORE_X_DND_ACTION_COPY = 0;
Ecore_X_Atom ECORE_X_DND_ACTION_MOVE = 0;
Ecore_X_Atom ECORE_X_DND_ACTION_LINK = 0;
Ecore_X_Atom ECORE_X_DND_ACTION_ASK = 0;
Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE = 0;
EAPI Ecore_X_Atom ECORE_X_DND_ACTION_COPY = 0;
EAPI Ecore_X_Atom ECORE_X_DND_ACTION_MOVE = 0;
EAPI Ecore_X_Atom ECORE_X_DND_ACTION_LINK = 0;
EAPI Ecore_X_Atom ECORE_X_DND_ACTION_ASK = 0;
EAPI Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE = 0;
int ECORE_X_EVENT_XDND_ENTER = 0;
int ECORE_X_EVENT_XDND_POSITION = 0;
int ECORE_X_EVENT_XDND_STATUS = 0;
int ECORE_X_EVENT_XDND_LEAVE = 0;
int ECORE_X_EVENT_XDND_DROP = 0;
int ECORE_X_EVENT_XDND_FINISHED = 0;
EAPI int ECORE_X_EVENT_XDND_ENTER = 0;
EAPI int ECORE_X_EVENT_XDND_POSITION = 0;
EAPI int ECORE_X_EVENT_XDND_STATUS = 0;
EAPI int ECORE_X_EVENT_XDND_LEAVE = 0;
EAPI int ECORE_X_EVENT_XDND_DROP = 0;
EAPI int ECORE_X_EVENT_XDND_FINISHED = 0;
static Ecore_X_DND_Source *_source = NULL;
static Ecore_X_DND_Target *_target = NULL;
@ -114,7 +114,7 @@ _ecore_x_dnd_shutdown(void)
_ecore_x_dnd_init_count = 0;
}
void
EAPI void
ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
{
Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
@ -126,7 +126,7 @@ ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE);
}
int
EAPI int
ecore_x_dnd_version_get(Ecore_X_Window win)
{
unsigned char *prop_data;
@ -143,7 +143,7 @@ ecore_x_dnd_version_get(Ecore_X_Window win)
return 0;
}
int
EAPI int
ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
{
int num, i, ret = 0;
@ -170,7 +170,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
return ret;
}
void
EAPI void
ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
{
Ecore_X_Atom atom;
@ -228,7 +228,7 @@ ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
free(newset);
}
void
EAPI void
ecore_x_dnd_types_set(Ecore_X_Window win, char **types, unsigned int num_types)
{
Ecore_X_Atom *newset = NULL;
@ -264,7 +264,7 @@ _ecore_x_dnd_target_get(void)
return _target;
}
int
EAPI int
ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
{
@ -286,7 +286,7 @@ ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
return 1;
}
int
EAPI int
ecore_x_dnd_drop(void)
{
XEvent xev;
@ -332,7 +332,7 @@ ecore_x_dnd_drop(void)
return status;
}
void
EAPI void
ecore_x_dnd_send_status(int will_accept, int suppress, Ecore_X_Rectangle rectangle, Ecore_X_Atom action)
{
XEvent xev;
@ -379,7 +379,7 @@ ecore_x_dnd_send_status(int will_accept, int suppress, Ecore_X_Rectangle rectang
XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
}
void
EAPI void
ecore_x_dnd_send_finished(void)
{
XEvent xev;

View File

@ -18,13 +18,13 @@
Ecore_X_Atom ECORE_X_ATOM_E_FRAME_SIZE = 0;
void
EAPI void
ecore_x_e_init(void)
{
ECORE_X_ATOM_E_FRAME_SIZE = _ATOM_GET("_E_FRAME_SIZE");
}
void
EAPI void
ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
{
unsigned int frames[4];

View File

@ -20,7 +20,7 @@ static int _error_code = 0;
*
* Set the X error handler function
*/
void
EAPI void
ecore_x_error_handler_set(void (*func) (void *data), const void *data)
{
_error_func = func;
@ -34,7 +34,7 @@ ecore_x_error_handler_set(void (*func) (void *data), const void *data)
*
* Set the X I/O error handler function
*/
void
EAPI void
ecore_x_io_error_handler_set(void (*func) (void *data), const void *data)
{
_io_error_func = func;
@ -47,7 +47,7 @@ ecore_x_io_error_handler_set(void (*func) (void *data), const void *data)
*
* Return the X request code that caused the last X error
*/
int
EAPI int
ecore_x_error_request_get(void)
{
return _error_request_code;
@ -59,7 +59,7 @@ ecore_x_error_request_get(void)
*
* Return the error code from the last X error
*/
int
EAPI int
ecore_x_error_code_get(void)
{
return _error_code;

View File

@ -18,7 +18,7 @@ static void _ecore_x_event_free_window_prop_client_machine_change(void *data, vo
static void _ecore_x_event_free_key_down(void *data, void *ev);
static void _ecore_x_event_free_key_up(void *data, void *ev);
void
EAPI void
ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask)
{
XWindowAttributes attr;
@ -33,7 +33,7 @@ ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask)
XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
}
void
EAPI void
ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask)
{
XWindowAttributes attr;

View File

@ -9,7 +9,7 @@
* given instead, the default root window is used.
* @return The new default graphics context.
*/
Ecore_X_GC
EAPI Ecore_X_GC
ecore_x_gc_new(Ecore_X_Drawable draw)
{
XGCValues gcv;
@ -22,7 +22,7 @@ ecore_x_gc_new(Ecore_X_Drawable draw)
* Deletes and frees the given graphics context.
* @param gc The given graphics context.
*/
void
EAPI void
ecore_x_gc_del(Ecore_X_GC gc)
{
XFreeGC(_ecore_x_disp, gc);

View File

@ -31,7 +31,7 @@ Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_LEADER = 0;
Ecore_X_Atom ECORE_X_ATOM_WM_TRANSIENT_FOR = 0;
Ecore_X_Atom ECORE_X_ATOM_WM_SAVE_YOURSELF = 0;
void
EAPI void
ecore_x_icccm_init(void)
{
@ -66,7 +66,7 @@ ecore_x_icccm_init(void)
XInternAtom(_ecore_x_disp, "WM_SAVE_YOURSELF", False);
}
void
EAPI void
ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state)
{
unsigned long c[2];
@ -83,7 +83,7 @@ ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state)
(unsigned char *)c, 2);
}
Ecore_X_Window_State_Hint
EAPI Ecore_X_Window_State_Hint
ecore_x_icccm_state_get(Ecore_X_Window win)
{
unsigned char *prop_ret = NULL;
@ -113,7 +113,7 @@ ecore_x_icccm_state_get(Ecore_X_Window win)
return hint;
}
void
EAPI void
ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
{
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@ -122,7 +122,7 @@ ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
t, 0, 0, 0);
}
void
EAPI void
ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
{
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@ -131,7 +131,7 @@ ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
t, 0, 0, 0);
}
void
EAPI void
ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
{
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@ -140,7 +140,7 @@ ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
t, 0, 0, 0);
}
void
EAPI void
ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
{
XEvent ev;
@ -159,7 +159,7 @@ ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev);
}
void
EAPI void
ecore_x_icccm_hints_set(Ecore_X_Window win,
int accepts_focus,
Ecore_X_Window_State_Hint initial_state,
@ -208,7 +208,7 @@ ecore_x_icccm_hints_set(Ecore_X_Window win,
XFree(hints);
}
int
EAPI int
ecore_x_icccm_hints_get(Ecore_X_Window win,
int *accepts_focus,
Ecore_X_Window_State_Hint *initial_state,
@ -278,7 +278,7 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
return 0;
}
void
EAPI void
ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
int request_pos,
Ecore_X_Gravity gravity,
@ -341,7 +341,7 @@ ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
XSetWMNormalHints(_ecore_x_disp, win, &hint);
}
int
EAPI int
ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
int *request_pos,
Ecore_X_Gravity *gravity,
@ -445,7 +445,7 @@ ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
return 1;
}
void
EAPI void
ecore_x_icccm_title_set(Ecore_X_Window win, const char *t)
{
char *list[1];
@ -480,7 +480,7 @@ ecore_x_icccm_title_set(Ecore_X_Window win, const char *t)
free(list[0]);
}
char *
EAPI char *
ecore_x_icccm_title_get(Ecore_X_Window win)
{
XTextProperty xprop;
@ -537,7 +537,7 @@ ecore_x_icccm_title_get(Ecore_X_Window win)
* @param protocol The protocol to enable/disable
* @param on On/Off
*/
void
EAPI void
ecore_x_icccm_protocol_set(Ecore_X_Window win,
Ecore_X_WM_Protocol protocol, int on)
{
@ -618,7 +618,7 @@ ecore_x_icccm_protocol_set(Ecore_X_Window win,
* @param protocol The protocol to query
* @return 1 if the protocol is set, else 0.
*/
int
EAPI int
ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
{
Atom proto, *protos = NULL;
@ -653,7 +653,7 @@ ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
*
* Set a window name * class
*/
void
EAPI void
ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c)
{
XClassHint *xch;
@ -675,7 +675,7 @@ ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c)
*
* Get a window name * class
*/
void
EAPI void
ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c)
{
XClassHint xch;
@ -706,7 +706,7 @@ ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c)
*
* Return the client machine of a window. String must be free'd when done with.
*/
char *
EAPI char *
ecore_x_icccm_client_machine_get(Ecore_X_Window win)
{
char *name;
@ -722,7 +722,7 @@ ecore_x_icccm_client_machine_get(Ecore_X_Window win)
* @param argc Number of arguments.
* @param argv Arguments.
*/
void
EAPI void
ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv)
{
XSetCommand(_ecore_x_disp, win, argv, argc);
@ -737,7 +737,7 @@ ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv)
* @param argc Number of arguments.
* @param argv Arguments.
*/
void
EAPI void
ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
{
XGetCommand(_ecore_x_disp, win, argv, argc);
@ -750,7 +750,7 @@ ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
*
* Set a window icon name
*/
void
EAPI void
ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
{
char *list[1];
@ -790,7 +790,7 @@ ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
*
* Return the icon name of a window. String must be free'd when done with.
*/
char *
EAPI char *
ecore_x_icccm_icon_name_get(Ecore_X_Window win)
{
XTextProperty xprop;
@ -849,7 +849,7 @@ ecore_x_icccm_icon_name_get(Ecore_X_Window win)
* @param win The toplevel window
* @param subwin The subwindow to be added to the colormap windows list
*/
void
EAPI void
ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin)
{
int num = 0, i;
@ -904,7 +904,7 @@ ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin)
* @param win The toplevel window
* @param subwin The window to be removed from the colormap window list.
*/
void
EAPI void
ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin)
{
int num = 0, i, j, k = 0;
@ -957,7 +957,7 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin)
* @param win the transient window
* @param forwin the toplevel window
*/
void
EAPI void
ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin)
{
XSetTransientForHint(_ecore_x_disp, win, forwin);
@ -967,7 +967,7 @@ ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin)
* Remove the transient_for setting from a window.
* @param The window
*/
void
EAPI void
ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
{
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR);
@ -978,7 +978,7 @@ ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
* @param win The window to check
* @return The window ID of the top-level window, or 0 if the property does not exist.
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_icccm_transient_for_get(Ecore_X_Window win)
{
Window forwin;
@ -995,7 +995,7 @@ ecore_x_icccm_transient_for_get(Ecore_X_Window win)
* @param win The window
* @param role The role string
*/
void
EAPI void
ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role)
{
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE,
@ -1007,7 +1007,7 @@ ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role)
* @param win The window
* @return The window's role string.
*/
char *
EAPI char *
ecore_x_icccm_window_role_get(Ecore_X_Window win)
{
return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE);
@ -1021,7 +1021,7 @@ ecore_x_icccm_window_role_get(Ecore_X_Window win)
* All non-transient top-level windows created by an app other than
* the main window must have this property set to the app's main window.
*/
void
EAPI void
ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l)
{
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
@ -1032,7 +1032,7 @@ ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l)
* Get the window's client leader.
* @param win The window
* @return The window's client leader window, or 0 if unset */
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_icccm_client_leader_get(Ecore_X_Window win)
{
Ecore_X_Window l;
@ -1043,7 +1043,7 @@ ecore_x_icccm_client_leader_get(Ecore_X_Window win)
return 0;
}
void
EAPI void
ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root)
{
XEvent xev;

View File

@ -27,7 +27,7 @@ MWMHints;
/* Atoms */
Ecore_X_Atom ECORE_X_ATOM_MOTIF_WM_HINTS = 0;
int
EAPI int
ecore_x_mwm_hints_get(Ecore_X_Window win,
Ecore_X_MWM_Hint_Func * fhint,
Ecore_X_MWM_Hint_Decor * dhint,
@ -77,7 +77,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win,
return ret;
}
void
EAPI void
ecore_x_mwm_borderless_set(Ecore_X_Window win, int borderless)
{
unsigned int data[5] = {0, 0, 0, 0, 0};

View File

@ -157,7 +157,7 @@ Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER = 0;
Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN = 0;
Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO = 0;
void
EAPI void
ecore_x_netwm_init(void)
{
ECORE_X_ATOM_NET_SUPPORTED = _ATOM_GET("_NET_SUPPORTED");
@ -254,7 +254,7 @@ ecore_x_netwm_init(void)
}
}
void
EAPI void
ecore_x_netwm_shutdown(void)
{
if (startup_info)
@ -265,7 +265,7 @@ ecore_x_netwm_shutdown(void)
/*
* WM identification
*/
void
EAPI void
ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
const char *wm_name)
{
@ -279,13 +279,13 @@ ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
/*
* Set supported atoms
*/
void
EAPI void
ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num)
{
ecore_x_window_prop_atom_set(root, ECORE_X_ATOM_NET_SUPPORTED, supported, num);
}
int
EAPI int
ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *num)
{
int num_ret;
@ -305,21 +305,21 @@ ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *
/*
* Desktop configuration and status
*/
void
EAPI void
ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks)
{
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
&n_desks, 1);
}
void
EAPI void
ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
Ecore_X_Window *vroots, unsigned int n_desks)
{
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_VIRTUAL_ROOTS, vroots, n_desks);
}
void
EAPI void
ecore_x_netwm_desk_names_set(Ecore_X_Window root,
const char **names, unsigned int n_desks)
{
@ -352,7 +352,7 @@ ecore_x_netwm_desk_names_set(Ecore_X_Window root,
free(buf);
}
void
EAPI void
ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width,
unsigned int height)
{
@ -364,7 +364,7 @@ ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width,
2);
}
void
EAPI void
ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
unsigned int *origins, unsigned int n_desks)
{
@ -372,7 +372,7 @@ ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
origins, 2 * n_desks);
}
void
EAPI void
ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation,
int columns, int rows,
int starting_corner)
@ -387,7 +387,7 @@ ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation,
layout, 4);
}
void
EAPI void
ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
unsigned int *areas, unsigned int n_desks)
{
@ -395,14 +395,14 @@ ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
4 * n_desks);
}
void
EAPI void
ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk)
{
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
1);
}
void
EAPI void
ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
{
unsigned int val;
@ -417,7 +417,7 @@ ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
*/
/* Mapping order */
void
EAPI void
ecore_x_netwm_client_list_set(Ecore_X_Window root,
Ecore_X_Window *p_clients, unsigned int n_clients)
{
@ -426,7 +426,7 @@ ecore_x_netwm_client_list_set(Ecore_X_Window root,
}
/* Stacking order */
void
EAPI void
ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
Ecore_X_Window *p_clients,
unsigned int n_clients)
@ -435,20 +435,20 @@ ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
p_clients, n_clients);
}
void
EAPI void
ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win)
{
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW,
&win, 1);
}
void
EAPI void
ecore_x_netwm_name_set(Ecore_X_Window win, const char *name)
{
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
}
int
EAPI int
ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
{
if (name)
@ -456,13 +456,13 @@ ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
return 1;
}
void
EAPI void
ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id)
{
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
}
int
EAPI int
ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
{
if (id)
@ -470,14 +470,14 @@ ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
return 1;
}
void
EAPI void
ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name)
{
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
name);
}
int
EAPI int
ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
{
if (name)
@ -486,14 +486,14 @@ ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
return 1;
}
void
EAPI void
ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name)
{
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
name);
}
int
EAPI int
ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
{
if (name)
@ -502,7 +502,7 @@ ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
return 1;
}
void
EAPI void
ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
{
_ecore_x_window_prop_string_utf8_set(win,
@ -510,7 +510,7 @@ ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
name);
}
int
EAPI int
ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
{
if (name)
@ -519,13 +519,13 @@ ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
return 1;
}
void
EAPI void
ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
}
int
EAPI int
ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
{
int ret;
@ -541,7 +541,7 @@ ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
/*
* _NET_WM_STRUT is deprecated
*/
void
EAPI void
ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right,
int top, int bottom)
{
@ -557,7 +557,7 @@ ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right,
/*
* _NET_WM_STRUT is deprecated
*/
int
EAPI int
ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
int *top, int *bottom)
{
@ -575,7 +575,7 @@ ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
return 1;
}
void
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,
@ -598,7 +598,7 @@ ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right,
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12);
}
int
EAPI int
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,
@ -626,7 +626,7 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right,
return 1;
}
int
EAPI int
ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
{
unsigned int *data, *p;
@ -710,7 +710,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
return 1;
}
void
EAPI void
ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int height)
{
unsigned int geometry[4];
@ -722,7 +722,7 @@ ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_ICON_GEOMETRY, geometry, 4);
}
int
EAPI int
ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width, int *height)
{
int ret;
@ -739,7 +739,7 @@ ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width,
return 1;
}
void
EAPI void
ecore_x_netwm_pid_set(Ecore_X_Window win, int pid)
{
unsigned int tmp;
@ -749,7 +749,7 @@ ecore_x_netwm_pid_set(Ecore_X_Window win, int pid)
&tmp, 1);
}
int
EAPI int
ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
{
int ret;
@ -761,14 +761,14 @@ ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
return ret == 1 ? 1 : 0;
}
void
EAPI void
ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
}
int
EAPI int
ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
{
int ret = 0;
@ -777,14 +777,14 @@ ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
return ret == 0 ? 1 : 0;
}
void
EAPI void
ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&time, 1);
}
int
EAPI int
ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
{
int ret;
@ -861,7 +861,7 @@ _ecore_x_netwm_state_atom_get(Ecore_X_Window_State s)
}
}
void
EAPI void
ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state, unsigned int num)
{
Ecore_X_Atom *set;
@ -884,7 +884,7 @@ ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state,
free(set);
}
int
EAPI int
ecore_x_netwm_window_state_get(Ecore_X_Window win, Ecore_X_Window_State **state, unsigned int *num)
{
int num_ret, i;
@ -965,7 +965,7 @@ _ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type)
* FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR
* , ECORE_X_WINDOW_TYPE_MENU or ECORE_X_WINDOW_TYPE_DIALOG
*/
void
EAPI void
ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type)
{
Ecore_X_Atom atom;
@ -976,7 +976,7 @@ ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type)
}
/* FIXME: Maybe return 0 on some conditions? */
int
EAPI int
ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
{
int num, i;
@ -1040,7 +1040,7 @@ _ecore_x_netwm_action_atom_get(Ecore_X_Action action)
}
/* FIXME: Get complete list */
int
EAPI int
ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
{
int num, i, ret = 0;
@ -1067,7 +1067,7 @@ ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
}
/* FIXME: Set complete list */
void
EAPI void
ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action action, int on)
{
Ecore_X_Atom atom;
@ -1079,14 +1079,14 @@ ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action action, int
atom, on);
}
void
EAPI void
ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
&opacity, 1);
}
int
EAPI int
ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
{
int ret;
@ -1098,7 +1098,7 @@ ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
return ret == 1 ? 1 : 0;
}
void
EAPI void
ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
{
unsigned int frames[4];
@ -1110,7 +1110,7 @@ ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 4);
}
int
EAPI int
ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb)
{
int ret = 0;
@ -1127,7 +1127,7 @@ ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int
return 1;
}
int
EAPI int
ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter)
{
int ret;
@ -1140,7 +1140,7 @@ ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter
return ret == 1 ? 1 : 0;
}
void
EAPI void
ecore_x_netwm_ping_send(Ecore_X_Window win)
{
XEvent xev;
@ -1162,7 +1162,7 @@ ecore_x_netwm_ping_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
}
void
EAPI void
ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial)
{
XSyncValue value;
@ -1186,7 +1186,7 @@ ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial)
XSendEvent(_ecore_x_disp, win, False, 0, &xev);
}
void
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, int set)
{
@ -1213,7 +1213,7 @@ ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False, 0, &xev);
}
void
EAPI void
ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsigned int desktop)
{
XEvent xev;

View File

@ -20,7 +20,7 @@
* @return New pixmap.
* @ingroup Ecore_X_Pixmap_Group
*/
Ecore_X_Pixmap
EAPI Ecore_X_Pixmap
ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
{
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@ -37,7 +37,7 @@ ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
* @param pmap The given pixmap.
* @ingroup Ecore_X_Pixmap_Group
*/
void
EAPI void
ecore_x_pixmap_del(Ecore_X_Pixmap pmap)
{
XFreePixmap(_ecore_x_disp, pmap);
@ -57,7 +57,7 @@ ecore_x_pixmap_del(Ecore_X_Pixmap pmap)
* @param dy The Y position at which to paste the area on @p dest.
* @ingroup Ecore_X_Pixmap_Group
*/
void
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)
@ -74,7 +74,7 @@ ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest,
* @param h Pointer to an integer in which to store the height.
* @ingroup Ecore_X_Pixmap_Group
*/
void
EAPI void
ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h)
{
if (pmap)
@ -87,7 +87,7 @@ ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h)
* @return The depth of the pixmap.
* @ingroup Ecore_X_Pixmap_Group
*/
int
EAPI int
ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap)
{
return ecore_x_drawable_depth_get(pmap);

View File

@ -3,7 +3,7 @@
*/
#include "ecore_x_private.h"
int
EAPI int
ecore_x_randr_events_select(Ecore_X_Window win, int on)
{
#ifdef ECORE_XRANDR
@ -18,7 +18,7 @@ ecore_x_randr_events_select(Ecore_X_Window win, int on)
#endif
}
Ecore_X_Screen_Size *
EAPI Ecore_X_Screen_Size *
ecore_x_randr_screen_sizes_get(Ecore_X_Window root, int *num)
{
#ifdef ECORE_XRANDR
@ -46,7 +46,7 @@ ecore_x_randr_screen_sizes_get(Ecore_X_Window root, int *num)
#endif
}
Ecore_X_Screen_Size
EAPI Ecore_X_Screen_Size
ecore_x_randr_current_screen_size_get(Ecore_X_Window root)
{
Ecore_X_Screen_Size ret = { -1, -1 };
@ -75,7 +75,7 @@ ecore_x_randr_current_screen_size_get(Ecore_X_Window root)
return ret;
}
int
EAPI int
ecore_x_randr_screen_size_set(Ecore_X_Window root, Ecore_X_Screen_Size size)
{
#ifdef ECORE_XRANDR

View File

@ -152,7 +152,7 @@ _ecore_x_selection_set(Window w, unsigned char *data, int size, Ecore_X_Atom sel
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
int
EAPI int
ecore_x_selection_primary_set(Ecore_X_Window w, unsigned char *data, int size)
{
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY);
@ -164,7 +164,7 @@ ecore_x_selection_primary_set(Ecore_X_Window w, unsigned char *data, int size)
* or 0 if unsuccessful.
*
*/
int
EAPI int
ecore_x_selection_primary_clear(void)
{
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
@ -178,7 +178,7 @@ ecore_x_selection_primary_clear(void)
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
int
EAPI int
ecore_x_selection_secondary_set(Ecore_X_Window w, unsigned char *data, int size)
{
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_SECONDARY);
@ -190,7 +190,7 @@ ecore_x_selection_secondary_set(Ecore_X_Window w, unsigned char *data, int size)
* or 0 if unsuccessful.
*
*/
int
EAPI int
ecore_x_selection_secondary_clear(void)
{
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_SECONDARY);
@ -204,7 +204,7 @@ ecore_x_selection_secondary_clear(void)
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
int
EAPI int
ecore_x_selection_xdnd_set(Ecore_X_Window w, unsigned char *data, int size)
{
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND);
@ -216,7 +216,7 @@ ecore_x_selection_xdnd_set(Ecore_X_Window w, unsigned char *data, int size)
* or 0 if unsuccessful.
*
*/
int
EAPI int
ecore_x_selection_xdnd_clear(void)
{
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
@ -233,7 +233,7 @@ ecore_x_selection_xdnd_clear(void)
* Get the converted data from a previous CLIPBOARD selection
* request. The buffer must be freed when done with.
*/
int
EAPI int
ecore_x_selection_clipboard_set(Ecore_X_Window w, unsigned char *data, int size)
{
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_CLIPBOARD);
@ -245,7 +245,7 @@ ecore_x_selection_clipboard_set(Ecore_X_Window w, unsigned char *data, int size)
* or 0 if unsuccessful.
*
*/
int
EAPI int
ecore_x_selection_clipboard_clear(void)
{
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_CLIPBOARD);
@ -309,19 +309,19 @@ _ecore_x_selection_request(Ecore_X_Window w, Ecore_X_Atom selection, char *targe
w, CurrentTime);
}
void
EAPI void
ecore_x_selection_primary_request(Ecore_X_Window w, char *target)
{
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target);
}
void
EAPI void
ecore_x_selection_secondary_request(Ecore_X_Window w, char *target)
{
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target);
}
void
EAPI void
ecore_x_selection_xdnd_request(Ecore_X_Window w, char *target)
{
Ecore_X_Atom atom;
@ -334,13 +334,13 @@ ecore_x_selection_xdnd_request(Ecore_X_Window w, char *target)
_target->time);
}
void
EAPI void
ecore_x_selection_clipboard_request(Ecore_X_Window w, char *target)
{
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target);
}
void
EAPI void
ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret))
{
@ -374,7 +374,7 @@ ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
cnv->convert = func;
}
void
EAPI void
ecore_x_selection_converter_add(char *target,
int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret))
{
@ -388,7 +388,7 @@ ecore_x_selection_converter_add(char *target,
ecore_x_selection_converter_atom_add(x_target, func);
}
void
EAPI void
ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
{
Ecore_X_Selection_Converter *cnv, *prev_cnv;
@ -413,7 +413,7 @@ ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
}
}
void
EAPI void
ecore_x_selection_converter_del(char *target)
{
Ecore_X_Atom x_target;
@ -521,7 +521,7 @@ _ecore_x_selection_converter_text(char *target, void *data, int size, void **dat
}
}
void
EAPI void
ecore_x_selection_parser_add(const char *target,
void *(*func)(const char *target, unsigned char *data, int size))
{
@ -555,7 +555,7 @@ ecore_x_selection_parser_add(const char *target,
prs->parse = func;
}
void
EAPI void
ecore_x_selection_parser_del(const char *target)
{
Ecore_X_Selection_Parser *prs, *prev_prs;

View File

@ -9,7 +9,7 @@
#include "Ecore_X.h"
#include "Ecore_X_Atoms.h"
Ecore_X_Sync_Alarm
EAPI Ecore_X_Sync_Alarm
ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
{
Ecore_X_Sync_Alarm alarm;
@ -41,7 +41,7 @@ ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
return alarm;
}
int
EAPI int
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{
return XSyncDestroyAlarm(_ecore_x_disp, alarm);

View File

@ -26,7 +26,7 @@ static Ecore_X_Window *ignore_list = NULL;
* @return The new window handle.
* @ingroup Ecore_X_Window_Create_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
Window win;
@ -87,7 +87,7 @@ ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h)
* @return The new window handle.
* @ingroup Ecore_X_Window_Create_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
Window win;
@ -148,7 +148,7 @@ ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h)
* @return The new window.
* @ingroup Ecore_X_Window_Create_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
Window win;
@ -201,7 +201,7 @@ ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h)
* @param win The given window.
* @ingroup Evas_X_Window_Properties_Groups
*/
void
EAPI void
ecore_x_window_defaults_set(Ecore_X_Window win)
{
long pid;
@ -239,7 +239,7 @@ ecore_x_window_defaults_set(Ecore_X_Window win)
ecore_x_icccm_command_set(win, argc, argv);
}
void
EAPI void
ecore_x_window_configure(Ecore_X_Window win,
Ecore_X_Window_Configure_Mask mask,
int x, int y, int w, int h,
@ -273,7 +273,7 @@ ecore_x_window_configure(Ecore_X_Window win,
* @param win The given window.
* @ingroup Evas_X_Window_Destroy_Group
*/
void
EAPI void
ecore_x_window_del(Ecore_X_Window win)
{
/* sorry sir, deleting the root window doesn't sound like
@ -288,7 +288,7 @@ ecore_x_window_del(Ecore_X_Window win)
* @param win The given window.
* @param ignore if to ignore
*/
void
EAPI void
ecore_x_window_ignore_set(Ecore_X_Window win, int ignore)
{
int i, j;
@ -332,7 +332,7 @@ ecore_x_window_ignore_set(Ecore_X_Window win, int ignore)
* @param num number of windows in the list
* @return list of windows to ignore
*/
Ecore_X_Window *
EAPI Ecore_X_Window *
ecore_x_window_ignore_list(int *num)
{
if (num) *num = ignore_num;
@ -344,7 +344,7 @@ ecore_x_window_ignore_list(int *num)
* @param win The given window.
* @ingroup Evas_X_Window_Destroy_Group
*/
void
EAPI void
ecore_x_window_delete_request_send(Ecore_X_Window win)
{
XEvent xev;
@ -380,7 +380,7 @@ ecore_x_window_delete_request_send(Ecore_X_Window win)
* @param win The window to show.
* @ingroup Evas_X_Window_Visibility
*/
void
EAPI void
ecore_x_window_show(Ecore_X_Window win)
{
XMapWindow(_ecore_x_disp, win);
@ -394,7 +394,7 @@ ecore_x_window_show(Ecore_X_Window win)
* @param win The window to hide.
* @ingroup Evas_X_Window_Visibility
*/
void
EAPI void
ecore_x_window_hide(Ecore_X_Window win)
{
XUnmapWindow(_ecore_x_disp, win);
@ -417,7 +417,7 @@ ecore_x_window_hide(Ecore_X_Window win)
* @param y Y position.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_move(Ecore_X_Window win, int x, int y)
{
XMoveWindow(_ecore_x_disp, win, x, y);
@ -430,7 +430,7 @@ ecore_x_window_move(Ecore_X_Window win, int x, int y)
* @param h New height of the window.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_resize(Ecore_X_Window win, int w, int h)
{
if (w < 1) w = 1;
@ -447,7 +447,7 @@ ecore_x_window_resize(Ecore_X_Window win, int w, int h)
* @param h New height of the window.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
{
if (w < 1) w = 1;
@ -466,7 +466,7 @@ ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
* @param win The window to focus.
* @ingroup Ecore_X_Window_Focus_Functions
*/
void
EAPI void
ecore_x_window_focus(Ecore_X_Window win)
{
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@ -480,7 +480,7 @@ ecore_x_window_focus(Ecore_X_Window win)
* @param t When to set the focus to the window.
* @ingroup Ecore_X_Window_Focus_Functions
*/
void
EAPI void
ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
{
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@ -493,7 +493,7 @@ ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
* @return The window that has focus.
* @ingroup Ecore_X_Window_Focus_Functions
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_focus_get(void)
{
Window win;
@ -516,7 +516,7 @@ ecore_x_window_focus_get(void)
* @param win The window to raise.
* @ingroup Ecore_X_Window_Z_Order_Group
*/
void
EAPI void
ecore_x_window_raise(Ecore_X_Window win)
{
XRaiseWindow(_ecore_x_disp, win);
@ -527,7 +527,7 @@ ecore_x_window_raise(Ecore_X_Window win)
* @param win The window to lower.
* @ingroup Ecore_X_Window_Z_Order_Group
*/
void
EAPI void
ecore_x_window_lower(Ecore_X_Window win)
{
XLowerWindow(_ecore_x_disp, win);
@ -547,7 +547,7 @@ ecore_x_window_lower(Ecore_X_Window win)
* @param y Y position within new parent window.
* @ingroup Ecore_X_Window_Parent_Group
*/
void
EAPI void
ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y)
{
if (new_parent == 0) new_parent = DefaultRootWindow(_ecore_x_disp);
@ -561,7 +561,7 @@ ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, in
* @param h Pointer to an integer into which the height is to be stored.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h)
{
int dummy_x, dummy_y;
@ -581,7 +581,7 @@ ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h)
* @param h Pointer to an integer in which the height is to be stored.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
{
if (!win)
@ -596,7 +596,7 @@ ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
* @return Width of the border of @p win.
* @ingroup Ecore_X_Window_Geometry_Group
*/
int
EAPI int
ecore_x_window_border_width_get(Ecore_X_Window win)
{
/* doesn't make sense to call this on a root window */
@ -612,7 +612,7 @@ ecore_x_window_border_width_get(Ecore_X_Window win)
* @param width The new border width.
* @ingroup Ecore_X_Window_Geometry_Group
*/
void
EAPI void
ecore_x_window_border_width_set(Ecore_X_Window win, int width)
{
/* doesn't make sense to call this on a root window */
@ -627,7 +627,7 @@ ecore_x_window_border_width_set(Ecore_X_Window win, int width)
* @param win The given window.
* @return Depth of the window.
*/
int
EAPI int
ecore_x_window_depth_get(Ecore_X_Window win)
{
return ecore_x_drawable_depth_get(win);
@ -638,7 +638,7 @@ ecore_x_window_depth_get(Ecore_X_Window win)
*
* FIXME: To be fixed.
*/
void
EAPI void
ecore_x_window_cursor_show(Ecore_X_Window win, int show)
{
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@ -668,7 +668,7 @@ ecore_x_window_cursor_show(Ecore_X_Window win, int show)
}
}
void
EAPI void
ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c)
{
if (c == 0)
@ -683,7 +683,7 @@ ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c)
* @return 1 if the window is visible, otherwise 0.
* @ingroup Ecore_X_Window_Visibility_Group
*/
int
EAPI int
ecore_x_window_visible_get(Ecore_X_Window win)
{
XWindowAttributes attr;
@ -758,7 +758,7 @@ _ecore_x_window_at_xy_get(Window base, int bx, int by, int x, int y,
* @return The window at that position.
* @ingroup Ecore_X_Window_Geometry_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_at_xy_get(int x, int y)
{
Ecore_X_Window win, root;
@ -782,7 +782,7 @@ ecore_x_window_at_xy_get(int x, int y)
* @return The window at that position.
* @ingroup Ecore_X_Window_Geometry_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_num)
{
Ecore_X_Window win, root;
@ -804,7 +804,7 @@ ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_
* @return The parent window of @p win.
* @ingroup Ecore_X_Window_Parent_Group
*/
Ecore_X_Window
EAPI Ecore_X_Window
ecore_x_window_parent_get(Ecore_X_Window win)
{
Window root, parent, *children = NULL;
@ -823,7 +823,7 @@ ecore_x_window_parent_get(Ecore_X_Window win)
* @param win The given window
* @param color The color to set to (i.e. 0xff0000)
*/
void
EAPI void
ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r,
unsigned short g, unsigned short b)
{
@ -842,7 +842,7 @@ ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r,
XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr);
}
void
EAPI void
ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
{
XSetWindowAttributes att;
@ -851,7 +851,7 @@ ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att);
}
void
EAPI void
ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
{
XSetWindowAttributes att;
@ -860,19 +860,19 @@ ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att);
}
void
EAPI void
ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap)
{
XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap);
}
void
EAPI void
ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h)
{
XClearArea(_ecore_x_disp, win, x, y, w, h, False);
}
void
EAPI void
ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h)
{
XClearArea(_ecore_x_disp, win, x, y, w, h, True);

View File

@ -15,7 +15,7 @@
/*
* Set CARD32 (array) property
*/
void
EAPI void
ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom,
unsigned int *val, unsigned int num)
{
@ -43,7 +43,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom,
* val is returned, otherwise -1 is returned.
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom,
unsigned int *val, unsigned int len)
{
@ -85,7 +85,7 @@ ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom,
* val is returned, otherwise -1 is returned.
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
unsigned int **plst)
{
@ -129,7 +129,7 @@ ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
/*
* Set X ID (array) property
*/
void
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)
@ -160,7 +160,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom,
* val is returned, otherwise -1 is returned.
* Note: Return value 0 means that the property exists but has no elements.
*/
int
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)
@ -208,7 +208,7 @@ ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom,
* The returned array must be freed with free().
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom type, Ecore_X_ID ** val)
{
@ -252,7 +252,7 @@ ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
/*
* Remove/add/toggle X ID list item.
*/
void
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)
{
@ -301,7 +301,7 @@ ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
/*
* Set Atom (array) property
*/
void
EAPI void
ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom * lst, unsigned int num)
{
@ -316,7 +316,7 @@ ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
* val is returned, otherwise -1 is returned.
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom * lst, unsigned int len)
{
@ -331,7 +331,7 @@ ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
* The returned array must be freed with free().
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom ** plst)
{
@ -341,7 +341,7 @@ ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
/*
* Remove/add/toggle atom list item.
*/
void
EAPI void
ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom item, int op)
{
@ -351,7 +351,7 @@ ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
/*
* Set Window (array) property
*/
void
EAPI void
ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window * lst, unsigned int num)
{
@ -366,7 +366,7 @@ ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
* val is returned, otherwise -1 is returned.
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window * lst, unsigned int len)
{
@ -381,7 +381,7 @@ ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
* The returned array must be freed with free().
* Note: Return value 0 means that the property exists but has no elements.
*/
int
EAPI int
ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window ** plst)
{
@ -393,7 +393,7 @@ ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
*
* FIXME: To be fixed.
*/
Ecore_X_Atom
EAPI Ecore_X_Atom
ecore_x_window_prop_any_type(void)
{
return AnyPropertyType;
@ -404,7 +404,7 @@ ecore_x_window_prop_any_type(void)
*
* FIXME: To be fixed.
*/
void
EAPI void
ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, void *data, int number)
{
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@ -432,7 +432,7 @@ ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecor
*
* FIXME: To be fixed.
*/
int
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)
{
Atom type_ret = 0;
@ -488,13 +488,13 @@ ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecor
return 1;
}
void
EAPI void
ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property)
{
XDeleteProperty(_ecore_x_disp, win, property);
}
Ecore_X_Atom *
EAPI Ecore_X_Atom *
ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret)
{
Ecore_X_Atom *atoms;
@ -524,7 +524,7 @@ ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret)
*
* Set a window string property
*/
void
EAPI void
ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str)
{
XTextProperty xtp;
@ -544,7 +544,7 @@ ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char
*
* Return window string property of a window. String must be free'd when done.
*/
char *
EAPI char *
ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type)
{
XTextProperty xtp;
@ -587,7 +587,7 @@ ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type)
return str;
}
int
EAPI int
ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
Ecore_X_WM_Protocol protocol)
{
@ -620,7 +620,7 @@ ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
*
* FIXME: To be fixed.
*/
Ecore_X_WM_Protocol *
EAPI Ecore_X_WM_Protocol *
ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret)
{
Atom *protos = NULL;

View File

@ -16,25 +16,25 @@
* window.
* @ingroup Ecore_X_Window_Shape
*/
void
EAPI void
ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
{
XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
}
void
EAPI void
ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win)
{
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet);
}
void
EAPI void
ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
{
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet);
}
void
EAPI void
ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h)
{
XRectangle rect;
@ -46,7 +46,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int
XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, Unsorted);
}
void
EAPI void
ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
{
XRectangle *rect = NULL;
@ -72,19 +72,19 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects
if (rect) free(rect);
}
void
EAPI void
ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win)
{
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion);
}
void
EAPI void
ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
{
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion);
}
void
EAPI void
ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h)
{
XRectangle rect;
@ -96,7 +96,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int
XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeUnion, Unsorted);
}
void
EAPI void
ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h)
{
XRectangle rect;
@ -108,7 +108,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int
XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted);
}
void
EAPI void
ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
{
XRectangle *rect = NULL;
@ -134,7 +134,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects
if (rect) free(rect);
}
Ecore_X_Rectangle *
EAPI Ecore_X_Rectangle *
ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
{
XRectangle *rect;
@ -161,7 +161,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
return rects;
}
void
EAPI void
ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
{
if (on)

View File

@ -14,7 +14,7 @@ static XineramaScreenInfo *_xin_info = NULL;
static int _xin_scr_num = 0;
#endif
int
EAPI int
ecore_x_xinerama_screen_count_get(void)
{
#ifdef ECORE_XINERAMA
@ -31,7 +31,7 @@ ecore_x_xinerama_screen_count_get(void)
return 0;
}
int
EAPI int
ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h)
{
#ifdef ECORE_XINERAMA