free(e->key_compose);
free(e);
-} /* _ecore_directfb_event_free_key_down */
+}
static void
_ecore_directfb_event_free_key_up(void *data __UNUSED__, void *ev)
free(e->key_compose);
free(e);
-} /* _ecore_directfb_event_free_key_up */
+}
/* directfb window input events handler */
/****************************************/
default:
return;
- } /* switch */
+ }
e->win = _ecore_directfb_fullscreen_window_id;
e->time = 0;
break;
default:
break;
- } /* switch */
+ }
ecore_event_add(ECORE_DIRECTFB_EVENT_MOTION, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_motion */
+}
static void
_ecore_directfb_event_handle_key_down(DFBEvent *evt)
default:
break;
- } /* switch */
+ }
ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_DOWN, e, _ecore_directfb_event_free_key_down, NULL);
-} /* _ecore_directfb_event_handle_key_down */
+}
static void
_ecore_directfb_event_handle_key_up(DFBEvent *evt)
default:
break;
- } /* switch */
+ }
ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_UP, e, _ecore_directfb_event_free_key_up, NULL);
-} /* _ecore_directfb_event_handle_key_up */
+}
static void
_ecore_directfb_event_handle_button_down(DFBEvent *evt)
default:
break;
- } /* switch */
+ }
ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_DOWN, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_button_down */
+}
static void
_ecore_directfb_event_handle_button_up(DFBEvent *evt)
default:
break;
- } /* switch */
+ }
ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_UP, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_button_up */
+}
static void
_ecore_directfb_event_handle_enter(DFBWindowEvent *evt)
e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_ENTER, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_enter */
+}
static void
_ecore_directfb_event_handle_leave(DFBWindowEvent *evt)
e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_LEAVE, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_leave */
+}
static void
_ecore_directfb_event_handle_wheel(DFBWindowEvent *evt)
e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_WHEEL, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_wheel */
+}
static void
_ecore_directfb_event_handle_got_focus(DFBWindowEvent *evt)
e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_GOT_FOCUS, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_got_focus */
+}
static void
_ecore_directfb_event_handle_lost_focus(DFBWindowEvent *evt)
e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_LOST_FOCUS, e, NULL, NULL);
-} /* _ecore_directfb_event_handle_lost_focus */
+}
/* inputs and windows fds handlers */
/***********************************/
_ecore_directfb_event_handle_motion(&evt);
return EINA_TRUE;
-} /* _ecore_directfb_input_event_fd_handler */
+}
static Eina_Bool
_ecore_directfb_window_event_fd_handler(void *data __UNUSED__,Ecore_Fd_Handler *fd_handler __UNUSED__)
_ecore_directfb_event_handle_wheel(&evt.window);
return EINA_TRUE;
-} /* _ecore_directfb_window_event_fd_handler */
+}
/* api functions */
/*****************/
ecore_directfb_interface_get(void)
{
return _dfb;
-} /* ecore_directfb_interface_get */
+}
EAPI Ecore_DirectFB_Window *
ecore_directfb_window_new(int x, int y, int w, int h)
window->cursor = NULL;
return window;
-} /* ecore_directfb_window_new */
+}
EAPI void
ecore_directfb_window_free(Ecore_DirectFB_Window *ecore_window)
DFBCHECK(ecore_window->surface->Release(ecore_window->surface));
DFBCHECK(ecore_window->window->Release(ecore_window->window));
free(ecore_window);
-} /* ecore_directfb_window_free */
+}
EAPI void
ecore_directfb_window_move(Ecore_DirectFB_Window *ecore_window, int x, int y)
{
DFBCHECK(ecore_window->window->MoveTo(ecore_window->window, x, y));
-} /* ecore_directfb_window_move */
+}
EAPI void
ecore_directfb_window_resize(Ecore_DirectFB_Window *ecore_window, int w, int h)
{
DFBCHECK(ecore_window->window->Resize(ecore_window->window, w, h));
-} /* ecore_directfb_window_resize */
+}
EAPI void
ecore_directfb_window_focus(Ecore_DirectFB_Window *ecore_window)
{
DFBCHECK(ecore_window->window->RequestFocus(ecore_window->window));
-} /* ecore_directfb_window_focus */
+}
EAPI void
ecore_directfb_window_hide(Ecore_DirectFB_Window *ecore_window)
{
DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0));
-} /* ecore_directfb_window_hide */
+}
EAPI void
ecore_directfb_window_show(Ecore_DirectFB_Window *ecore_window)
{
DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0xFF));
-} /* ecore_directfb_window_show */
+}
EAPI void
ecore_directfb_window_shaped_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool set)
opts &= ~DWOP_ALPHACHANNEL;
DFBCHECK(ecore_window->window->SetOptions(ecore_window->window, opts));
}
-} /* ecore_directfb_window_shaped_set */
+}
EAPI void
ecore_directfb_window_cursor_show(Ecore_DirectFB_Window *ecore_window, Eina_Bool show)
DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, NULL, 0, 0));
}
}
-} /* ecore_directfb_window_cursor_show */
+}
EAPI void
ecore_directfb_window_cursor_set(Ecore_DirectFB_Window *ecore_window, Ecore_DirectFB_Cursor *cursor)
ecore_window->cursor = cursor;
DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, cursor->surface, cursor->hot_x, cursor->hot_y));
}
-} /* ecore_directfb_window_cursor_set */
+}
EAPI void
ecore_directfb_window_fullscreen_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool on)
DFBCHECK(ecore_window->window->GetSurface(ecore_window->window, &ecore_window->surface));
_ecore_directfb_fullscreen_window_id = 0;
}
-} /* ecore_directfb_window_fullscreen_set */
+}
EAPI void
ecore_directfb_window_size_get(Ecore_DirectFB_Window *ecore_window, int *w, int *h)
{
DFBCHECK(ecore_window->surface->GetSize(ecore_window->surface,w,h));
return;
-} /* ecore_directfb_window_size_get */
+}
EAPI int
ecore_directfb_init(const char *name __UNUSED__)
}
/* create the hash for the windows(key = windowid, val = Ecore_DirectFB_Window struct) */
return _ecore_directfb_init_count;
-} /* ecore_directfb_init */
+}
EAPI int
ecore_directfb_shutdown(void)
eina_log_domain_unregister(_ecore_directfb_log_dom);
_ecore_directfb_log_dom = -1;
return _ecore_directfb_init_count;
-} /* ecore_directfb_shutdown */
+}
_logrt_real_reply = dlsym(lib, "_XReply");
t0 = ecore_time_get();
-} /* _logrt_init */
+}
Status
_XReply(Display *disp,
// fixme: logme
return _logrt_real_reply(disp, rep, extra, discard);
-} /* _XReply */
+}
#endif /* ifdef LOGRT */
eina_shutdown();
return --_ecore_x_init_count;
-} /* ecore_x_init */
+}
static int
_ecore_x_shutdown(int close_display)
eina_shutdown();
return _ecore_x_init_count;
-} /* _ecore_x_shutdown */
+}
/**
* Shuts down the Ecore X library.
ecore_x_shutdown(void)
{
return _ecore_x_shutdown(1);
-} /* ecore_x_shutdown */
+}
/**
* Shuts down the Ecore X library.
ecore_x_disconnect(void)
{
return _ecore_x_shutdown(0);
-} /* ecore_x_disconnect */
+}
/**
* @defgroup Ecore_X_Display_Attr_Group X Display Attributes
ecore_x_display_get(void)
{
return (Ecore_X_Display *)_ecore_x_disp;
-} /* ecore_x_display_get */
+}
/**
* Retrieves the X display file descriptor.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ConnectionNumber(_ecore_x_disp);
-} /* ecore_x_fd_get */
+}
/**
* Retrieves the Ecore_X_Screen handle used for the current X connection.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_Screen *)DefaultScreenOfDisplay(_ecore_x_disp);
-} /* ecore_x_default_screen_get */
+}
/**
* Retrieves the size of an Ecore_X_Screen.
t = 0.0;
_ecore_x_double_click_time = t;
-} /* ecore_x_double_click_time_set */
+}
/**
* Retrieves the double and triple click flag timeout.
ecore_x_double_click_time_get(void)
{
return _ecore_x_double_click_time;
-} /* ecore_x_double_click_time_get */
+}
/**
* @defgroup Ecore_X_Flush_Group X Synchronization Functions
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFlush(_ecore_x_disp);
-} /* ecore_x_flush */
+}
/**
* Flushes the command buffer and waits until all requests have been
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSync(_ecore_x_disp, False);
-} /* ecore_x_sync */
+}
/**
* Kill all clients with subwindows under a given window.
}
XUngrabServer(_ecore_x_disp);
XSync(_ecore_x_disp, False);
-} /* ecore_x_killall */
+}
/**
* Kill a specific client
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XKillClient(_ecore_x_disp, win);
-} /* ecore_x_kill */
+}
/**
* Return the last event time
ecore_x_current_time_get(void)
{
return _ecore_x_event_last_time;
-} /* ecore_x_current_time_get */
+}
/**
* Return the screen DPI
return 75;
return (((s->width * 254) / s->mwidth) + 5) / 10;
-} /* ecore_x_dpi_get */
+}
/**
* Invoke the standard system beep to alert users
return EINA_FALSE;
return EINA_TRUE;
-} /* ecore_x_bell */
+}
static Eina_Bool
_ecore_x_fd_handler(void *data,
}
}
return ECORE_CALLBACK_RENEW;
-} /* _ecore_x_fd_handler */
+}
static Eina_Bool
_ecore_x_fd_handler_buf(void *data,
return ECORE_CALLBACK_RENEW;
return ECORE_CALLBACK_CANCEL;
-} /* _ecore_x_fd_handler_buf */
+}
static int
_ecore_x_key_mask_get(KeySym sym)
}
return 0;
-} /* _ecore_x_key_mask_get */
+}
/*****************************************************************************/
/*****************************************************************************/
roots[i] = RootWindow(_ecore_x_disp, i);
#endif /* ifdef ECORE_XPRINT */
return roots;
-} /* ecore_x_window_root_list */
+}
EAPI Ecore_X_Window
ecore_x_window_root_first_get(void)
free(roots);
return root;
*/
-} /* ecore_x_window_root_first_get */
+}
static void _ecore_x_window_manage_error(void *data);
if ((ecore_x_error_request_get() == X_ChangeWindowAttributes) &&
(ecore_x_error_code_get() == BadAccess))
_ecore_x_window_manage_failed = 1;
-} /* _ecore_x_window_manage_error */
+}
EAPI Eina_Bool
ecore_x_window_manage(Ecore_X_Window win)
}
return EINA_TRUE;
-} /* ecore_x_window_manage */
+}
EAPI void
ecore_x_window_container_manage(Ecore_X_Window win)
XSelectInput(_ecore_x_disp, win,
SubstructureRedirectMask |
SubstructureNotifyMask);
-} /* ecore_x_window_container_manage */
+}
EAPI void
ecore_x_window_client_manage(Ecore_X_Window win)
SubstructureNotifyMask
);
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
-} /* ecore_x_window_client_manage */
+}
EAPI void
ecore_x_window_sniff(Ecore_X_Window win)
XSelectInput(_ecore_x_disp, win,
PropertyChangeMask |
SubstructureNotifyMask);
-} /* ecore_x_window_sniff */
+}
EAPI void
ecore_x_window_client_sniff(Ecore_X_Window win)
StructureNotifyMask |
SubstructureNotifyMask);
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
-} /* ecore_x_window_client_sniff */
+}
EAPI Eina_Bool
ecore_x_window_attributes_get(Ecore_X_Window win,
att_ret->colormap = att.colormap;
att_ret->visual = att.visual;
return EINA_TRUE;
-} /* ecore_x_window_attributes_get */
+}
EAPI void
ecore_x_window_save_set_add(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAddToSaveSet(_ecore_x_disp, win);
-} /* ecore_x_window_save_set_add */
+}
EAPI void
ecore_x_window_save_set_del(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRemoveFromSaveSet(_ecore_x_disp, win);
-} /* ecore_x_window_save_set_del */
+}
EAPI Ecore_X_Window *
ecore_x_window_children_get(Ecore_X_Window win,
}
return windows;
-} /* ecore_x_window_children_get */
+}
EAPI Eina_Bool
ecore_x_pointer_control_set(int accel_num,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XChangePointerControl(_ecore_x_disp, 1, 1,
accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_pointer_control_set */
+}
EAPI Eina_Bool
ecore_x_pointer_control_get(int *accel_num,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerControl(_ecore_x_disp,
accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_pointer_control_get */
+}
EAPI Eina_Bool
ecore_x_pointer_mapping_set(unsigned char *map,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_pointer_mapping_set */
+}
EAPI Eina_Bool
ecore_x_pointer_mapping_get(unsigned char *map,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_pointer_mapping_get */
+}
EAPI Eina_Bool
ecore_x_pointer_grab(Ecore_X_Window win)
return EINA_TRUE;
return EINA_FALSE;
-} /* ecore_x_pointer_grab */
+}
EAPI Eina_Bool
ecore_x_pointer_confine_grab(Ecore_X_Window win)
return EINA_TRUE;
return EINA_FALSE;
-} /* ecore_x_pointer_confine_grab */
+}
EAPI void
ecore_x_pointer_ungrab(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabPointer(_ecore_x_disp, CurrentTime);
-} /* ecore_x_pointer_ungrab */
+}
EAPI Eina_Bool
ecore_x_pointer_warp(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_pointer_warp */
+}
EAPI Eina_Bool
ecore_x_keyboard_grab(Ecore_X_Window win)
return EINA_TRUE;
return EINA_FALSE;
-} /* ecore_x_keyboard_grab */
+}
EAPI void
ecore_x_keyboard_ungrab(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabKeyboard(_ecore_x_disp, CurrentTime);
-} /* ecore_x_keyboard_ungrab */
+}
EAPI void
ecore_x_grab(void)
_ecore_x_grab_count++;
if (_ecore_x_grab_count == 1)
XGrabServer(_ecore_x_disp);
-} /* ecore_x_grab */
+}
EAPI void
ecore_x_ungrab(void)
if (_ecore_x_grab_count == 0)
XUngrabServer(_ecore_x_disp);
-} /* ecore_x_ungrab */
+}
int _ecore_window_grabs_num = 0;
Window *_ecore_window_grabs = NULL;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_window_grab_replay_func = func;
_ecore_window_grab_replay_data = data;
-} /* ecore_x_passive_grab_replay_func_set */
+}
EAPI void
ecore_x_window_button_grab(Ecore_X_Window win,
if (!t) return;
_ecore_window_grabs = t;
_ecore_window_grabs[_ecore_window_grabs_num - 1] = win;
-} /* ecore_x_window_button_grab */
+}
void
_ecore_x_sync_magic_send(int val,
xev.xclient.data.l[1] = 0x10000000 + val;
xev.xclient.data.l[2] = swin;
XSendEvent(_ecore_x_disp, _ecore_x_private_win, False, NoEventMask, &xev);
-} /* _ecore_x_sync_magic_send */
+}
void
_ecore_x_window_grab_remove(Ecore_X_Window win)
_ecore_window_grabs = t;
}
}
-} /* _ecore_x_window_grab_remove */
+}
EAPI void
ecore_x_window_button_ungrab(Ecore_X_Window win,
for (i = 0; i < 8; i++)
XUngrabButton(_ecore_x_disp, b, m | locks[i], win);
_ecore_x_sync_magic_send(1, win);
-} /* ecore_x_window_button_ungrab */
+}
int _ecore_key_grabs_num = 0;
Window *_ecore_key_grabs = NULL;
if (!t) return;
_ecore_key_grabs = t;
_ecore_key_grabs[_ecore_key_grabs_num - 1] = win;
-} /* ecore_x_window_key_grab */
+}
void
_ecore_x_key_grab_remove(Ecore_X_Window win)
_ecore_key_grabs = t;
}
}
-} /* _ecore_x_key_grab_remove */
+}
EAPI void
ecore_x_window_key_ungrab(Ecore_X_Window win,
for (i = 0; i < 8; i++)
XUngrabKey(_ecore_x_disp, keycode, m | locks[i], win);
_ecore_x_sync_magic_send(2, win);
-} /* ecore_x_window_key_ungrab */
+}
/**
* Send client message with given type and format 32.
xev.xclient.data.l[4] = d4;
return XSendEvent(_ecore_x_disp, win, False, mask, &xev) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_client_message32_send */
+}
/**
* Send client message with given type and format 8.
memset(xev.xclient.data.b + len, 0, 20 - len);
return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_client_message8_send */
+}
EAPI Eina_Bool
ecore_x_mouse_move_send(Ecore_X_Window win,
xev.xmotion.is_hint = 0;
xev.xmotion.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_mouse_move_send */
+}
EAPI Eina_Bool
ecore_x_mouse_down_send(Ecore_X_Window win,
xev.xbutton.button = b;
xev.xbutton.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_mouse_down_send */
+}
EAPI Eina_Bool
ecore_x_mouse_up_send(Ecore_X_Window win,
xev.xbutton.button = b;
xev.xbutton.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_mouse_up_send */
+}
EAPI void
ecore_x_focus_reset(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
-} /* ecore_x_focus_reset */
+}
EAPI void
ecore_x_events_allow_all(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
-} /* ecore_x_events_allow_all */
+}
EAPI void
ecore_x_pointer_last_xy_get(int *x,
if (y)
*y = _ecore_x_event_last_root_y;
-} /* ecore_x_pointer_last_xy_get */
+}
EAPI void
ecore_x_pointer_xy_get(Ecore_X_Window win,
if (x) *x = wx;
if (y) *y = wy;
-} /* ecore_x_pointer_xy_get */
+}
/**
* Retrieve the Visual ID from a given Visual.
xmodifiers |= ECORE_X_LOCK_SHIFT;
return xmodifiers;
-} /* _ecore_x_event_modifier */
+}
for (i = 0; i < num; i++) names[i] = (char *)items[i].name;
XInternAtoms(_ecore_x_disp, names, num, False, atoms);
for (i = 0; i < num; i++) *(items[i].atom) = atoms[i];
-} /* _ecore_x_atoms_init */
+}
/**
* Retrieves the atom value associated with the given name.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XInternAtom(_ecore_x_disp, name, False);
-} /* ecore_x_atom_get */
+}
EAPI void
ecore_x_atoms_get(const char **names,
XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int);
for (i = 0; i < num; i++)
atoms[i] = atoms_int[i];
-} /* ecore_x_atoms_get */
+}
EAPI char *
ecore_x_atom_name_get(Ecore_X_Atom atom)
XFree(xname);
return name;
-} /* ecore_x_atom_name_get */
+}
# endif
}
#endif
-} /* _ecore_x_composite_init */
+}
EAPI Eina_Bool
ecore_x_composite_query(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _composite_available;
-} /* ecore_x_composite_query */
+}
EAPI void
ecore_x_composite_redirect_window(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual;
break;
- } /* switch */
+ }
XCompositeRedirectWindow(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */
-} /* ecore_x_composite_redirect_window */
+}
EAPI void
ecore_x_composite_redirect_subwindows(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual;
break;
- } /* switch */
+ }
XCompositeRedirectSubwindows(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */
-} /* ecore_x_composite_redirect_subwindows */
+}
EAPI void
ecore_x_composite_unredirect_window(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual;
break;
- } /* switch */
+ }
XCompositeUnredirectWindow(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */
-} /* ecore_x_composite_unredirect_window */
+}
EAPI void
ecore_x_composite_unredirect_subwindows(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual;
break;
- } /* switch */
+ }
XCompositeUnredirectSubwindows(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */
-} /* ecore_x_composite_unredirect_subwindows */
+}
EAPI Ecore_X_Pixmap
ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win)
pixmap = XCompositeNameWindowPixmap(_ecore_x_disp, win);
#endif /* ifdef ECORE_XCOMPOSITE */
return pixmap;
-} /* ecore_x_composite_name_window_pixmap_get */
+}
EAPI void
ecore_x_composite_window_events_disable(Ecore_X_Window win)
ecore_x_composite_window_events_disable(win);
#endif /* ifdef ECORE_XCOMPOSITE */
return win;
-} /* ecore_x_composite_render_window_enable */
+}
EAPI void
ecore_x_composite_render_window_disable(Ecore_X_Window root)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCompositeReleaseOverlayWindow(_ecore_x_disp, root);
#endif /* ifdef ECORE_XCOMPOSITE */
-} /* ecore_x_composite_render_window_disable */
+}
ecore_x_cursor_color_supported_get(void)
{
return _ecore_x_xcursor;
-} /* ecore_x_cursor_color_supported_get */
+}
EAPI Ecore_X_Cursor
ecore_x_cursor_new(Ecore_X_Window win,
}
return 0;
-} /* ecore_x_cursor_new */
+}
EAPI void
ecore_x_cursor_free(Ecore_X_Cursor c)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeCursor(_ecore_x_disp, c);
-} /* ecore_x_cursor_free */
+}
/*
* Returns the cursor for the given shape.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* Shapes are defined in Ecore_X_Cursor.h */
return XCreateFontCursor(_ecore_x_disp, shape);
-} /* ecore_x_cursor_shape_get */
+}
EAPI void
ecore_x_cursor_size_set(int size)
#else /* ifdef ECORE_XCURSOR */
size = 0;
#endif /* ifdef ECORE_XCURSOR */
-} /* ecore_x_cursor_size_set */
+}
EAPI int
ecore_x_cursor_size_get(void)
#else /* ifdef ECORE_XCURSOR */
return 0;
#endif /* ifdef ECORE_XCURSOR */
-} /* ecore_x_cursor_size_get */
+}
#else /* ifdef ECORE_XDAMAGE */
_damage_available = EINA_FALSE;
#endif /* ifdef ECORE_XDAMAGE */
-} /* _ecore_x_damage_init */
+}
EAPI Eina_Bool
ecore_x_damage_query(void)
{
return _damage_available;
-} /* ecore_x_damage_query */
+}
EAPI Ecore_X_Damage
ecore_x_damage_new(Ecore_X_Drawable d,
#else /* ifdef ECORE_XDAMAGE */
return 0;
#endif /* ifdef ECORE_XDAMAGE */
-} /* ecore_x_damage_new */
+}
EAPI void
ecore_x_damage_free(Ecore_X_Damage damage)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageDestroy(_ecore_x_disp, damage);
#endif /* ifdef ECORE_XDAMAGE */
-} /* ecore_x_damage_free */
+}
EAPI void
ecore_x_damage_subtract(Ecore_X_Damage damage,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageSubtract(_ecore_x_disp, damage, repair, parts);
#endif /* ifdef ECORE_XDAMAGE */
-} /* ecore_x_damage_subtract */
+}
}
_ecore_x_dnd_init_count++;
-} /* _ecore_x_dnd_init */
+}
void
_ecore_x_dnd_shutdown(void)
_target = NULL;
_ecore_x_dnd_init_count = 0;
-} /* _ecore_x_dnd_shutdown */
+}
static Eina_Bool
_ecore_x_dnd_converter_copy(char *target __UNUSED__,
free(mystr);
return EINA_FALSE;
}
-} /* _ecore_x_dnd_converter_copy */
+}
EAPI void
ecore_x_dnd_aware_set(Ecore_X_Window win,
XA_ATOM, 32, &prop_data, 1);
else
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE);
-} /* ecore_x_dnd_aware_set */
+}
EAPI int
ecore_x_dnd_version_get(Ecore_X_Window win)
}
return 0;
-} /* ecore_x_dnd_version_get */
+}
EAPI Eina_Bool
ecore_x_dnd_type_isset(Ecore_X_Window win,
XFree(data);
return ret;
-} /* ecore_x_dnd_type_isset */
+}
EAPI void
ecore_x_dnd_type_set(Ecore_X_Window win,
XFree(oldset);
free(newset);
-} /* ecore_x_dnd_type_set */
+}
EAPI void
ecore_x_dnd_types_set(Ecore_X_Window win,
XA_ATOM, 32, data, num_types);
free(newset);
}
-} /* ecore_x_dnd_types_set */
+}
EAPI void
ecore_x_dnd_actions_set(Ecore_X_Window win,
ecore_x_window_prop_property_set(win, ECORE_X_ATOM_XDND_ACTION_LIST,
XA_ATOM, 32, data, num_actions);
}
-} /* ecore_x_dnd_actions_set */
+}
/**
* The DND position update cb is called Ecore_X sends a DND position to a
_ecore_x_dnd_source_get(void)
{
return _source;
-} /* _ecore_x_dnd_source_get */
+}
Ecore_X_DND_Target *
_ecore_x_dnd_target_get(void)
{
return _target;
-} /* _ecore_x_dnd_target_get */
+}
EAPI Eina_Bool
ecore_x_dnd_begin(Ecore_X_Window source,
_source->dest = None;
return EINA_TRUE;
-} /* ecore_x_dnd_begin */
+}
EAPI Eina_Bool
ecore_x_dnd_drop(void)
_source->prev.window = 0;
return status;
-} /* ecore_x_dnd_drop */
+}
EAPI void
ecore_x_dnd_send_status(Eina_Bool will_accept,
}
XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
-} /* ecore_x_dnd_send_status */
+}
EAPI void
ecore_x_dnd_send_finished(void)
XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
_target->state = ECORE_X_DND_TARGET_IDLE;
-} /* ecore_x_dnd_send_finished */
+}
EAPI void
ecore_x_dnd_source_action_set(Ecore_X_Atom action)
_source->action = action;
if (_source->prev.window)
_ecore_x_dnd_drag(_source->prev.window, _source->prev.x, _source->prev.y);
-} /* ecore_x_dnd_source_action_set */
+}
EAPI Ecore_X_Atom
ecore_x_dnd_source_action_get(void)
{
return _source->action;
-} /* ecore_x_dnd_source_action_get */
+}
void
_ecore_x_dnd_drag(Ecore_X_Window root,
_source->prev.y = y;
_source->prev.window = root;
_source->dest = win;
-} /* _ecore_x_dnd_drag */
+}
/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/
#else /* ifdef ECORE_XDPMS */
_dpms_available = EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
-} /* _ecore_x_dpms_init */
+}
/**
* @defgroup Ecore_X_DPMS_Group X DPMS Extension Functions
ecore_x_dpms_query(void)
{
return _dpms_available;
-} /* ecore_x_dpms_query */
+}
/**
* Checks if the X server is capable of DPMS.
#else /* ifdef ECORE_XDPMS */
return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_capable_get */
+}
/**
* Checks the DPMS state of the display.
#else /* ifdef ECORE_XDPMS */
return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_enabled_get */
+}
/**
* Sets the DPMS state of the display.
DPMSDisable(_ecore_x_disp);
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_enabled_set */
+}
/**
* Gets the timeouts. The values are in unit of seconds.
DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
(unsigned short *)suspend, (unsigned short *)off);
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeouts_get */
+}
/**
* Sets the timeouts. The values are in unit of seconds.
#else /* ifdef ECORE_XDPMS */
return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeouts_set */
+}
/**
* Returns the amount of time of inactivity before standby mode is invoked.
#else /* ifdef ECORE_XDPMS */
return 0;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_standby_get */
+}
/**
* Returns the amount of time of inactivity before the second level of
#else /* ifdef ECORE_XDPMS */
return 0;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_suspend_get */
+}
/**
* Returns the amount of time of inactivity before the third and final
#else /* ifdef ECORE_XDPMS */
return 0;
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_off_get */
+}
/**
* Sets the standby timeout (in unit of seconds).
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off);
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_standby_set */
+}
/**
* Sets the suspend timeout (in unit of seconds).
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off);
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_suspend_set */
+}
/**
* Sets the off timeout (in unit of seconds).
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
#endif /* ifdef ECORE_XDPMS */
-} /* ecore_x_dpms_timeout_off_set */
+}
if (h)
*h = (int)ret_h;
-} /* ecore_x_drawable_geometry_get */
+}
/**
* Retrieves the width of the border of the given drawable.
border_ret = 0;
return (int)border_ret;
-} /* ecore_x_drawable_border_width_get */
+}
/**
* Retrieves the depth of the given drawable.
depth_ret = 0;
return (int)depth_ret;
-} /* ecore_x_drawable_depth_get */
+}
/**
* Fill the specified rectangle on a drawable.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFillRectangle(_ecore_x_disp, d, gc, x, y, width, height);
-} /* ecore_x_drawable_rectangle_fill */
+}
EAPI void
ecore_x_e_init(void)
{
-} /* ecore_x_e_init */
+}
EAPI void
ecore_x_e_frame_size_set(Ecore_X_Window win,
frames[2] = ft;
frames[3] = fb;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_FRAME_SIZE, frames, 4);
-} /* ecore_x_e_frame_size_set */
+}
EAPI void
ecore_x_e_virtual_keyboard_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD,
&is_keyboard, 1);
-} /* ecore_x_e_virtual_keyboard_set */
+}
EAPI Eina_Bool
ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_e_virtual_keyboard_get */
+}
static Ecore_X_Virtual_Keyboard_State
_ecore_x_e_vkbd_state_get(Ecore_X_Atom atom)
return ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME;
return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
-} /* _ecore_x_e_vkbd_state_get */
+}
static Ecore_X_Atom
_ecore_x_e_vkbd_atom_get(Ecore_X_Virtual_Keyboard_State state)
return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_J2ME;
default: break;
- } /* switch */
+ }
return 0;
-} /* _ecore_x_e_vkbd_atom_get */
+}
EAPI void
ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win,
atom = _ecore_x_e_vkbd_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
&atom, 1);
-} /* ecore_x_e_virtual_keyboard_state_set */
+}
EAPI Ecore_X_Virtual_Keyboard_State
ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win)
return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
return _ecore_x_e_vkbd_state_get(atom);
-} /* ecore_x_e_virtual_keyboard_state_get */
+}
EAPI void
ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_vkbd_atom_get(state),
0, 0, 0, 0);
-} /* ecore_x_e_virtual_keyboard_state_send */
+}
static Ecore_X_Atom
_ecore_x_e_illume_atom_get(Ecore_X_Illume_Mode mode)
default:
break;
- } /* switch */
+ }
return ECORE_X_ILLUME_MODE_UNKNOWN;
-} /* _ecore_x_e_illume_atom_get */
+}
static Ecore_X_Illume_Mode
_ecore_x_e_illume_mode_get(Ecore_X_Atom atom)
return ECORE_X_ILLUME_MODE_DUAL_LEFT;
return ECORE_X_ILLUME_MODE_UNKNOWN;
-} /* _ecore_x_e_illume_mode_get */
+}
EAPI void
ecore_x_e_illume_zone_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE,
&zone, 1);
-} /* ecore_x_e_illume_zone_set */
+}
EAPI Ecore_X_Window
ecore_x_e_illume_zone_get(Ecore_X_Window win)
return 0;
return zone;
-} /* ecore_x_e_illume_zone_get */
+}
EAPI void
ecore_x_e_illume_zone_list_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE_LIST,
zones, n_zones);
-} /* ecore_x_e_illume_zone_list_set */
+}
EAPI void
ecore_x_e_illume_conformant_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
&is_conformant, 1);
-} /* ecore_x_e_illume_conformant_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_conformant_get(Ecore_X_Window win)
return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_e_illume_conformant_get */
+}
EAPI void
ecore_x_e_illume_mode_set(Ecore_X_Window win,
atom = _ecore_x_e_illume_atom_get(mode);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_MODE,
&atom, 1);
-} /* ecore_x_e_illume_mode_set */
+}
EAPI Ecore_X_Illume_Mode
ecore_x_e_illume_mode_get(Ecore_X_Window win)
return ECORE_X_ILLUME_MODE_UNKNOWN;
return _ecore_x_e_illume_mode_get(atom);
-} /* ecore_x_e_illume_mode_get */
+}
EAPI void
ecore_x_e_illume_mode_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_illume_atom_get(mode),
0, 0, 0, 0);
-} /* ecore_x_e_illume_mode_send */
+}
EAPI void
ecore_x_e_illume_focus_back_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_BACK,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_focus_back_send */
+}
EAPI void
ecore_x_e_illume_focus_forward_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_FORWARD,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_focus_forward_send */
+}
EAPI void
ecore_x_e_illume_focus_home_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_HOME,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_focus_home_send */
+}
EAPI void
ecore_x_e_illume_close_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_CLOSE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_close_send */
+}
EAPI void
ecore_x_e_illume_home_new_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_NEW,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_home_new_send */
+}
EAPI void
ecore_x_e_illume_home_del_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_DEL,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_home_del_send */
+}
EAPI void
ecore_x_e_illume_drag_set(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
-} /* ecore_x_e_illume_drag_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_drag_get(Ecore_X_Window win)
return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_e_illume_drag_get */
+}
EAPI void
ecore_x_e_illume_drag_locked_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&is_locked, 1);
-} /* ecore_x_e_illume_drag_locked_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_e_illume_drag_locked_get */
+}
EAPI void
ecore_x_e_illume_drag_start_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_START,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_drag_start_send */
+}
EAPI void
ecore_x_e_illume_drag_end_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_END,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_drag_end_send */
+}
EAPI void
ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win,
geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY,
geom, 4);
-} /* ecore_x_e_illume_indicator_geometry_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
*h = geom[3];
return EINA_TRUE;
-} /* ecore_x_e_illume_indicator_geometry_get */
+}
EAPI void
ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win,
geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY,
geom, 4);
-} /* ecore_x_e_illume_softkey_geometry_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
*h = geom[3];
return EINA_TRUE;
-} /* ecore_x_e_illume_softkey_geometry_get */
+}
EAPI void
ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win,
geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY,
geom, 4);
-} /* ecore_x_e_illume_keyboard_geometry_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
*h = geom[3];
return EINA_TRUE;
-} /* ecore_x_e_illume_keyboard_geometry_get */
+}
static Ecore_X_Atom
_ecore_x_e_quickpanel_atom_get(Ecore_X_Illume_Quickpanel_State state)
default:
break;
- } /* switch */
+ }
return 0;
-} /* _ecore_x_e_quickpanel_atom_get */
+}
static Ecore_X_Illume_Quickpanel_State
_ecore_x_e_quickpanel_state_get(Ecore_X_Atom atom)
return ECORE_X_ILLUME_QUICKPANEL_STATE_OFF;
return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN;
-} /* _ecore_x_e_quickpanel_state_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
&is_quickpanel, 1);
-} /* ecore_x_e_illume_quickpanel_set */
+}
EAPI Eina_Bool
ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_e_illume_quickpanel_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win,
atom = _ecore_x_e_quickpanel_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE,
&atom, 1);
-} /* ecore_x_e_illume_quickpanel_state_set */
+}
EAPI Ecore_X_Illume_Quickpanel_State
ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win)
return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN;
return _ecore_x_e_quickpanel_state_get(atom);
-} /* ecore_x_e_illume_quickpanel_state_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_quickpanel_atom_get(state),
0, 0, 0, 0);
-} /* ecore_x_e_illume_quickpanel_state_send */
+}
EAPI void
ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win)
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE_TOGGLE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
0, 0, 0, 0, 0);
-} /* ecore_x_e_illume_quickpanel_state_toggle */
+}
EAPI void
ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&priority, 1);
-} /* ecore_x_e_illume_quickpanel_priority_major_set */
+}
EAPI int
ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
return 0;
return val;
-} /* ecore_x_e_illume_quickpanel_priority_major_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&priority, 1);
-} /* ecore_x_e_illume_quickpanel_priority_minor_set */
+}
EAPI int
ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
return 0;
return val;
-} /* ecore_x_e_illume_quickpanel_priority_minor_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_ZONE,
&zone, 1);
-} /* ecore_x_e_illume_quickpanel_zone_set */
+}
EAPI int
ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win)
return 0;
return val;
-} /* ecore_x_e_illume_quickpanel_zone_get */
+}
EAPI void
ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
-} /* ecore_x_e_illume_quickpanel_position_update_send */
+}
EAPI void
ecore_x_e_comp_sync_counter_set(Ecore_X_Window win,
ECORE_X_ATOM_CARDINAL, &counter, 1);
else
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_COMP_SYNC_COUNTER);
-} /* ecore_x_e_comp_sync_counter_set */
+}
EAPI Ecore_X_Sync_Counter
ecore_x_e_comp_sync_counter_get(Ecore_X_Window win)
return 0;
return counter;
-} /* ecore_x_e_comp_sync_counter_get */
+}
EAPI void
ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_sync_draw_done_send */
+}
EAPI void
ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_sync_draw_done_send */
+}
EAPI void
ecore_x_e_comp_sync_supported_set(Ecore_X_Window root,
ecore_x_window_free(win);
}
}
-} /* ecore_x_e_comp_sync_supported_set */
+}
EAPI Eina_Bool
ecore_x_e_comp_sync_supported_get(Ecore_X_Window root)
}
return EINA_FALSE;
-} /* ecore_x_e_comp_sync_supported_get */
+}
EAPI void
ecore_x_e_comp_sync_begin_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_sync_begin_send */
+}
EAPI void
ecore_x_e_comp_sync_end_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_sync_end_send */
+}
EAPI void
ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_sync_cancel_send */
+}
EAPI void
ecore_x_e_comp_flush_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_flush_send */
+}
EAPI void
ecore_x_e_comp_dump_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev);
-} /* ecore_x_e_comp_dump_send */
+}
EAPI void
ecore_x_e_comp_pixmap_set(Ecore_X_Window win,
ECORE_X_ATOM_PIXMAP, &pixmap, 1);
else
ecore_x_window_prop_property_del(win, pixmap);
-} /* ecore_x_e_comp_pixmap_set */
+}
EAPI Ecore_X_Pixmap
ecore_x_e_comp_pixmap_get(Ecore_X_Window win)
return 0;
return pixmap;
-} /* ecore_x_e_comp_pixmap_get */
+}
{
_error_func = func;
_error_data = (void *)data;
-} /* ecore_x_error_handler_set */
+}
/**
* Set the I/O error handler.
{
_io_error_func = func;
_io_error_data = (void *)data;
-} /* ecore_x_io_error_handler_set */
+}
/**
* Get the request code that caused the error.
ecore_x_error_request_get(void)
{
return _error_request_code;
-} /* ecore_x_error_request_get */
+}
/**
* Get the error code from the error.
ecore_x_error_code_get(void)
{
return _error_code;
-} /* ecore_x_error_code_get */
+}
void
_ecore_x_error_handler_init(void)
{
XSetErrorHandler((XErrorHandler)_ecore_x_error_handle);
XSetIOErrorHandler((XIOErrorHandler)_ecore_x_io_error_handle);
-} /* _ecore_x_error_handler_init */
+}
static int
_ecore_x_error_handle(Display *d,
_error_func(_error_data);
}
return 0;
-} /* _ecore_x_error_handle */
+}
static int
_ecore_x_io_error_handle(Display *d)
}
return 0;
-} /* _ecore_x_io_error_handle */
+}
}
free(e);
-} /* _ecore_x_event_free_mouse_move */
+}
EAPI void
ecore_x_event_mask_set(Ecore_X_Window w,
XGetWindowAttributes(_ecore_x_disp, w, &attr);
s_attr.event_mask = mask | attr.your_event_mask;
XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
-} /* ecore_x_event_mask_set */
+}
EAPI void
ecore_x_event_mask_unset(Ecore_X_Window w,
XGetWindowAttributes(_ecore_x_disp, w, &attr);
s_attr.event_mask = attr.your_event_mask & ~mask;
XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
-} /* ecore_x_event_mask_unset */
+}
static void
_ecore_x_event_free_xdnd_enter(void *data __UNUSED__,
XFree(e->types[i]);
free(e->types);
free(e);
-} /* _ecore_x_event_free_xdnd_enter */
+}
static void
_ecore_x_event_free_selection_notify(void *data __UNUSED__,
free(e->target);
free(e);
-} /* _ecore_x_event_free_selection_notify */
+}
static unsigned int
_ecore_x_event_modifiers(unsigned int state)
modifiers |= ECORE_EVENT_LOCK_SHIFT;
return modifiers;
-} /* _ecore_x_event_modifiers */
+}
void
_ecore_mouse_move(unsigned int timestamp,
_ecore_x_event_last_root_y = y_root;
_ecore_x_last_event_mouse_move_event = event;
-} /* _ecore_mouse_move */
+}
static void
_ecore_key_press(int event,
on_error:
if (tmp)
free(tmp);
-} /* _ecore_key_press */
+}
Ecore_Event_Mouse_Button *
_ecore_mouse_button(int event,
}
return e;
-} /* _ecore_mouse_button */
+}
void
_ecore_x_event_handle_any_event(XEvent *xevent)
if (!ev) return;
memcpy(ev, xevent, sizeof(XEvent));
ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL);
-} /* _ecore_x_event_handle_any_event */
+}
void
_ecore_x_event_handle_key_press(XEvent *xevent)
{
_ecore_key_press(ECORE_EVENT_KEY_DOWN, (XKeyEvent *)xevent);
-} /* _ecore_x_event_handle_key_press */
+}
void
_ecore_x_event_handle_key_release(XEvent *xevent)
{
_ecore_key_press(ECORE_EVENT_KEY_UP, (XKeyEvent *)xevent);
-} /* _ecore_x_event_handle_key_release */
+}
void
_ecore_x_event_handle_button_press(XEvent *xevent)
case 7: e->direction = 1; e->z = 1; break;
default: e->direction = 0; e->z = 0; break;
- } /* switch */
+ }
e->x = xevent->xbutton.x;
e->y = xevent->xbutton.y;
}
}
}
-} /* _ecore_x_event_handle_button_press */
+}
void
_ecore_x_event_handle_button_release(XEvent *xevent)
xevent->xbutton.x, xevent->xbutton.y,
xevent->xbutton.x_root, xevent->xbutton.y_root);
}
-} /* _ecore_x_event_handle_button_release */
+}
void
_ecore_x_event_handle_motion_notify(XEvent *xevent)
_ecore_x_dnd_drag(xevent->xmotion.root,
xevent->xmotion.x_root,
xevent->xmotion.y_root);
-} /* _ecore_x_event_handle_motion_notify */
+}
void
_ecore_x_event_handle_enter_notify(XEvent *xevent)
_ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_MOUSE_IN, e, NULL, NULL);
}
-} /* _ecore_x_event_handle_enter_notify */
+}
void
_ecore_x_event_handle_leave_notify(XEvent *xevent)
_ecore_x_event_last_root_y = e->root.y;
ecore_event_add(ECORE_X_EVENT_MOUSE_OUT, e, NULL, NULL);
}
-} /* _ecore_x_event_handle_leave_notify */
+}
void
_ecore_x_event_handle_focus_in(XEvent *xevent)
e->time = _ecore_x_event_last_time;
_ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_IN, e, NULL, NULL);
-} /* _ecore_x_event_handle_focus_in */
+}
void
_ecore_x_event_handle_focus_out(XEvent *xevent)
e->time = _ecore_x_event_last_time;
_ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_OUT, e, NULL, NULL);
-} /* _ecore_x_event_handle_focus_out */
+}
void
_ecore_x_event_handle_keymap_notify(XEvent *xevent __UNUSED__)
{
_ecore_x_last_event_mouse_move = 0;
/* FIXME: handle this event type */
-} /* _ecore_x_event_handle_keymap_notify */
+}
void
_ecore_x_event_handle_expose(XEvent *xevent)
e->h = xevent->xexpose.height;
e->count = xevent->xexpose.count;
ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_expose */
+}
void
_ecore_x_event_handle_graphics_expose(XEvent *xevent)
e->h = xevent->xgraphicsexpose.height;
e->count = xevent->xgraphicsexpose.count;
ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_graphics_expose */
+}
void
_ecore_x_event_handle_visibility_notify(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, e, NULL, NULL);
}
-} /* _ecore_x_event_handle_visibility_notify */
+}
void
_ecore_x_event_handle_create_notify(XEvent *xevent)
e->border = xevent->xcreatewindow.border_width;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_CREATE, e, NULL, NULL);
-} /* _ecore_x_event_handle_create_notify */
+}
void
_ecore_x_event_handle_destroy_notify(XEvent *xevent)
_ecore_x_event_last_win = 0;
ecore_event_add(ECORE_X_EVENT_WINDOW_DESTROY, e, NULL, NULL);
-} /* _ecore_x_event_handle_destroy_notify */
+}
void
_ecore_x_event_handle_unmap_notify(XEvent *xevent)
e->event_win = xevent->xunmap.event;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_HIDE, e, NULL, NULL);
-} /* _ecore_x_event_handle_unmap_notify */
+}
void
_ecore_x_event_handle_map_notify(XEvent *xevent)
e->event_win = xevent->xmap.event;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW, e, NULL, NULL);
-} /* _ecore_x_event_handle_map_notify */
+}
void
_ecore_x_event_handle_map_request(XEvent *xevent)
e->time = _ecore_x_event_last_time;
e->parent = xevent->xmaprequest.parent;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW_REQUEST, e, NULL, NULL);
-} /* _ecore_x_event_handle_map_request */
+}
void
_ecore_x_event_handle_reparent_notify(XEvent *xevent)
e->parent = xevent->xreparent.parent;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_REPARENT, e, NULL, NULL);
-} /* _ecore_x_event_handle_reparent_notify */
+}
void
_ecore_x_event_handle_configure_notify(XEvent *xevent)
e->from_wm = xevent->xconfigure.send_event;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE, e, NULL, NULL);
-} /* _ecore_x_event_handle_configure_notify */
+}
void
_ecore_x_event_handle_configure_request(XEvent *xevent)
e->detail = ECORE_X_WINDOW_STACK_OPPOSITE;
ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST, e, NULL, NULL);
-} /* _ecore_x_event_handle_configure_request */
+}
void
_ecore_x_event_handle_gravity_notify(XEvent *xevent __UNUSED__)
{
_ecore_x_last_event_mouse_move = 0;
/* FIXME: handle this event type */
-} /* _ecore_x_event_handle_gravity_notify */
+}
void
_ecore_x_event_handle_resize_request(XEvent *xevent)
e->h = xevent->xresizerequest.height;
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_RESIZE_REQUEST, e, NULL, NULL);
-} /* _ecore_x_event_handle_resize_request */
+}
void
_ecore_x_event_handle_circulate_notify(XEvent *xevent)
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_STACK, e, NULL, NULL);
-} /* _ecore_x_event_handle_circulate_notify */
+}
void
_ecore_x_event_handle_circulate_request(XEvent *xevent)
e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_STACK_REQUEST, e, NULL, NULL);
-} /* _ecore_x_event_handle_circulate_request */
+}
void
_ecore_x_event_handle_property_notify(XEvent *xevent)
_ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
}
-} /* _ecore_x_event_handle_property_notify */
+}
void
_ecore_x_event_handle_selection_clear(XEvent *xevent)
e->selection = ECORE_X_SELECTION_OTHER;
ecore_event_add(ECORE_X_EVENT_SELECTION_CLEAR, e, NULL, NULL);
-} /* _ecore_x_event_handle_selection_clear */
+}
void
_ecore_x_event_handle_selection_request(XEvent *xevent)
xevent->xselectionrequest.time);
}
}
-} /* _ecore_x_event_handle_selection_request */
+}
void
_ecore_x_event_handle_selection_notify(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_SELECTION_NOTIFY, e,
_ecore_x_event_free_selection_notify, NULL);
-} /* _ecore_x_event_handle_selection_notify */
+}
void
_ecore_x_event_handle_colormap_notify(XEvent *xevent)
e->installed = EINA_FALSE;
ecore_event_add(ECORE_X_EVENT_WINDOW_COLORMAP, e, NULL, NULL);
-} /* _ecore_x_event_handle_colormap_notify */
+}
void
_ecore_x_event_handle_client_message(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_CLIENT_MESSAGE, e, NULL, NULL);
}
-} /* _ecore_x_event_handle_client_message */
+}
void
_ecore_x_event_handle_mapping_notify(XEvent *xevent)
e->keycode = xevent->xmapping.first_keycode;
e->num = xevent->xmapping.count;
ecore_event_add(ECORE_X_EVENT_MAPPING_CHANGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_mapping_notify */
+}
void
_ecore_x_event_handle_shape_change(XEvent *xevent)
e->h = shape_event->height;
e->shaped = shape_event->shaped;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHAPE, e, NULL, NULL);
-} /* _ecore_x_event_handle_shape_change */
+}
void
_ecore_x_event_handle_screensaver_notify(XEvent *xevent)
#else /* ifdef ECORE_XSS */
xevent = NULL;
#endif /* ifdef ECORE_XSS */
-} /* _ecore_x_event_handle_screensaver_notify */
+}
void
_ecore_x_event_handle_sync_counter(XEvent *xevent)
e->time = sync_counter_event->time;
ecore_event_add(ECORE_X_EVENT_SYNC_COUNTER, e, NULL, NULL);
-} /* _ecore_x_event_handle_sync_counter */
+}
void
_ecore_x_event_handle_sync_alarm(XEvent *xevent)
e->time = sync_alarm_event->time;
e->alarm = sync_alarm_event->alarm;
ecore_event_add(ECORE_X_EVENT_SYNC_ALARM, e, NULL, NULL);
-} /* _ecore_x_event_handle_sync_alarm */
+}
#ifdef ECORE_XRANDR
void
e->orientation = randr_event->rotation;
e->subpixel_order = randr_event->subpixel_order;
ecore_event_add(ECORE_X_EVENT_SCREEN_CHANGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_randr_change */
+}
static void
_ecore_x_event_handle_randr_notify_crtc_change(const XRRNotifyEvent *xevent)
e->geo.w = randr_event->width;
e->geo.h = randr_event->height;
ecore_event_add(ECORE_X_EVENT_RANDR_CRTC_CHANGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_randr_notify_crtc_change */
+}
static void
_ecore_x_event_handle_randr_notify_output_change(const XRRNotifyEvent *xevent)
e->connection = randr_event->connection;
e->subpixel_order = randr_event->subpixel_order;
ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_CHANGE, e, NULL, NULL);
-} /* _ecore_x_event_handle_randr_notify_output_change */
+}
static void
_ecore_x_event_handle_randr_notify_output_property(const XRRNotifyEvent *xevent)
else
e->state = ECORE_X_RANDR_PROPERTY_CHANGE_DEL;
ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY, e, NULL, NULL);
-} /* _ecore_x_event_handle_randr_notify_output_property */
+}
void
_ecore_x_event_handle_randr_notify(XEvent *xevent)
ERR("Unknown XRandR RRNotify subtype: %d.",
randr_event->subtype);
break;
- } /* switch */
-} /* _ecore_x_event_handle_randr_notify */
+ }
+}
#endif /* ifdef ECORE_XRANDR */
e->reason = notify_event->subtype;
ecore_event_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY, e, NULL, NULL);
-} /* _ecore_x_event_handle_fixes_selection_notify */
+}
#endif /* ifdef ECORE_XFIXES */
e->geometry.height = damage_event->geometry.height;
ecore_event_add(ECORE_X_EVENT_DAMAGE_NOTIFY, e, NULL, NULL);
-} /* _ecore_x_event_handle_damage_notify */
+}
#endif /* ifdef ECORE_XDAMAGE */
return;
data = NULL; ev = NULL;
#endif /* ifdef ECORE_XI2 */
-} /* _ecore_x_event_free_generic_event */
+}
void
_ecore_x_event_handle_generic_event(XEvent *event)
return;
event = NULL;
#endif /* ifdef ECORE_XI2 */
-} /* _ecore_x_event_handle_generic_event */
+}
#ifdef ECORE_XGESTURE
void
#else /* ifdef ECORE_XFIXES */
_fixes_available = 0;
#endif /* ifdef ECORE_XFIXES */
-} /* _ecore_x_fixes_init */
+}
#ifdef ECORE_XFIXES
/* I don't know what to call this function. */
xrect[i].height = rects[i].height;
}
return xrect;
-} /* _ecore_x_rectangle_ecore_to_x */
+}
static Ecore_X_Rectangle *
_ecore_x_rectangle_x_to_ecore(XRectangle *xrect,
rects[i].height = xrect[i].height;
}
return rects;
-} /* _ecore_x_rectangle_x_to_ecore */
+}
#endif /* ifdef ECORE_XFIXES */
#else /* ifdef ECORE_XFIXES */
return 0;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_new */
+}
EAPI Ecore_X_Region
ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap)
#else /* ifdef ECORE_XFIXES */
return 0;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_new_from_bitmap */
+}
EAPI Ecore_X_Region
ecore_x_region_new_from_window(Ecore_X_Window win,
#else /* ifdef ECORE_XFIXES */
return 0;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_new_from_window */
+}
EAPI Ecore_X_Region
ecore_x_region_new_from_gc(Ecore_X_GC gc)
#else /* ifdef ECORE_XFIXES */
return 0;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_new_from_gc */
+}
EAPI Ecore_X_Region
ecore_x_region_new_from_picture(Ecore_X_Picture picture)
#else /* ifdef ECORE_XFIXES */
return 0;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_new_from_picture */
+}
EAPI void
ecore_x_region_free(Ecore_X_Region region)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesDestroyRegion(_ecore_x_disp, region);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_free */
+}
EAPI void
ecore_x_region_set(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetRegion(_ecore_x_disp, region, xrect, num);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_set */
+}
EAPI void
ecore_x_region_copy(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesCopyRegion(_ecore_x_disp, dest, source);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_copy */
+}
EAPI void
ecore_x_region_combine(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesUnionRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_combine */
+}
EAPI void
ecore_x_region_intersect(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesIntersectRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_intersect */
+}
EAPI void
ecore_x_region_subtract(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSubtractRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_subtract */
+}
EAPI void
ecore_x_region_invert(Ecore_X_Region dest,
XFixesInvertRegion(_ecore_x_disp, dest, xbound, source);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_invert */
+}
EAPI void
ecore_x_region_translate(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesTranslateRegion(_ecore_x_disp, region, dx, dy);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_translate */
+}
EAPI void
ecore_x_region_extents(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesRegionExtents(_ecore_x_disp, dest, source);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_extents */
+}
EAPI Ecore_X_Rectangle *
ecore_x_region_fetch(Ecore_X_Region region,
#else /* ifdef ECORE_XFIXES */
return NULL;
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_fetch */
+}
EAPI void
ecore_x_region_expand(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesExpandRegion(_ecore_x_disp, dest, source, left, right, top, bottom);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_expand */
+}
EAPI void
ecore_x_region_gc_clip_set(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetGCClipRegion(_ecore_x_disp, gc, x_origin, y_origin, region);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_gc_clip_set */
+}
EAPI void
ecore_x_region_window_shape_set(Ecore_X_Region region,
y_offset,
region);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_window_shape_set */
+}
EAPI void
ecore_x_region_picture_clip_set(Ecore_X_Region region,
y_origin,
region);
#endif /* ifdef ECORE_XFIXES */
-} /* ecore_x_region_picture_clip_set */
+}
gcv.arc_mode = value_list[idx];
idx++;
break;
- } /* switch */
+ }
}
return XCreateGC(_ecore_x_disp, draw, value_mask, &gcv);
-} /* ecore_x_gc_new */
+}
/**
* Deletes and frees the given graphics context.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeGC(_ecore_x_disp, gc);
-} /* ecore_x_gc_free */
+}
ecore_x_icccm_init(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
-} /* ecore_x_icccm_init */
+}
EAPI void
ecore_x_icccm_state_set(Ecore_X_Window win,
XChangeProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_STATE,
ECORE_X_ATOM_WM_STATE, 32, PropModeReplace,
(unsigned char *)c, 2);
-} /* ecore_x_icccm_state_set */
+}
EAPI Ecore_X_Window_State_Hint
ecore_x_icccm_state_get(Ecore_X_Window win)
XFree(prop_ret);
return hint;
-} /* ecore_x_icccm_state_get */
+}
EAPI void
ecore_x_icccm_delete_window_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_DELETE_WINDOW,
t, 0, 0, 0);
-} /* ecore_x_icccm_delete_window_send */
+}
EAPI void
ecore_x_icccm_take_focus_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_TAKE_FOCUS,
t, 0, 0, 0);
-} /* ecore_x_icccm_take_focus_send */
+}
EAPI void
ecore_x_icccm_save_yourself_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_SAVE_YOURSELF,
t, 0, 0, 0);
-} /* ecore_x_icccm_save_yourself_send */
+}
EAPI void
ecore_x_icccm_move_resize_send(Ecore_X_Window win,
ev.xconfigure.above = None;
ev.xconfigure.override_redirect = False;
XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev);
-} /* ecore_x_icccm_move_resize_send */
+}
EAPI void
ecore_x_icccm_hints_set(Ecore_X_Window win,
XSetWMHints(_ecore_x_disp, win, hints);
XFree(hints);
-} /* ecore_x_icccm_hints_set */
+}
EAPI Eina_Bool
ecore_x_icccm_hints_get(Ecore_X_Window win,
}
return EINA_FALSE;
-} /* ecore_x_icccm_hints_get */
+}
EAPI void
ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
}
XSetWMNormalHints(_ecore_x_disp, win, &hint);
-} /* ecore_x_icccm_size_pos_hints_set */
+}
EAPI Eina_Bool
ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
*max_aspect = maxa;
return EINA_TRUE;
-} /* ecore_x_icccm_size_pos_hints_get */
+}
EAPI void
ecore_x_icccm_title_set(Ecore_X_Window win,
}
free(list[0]);
-} /* ecore_x_icccm_title_set */
+}
EAPI char *
ecore_x_icccm_title_get(Ecore_X_Window win)
}
return NULL;
-} /* ecore_x_icccm_title_get */
+}
/**
* Set protocol atoms explicitly
XSetWMProtocols(_ecore_x_disp, win, (Atom *)(protos), num);
else
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_PROTOCOLS);
-} /* ecore_x_icccm_protocol_atoms_set */
+}
/**
* Set or unset a wm protocol property.
leave:
if (protos)
XFree(protos);
-} /* ecore_x_icccm_protocol_set */
+}
/**
* Determines whether a protocol is set for a window.
XFree(protos);
return ret;
-} /* ecore_x_icccm_protocol_isset */
+}
/**
* Set a window name & class.
xch->res_class = (char *)c;
XSetClassHint(_ecore_x_disp, win, xch);
XFree(xch);
-} /* ecore_x_icccm_name_class_set */
+}
/**
* Get a window name & class.
XFree(xch.res_name);
XFree(xch.res_class);
}
-} /* ecore_x_icccm_name_class_get */
+}
/**
* Get a window client machine string.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_CLIENT_MACHINE);
return name;
-} /* ecore_x_icccm_client_machine_get */
+}
/**
* Sets the WM_COMMAND property for @a win.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetCommand(_ecore_x_disp, win, argv, argc);
-} /* ecore_x_icccm_command_set */
+}
/**
* Get the WM_COMMAND property for @a win.
}
XFreeStringList(v);
-} /* ecore_x_icccm_command_get */
+}
/**
* Set a window icon name.
}
free(list[0]);
-} /* ecore_x_icccm_icon_name_set */
+}
/**
* Get a window icon name.
}
return NULL;
-} /* ecore_x_icccm_icon_name_get */
+}
/**
* Add a subwindow to the list of windows that need a different colormap installed.
ECORE_X_ATOM_WM_COLORMAP_WINDOWS,
XA_WINDOW, 32, data, num);
free(newset);
-} /* ecore_x_icccm_colormap_window_set */
+}
/**
* Remove a window from the list of colormap windows.
if (old_data)
XFree(old_data);
-} /* ecore_x_icccm_colormap_window_unset */
+}
/**
* Specify that a window is transient for another top-level window and should be handled accordingly.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetTransientForHint(_ecore_x_disp, win, forwin);
-} /* ecore_x_icccm_transient_for_set */
+}
/**
* Remove the transient_for setting from a window.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR);
-} /* ecore_x_icccm_transient_for_unset */
+}
/**
* Get the window this window is transient for, if any.
return (Ecore_X_Window)forwin;
else
return 0;
-} /* ecore_x_icccm_transient_for_get */
+}
/**
* Set the window role hint.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE,
(char *)role);
-} /* ecore_x_icccm_window_role_set */
+}
/**
* Get the window role.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE);
-} /* ecore_x_icccm_window_role_get */
+}
/**
* Set the window's client leader.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
&l, 1);
-} /* ecore_x_icccm_client_leader_set */
+}
/**
* Get the window's client leader.
return l;
return 0;
-} /* ecore_x_icccm_client_leader_get */
+}
EAPI void
ecore_x_icccm_iconic_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev);
-} /* ecore_x_icccm_iconic_request_send */
+}
/* FIXME: there are older E hints, gnome hints and mwm hints and new netwm */
/* hints. each should go in their own file/section so we know which */
{
_ecore_x_image_err = 1;
return 0;
-} /* _ecore_x_image_error_handler */
+}
static void
_ecore_x_image_shm_check(void)
shmctl(shminfo.shmid, IPC_RMID, 0);
_ecore_x_image_shm_can = 1;
-} /* _ecore_x_image_shm_check */
+}
struct _Ecore_X_Image
{
_ecore_x_image_shm_check();
im->shm = _ecore_x_image_shm_can;
return im;
-} /* ecore_x_image_new */
+}
EAPI void
ecore_x_image_free(Ecore_X_Image *im)
}
free(im);
-} /* ecore_x_image_free */
+}
static void
_ecore_x_image_shm_create(Ecore_X_Image *im)
im->bpp = 2;
else
im->bpp = 4;
-} /* _ecore_x_image_shm_create */
+}
EAPI Eina_Bool
ecore_x_image_get(Ecore_X_Image *im,
}
return ret;
-} /* ecore_x_image_get */
+}
EAPI void
ecore_x_image_put(Ecore_X_Image *im,
if (im->xim)
XShmPutImage(_ecore_x_disp, draw, gc, im->xim, sx, sy, x, y, w, h, False);
if (tgc) ecore_x_gc_free(tgc);
-} /* ecore_x_image_put */
+}
EAPI void *
ecore_x_image_data_get(Ecore_X_Image *im,
if (rows) *rows = im->rows;
if (bpp) *bpp = im->bpp;
return im->data;
-} /* ecore_x_image_data_get */
+}
EAPI Eina_Bool
ecore_x_image_is_argb32_get(Ecore_X_Image *im)
}
return ret;
-} /* ecore_x_mwm_hints_get */
+}
EAPI void
ecore_x_mwm_borderless_set(Ecore_X_Window win,
ECORE_X_ATOM_MOTIF_WM_HINTS,
ECORE_X_ATOM_MOTIF_WM_HINTS,
32, (void *)data, 5);
-} /* ecore_x_mwm_borderless_set */
+}
LOGFN(__FILE__, __LINE__, __FUNCTION__);
startup_info = eina_hash_string_superfast_new(
_ecore_x_netwm_startup_info_free);
-} /* ecore_x_netwm_init */
+}
EAPI void
ecore_x_netwm_shutdown(void)
eina_hash_free(startup_info);
startup_info = NULL;
-} /* ecore_x_netwm_shutdown */
+}
/*
* WM identification
_ecore_x_window_prop_string_utf8_set(root,
ECORE_X_ATOM_NET_WM_NAME,
wm_name);
-} /* ecore_x_netwm_wm_identify */
+}
/*
* Set supported atoms
ECORE_X_ATOM_NET_SUPPORTED,
supported,
num);
-} /* ecore_x_netwm_supported_set */
+}
EAPI Eina_Bool
ecore_x_netwm_supported_get(Ecore_X_Window root,
*num = num_ret;
return EINA_TRUE;
-} /* ecore_x_netwm_supported_get */
+}
/*
* Desktop configuration and status
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
&n_desks, 1);
-} /* ecore_x_netwm_desk_count_set */
+}
EAPI void
ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
ECORE_X_ATOM_NET_VIRTUAL_ROOTS,
vroots,
n_desks);
-} /* ecore_x_netwm_desk_roots_set */
+}
EAPI void
ecore_x_netwm_desk_names_set(Ecore_X_Window root,
_ATOM_SET_UTF8_STRING_LIST(root, ECORE_X_ATOM_NET_DESKTOP_NAMES, buf, len);
free(buf);
-} /* ecore_x_netwm_desk_names_set */
+}
EAPI void
ecore_x_netwm_desk_size_set(Ecore_X_Window root,
size[1] = height;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_GEOMETRY, size,
2);
-} /* ecore_x_netwm_desk_size_set */
+}
EAPI void
ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_VIEWPORT,
origins, 2 * n_desks);
-} /* ecore_x_netwm_desk_viewports_set */
+}
EAPI void
ecore_x_netwm_desk_layout_set(Ecore_X_Window root,
layout[3] = starting_corner;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_LAYOUT,
layout, 4);
-} /* ecore_x_netwm_desk_layout_set */
+}
EAPI void
ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_WORKAREA, areas,
4 * n_desks);
-} /* ecore_x_netwm_desk_workareas_set */
+}
EAPI unsigned int *
ecore_x_netwm_desk_workareas_get(Ecore_X_Window root, unsigned int *n_desks)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
1);
-} /* ecore_x_netwm_desk_current_set */
+}
EAPI void
ecore_x_netwm_showing_desktop_set(Ecore_X_Window root,
val = (on) ? 1 : 0;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_SHOWING_DESKTOP, &val,
1);
-} /* ecore_x_netwm_showing_desktop_set */
+}
/*
* Client status
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST,
p_clients, n_clients);
-} /* ecore_x_netwm_client_list_set */
+}
/* Stacking order */
EAPI void
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST_STACKING,
p_clients, n_clients);
-} /* ecore_x_netwm_client_list_stacking_set */
+}
EAPI void
ecore_x_netwm_client_active_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW,
&win, 1);
-} /* ecore_x_netwm_client_active_set */
+}
EAPI void
ecore_x_netwm_client_active_request(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask, &xev);
-} /* ecore_x_netwm_client_active_request */
+}
EAPI void
ecore_x_netwm_name_set(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
-} /* ecore_x_netwm_name_set */
+}
EAPI int
ecore_x_netwm_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_NAME);
return 1;
-} /* ecore_x_netwm_name_get */
+}
EAPI void
ecore_x_netwm_startup_id_set(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
-} /* ecore_x_netwm_startup_id_set */
+}
EAPI int
ecore_x_netwm_startup_id_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_STARTUP_ID);
return 1;
-} /* ecore_x_netwm_startup_id_get */
+}
EAPI void
ecore_x_netwm_visible_name_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
name);
-} /* ecore_x_netwm_visible_name_set */
+}
EAPI int
ecore_x_netwm_visible_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_VISIBLE_NAME);
return 1;
-} /* ecore_x_netwm_visible_name_get */
+}
EAPI void
ecore_x_netwm_icon_name_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
name);
-} /* ecore_x_netwm_icon_name_set */
+}
EAPI int
ecore_x_netwm_icon_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_ICON_NAME);
return 1;
-} /* ecore_x_netwm_icon_name_get */
+}
EAPI void
ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win,
_ecore_x_window_prop_string_utf8_set(win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME,
name);
-} /* ecore_x_netwm_visible_icon_name_set */
+}
EAPI int
ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME);
return 1;
-} /* ecore_x_netwm_visible_icon_name_get */
+}
EAPI void
ecore_x_netwm_desktop_set(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
-} /* ecore_x_netwm_desktop_set */
+}
EAPI Eina_Bool
ecore_x_netwm_desktop_get(Ecore_X_Window win,
*desk = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_desktop_get */
+}
/*
* _NET_WM_STRUT is deprecated
strut[2] = top;
strut[3] = bottom;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4);
-} /* ecore_x_netwm_strut_set */
+}
/*
* _NET_WM_STRUT is deprecated
*bottom = strut[3];
return EINA_TRUE;
-} /* ecore_x_netwm_strut_get */
+}
EAPI void
ecore_x_netwm_strut_partial_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_STRUT_PARTIAL,
strut,
12);
-} /* ecore_x_netwm_strut_partial_set */
+}
EAPI Eina_Bool
ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
*bottom_end_x = strut[11];
return EINA_TRUE;
-} /* ecore_x_netwm_strut_partial_get */
+}
EAPI Eina_Bool
ecore_x_netwm_icons_get(Ecore_X_Window win,
free(data);
return EINA_TRUE;
-} /* ecore_x_netwm_icons_get */
+}
EAPI void
ecore_x_netwm_icon_geometry_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_ICON_GEOMETRY,
geometry,
4);
-} /* ecore_x_netwm_icon_geometry_set */
+}
EAPI Eina_Bool
ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
*height = geometry[3];
return EINA_TRUE;
-} /* ecore_x_netwm_icon_geometry_get */
+}
EAPI void
ecore_x_netwm_pid_set(Ecore_X_Window win,
tmp = pid;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_PID,
&tmp, 1);
-} /* ecore_x_netwm_pid_set */
+}
EAPI Eina_Bool
ecore_x_netwm_pid_get(Ecore_X_Window win,
*pid = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_pid_get */
+}
EAPI void
ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
-} /* ecore_x_netwm_handled_icons_set */
+}
EAPI Eina_Bool
ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
return ret == 0 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_handled_icons_get */
+}
EAPI void
ecore_x_netwm_user_time_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&tim, 1);
-} /* ecore_x_netwm_user_time_set */
+}
EAPI Eina_Bool
ecore_x_netwm_user_time_get(Ecore_X_Window win,
*tim = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_user_time_get */
+}
Ecore_X_Window_State
_ecore_x_netwm_state_get(Ecore_X_Atom a)
return ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION;
else
return ECORE_X_WINDOW_STATE_UNKNOWN;
-} /* _ecore_x_netwm_state_get */
+}
static Ecore_X_Atom
_ecore_x_netwm_state_atom_get(Ecore_X_Window_State s)
default:
return 0;
- } /* switch */
-} /* _ecore_x_netwm_state_atom_get */
+ }
+}
EAPI void
ecore_x_netwm_window_state_set(Ecore_X_Window win,
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_STATE, set, num);
free(set);
-} /* ecore_x_netwm_window_state_set */
+}
EAPI Eina_Bool
ecore_x_netwm_window_state_get(Ecore_X_Window win,
free(atoms);
return EINA_TRUE;
-} /* ecore_x_netwm_window_state_get */
+}
static Ecore_X_Window_Type
_ecore_x_netwm_window_type_type_get(Ecore_X_Atom atom)
return ECORE_X_WINDOW_TYPE_DND;
else
return ECORE_X_WINDOW_TYPE_UNKNOWN;
-} /* _ecore_x_netwm_window_type_type_get */
+}
static Ecore_X_Atom
_ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type)
default:
return 0;
- } /* switch */
-} /* _ecore_x_netwm_window_type_atom_get */
+ }
+}
/*
* FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR
atom = _ecore_x_netwm_window_type_atom_get(type);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
&atom, 1);
-} /* ecore_x_netwm_window_type_set */
+}
/* FIXME: Maybe return 0 on some conditions? */
EAPI Eina_Bool
return EINA_TRUE;
return EINA_FALSE;
-} /* ecore_x_netwm_window_type_get */
+}
EAPI int
ecore_x_netwm_window_types_get(Ecore_X_Window win,
free(atoms2);
return num;
-} /* ecore_x_netwm_window_types_get */
+}
static Ecore_X_Atom
_ecore_x_netwm_action_atom_get(Ecore_X_Action action)
default:
return 0;
- } /* switch */
-} /* _ecore_x_netwm_action_atom_get */
+ }
+}
/* FIXME: Get complete list */
EAPI Eina_Bool
free(atoms);
return ret;
-} /* ecore_x_netwm_allowed_action_isset */
+}
/* FIXME: Set complete list */
EAPI void
num);
free(set);
-} /* ecore_x_netwm_allowed_action_set */
+}
EAPI Eina_Bool
ecore_x_netwm_allowed_action_get(Ecore_X_Window win,
free(atoms);
return EINA_TRUE;
-} /* ecore_x_netwm_allowed_action_get */
+}
EAPI void
ecore_x_netwm_opacity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
&opacity, 1);
-} /* ecore_x_netwm_opacity_set */
+}
EAPI Eina_Bool
ecore_x_netwm_opacity_get(Ecore_X_Window win,
*opacity = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_opacity_get */
+}
EAPI void
ecore_x_netwm_frame_size_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_FRAME_EXTENTS,
frames,
4);
-} /* ecore_x_netwm_frame_size_set */
+}
EAPI Eina_Bool
ecore_x_netwm_frame_size_get(Ecore_X_Window win,
*fb = frames[3];
return EINA_TRUE;
-} /* ecore_x_netwm_frame_size_get */
+}
EAPI Eina_Bool
ecore_x_netwm_sync_counter_get(Ecore_X_Window win,
*counter = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_netwm_sync_counter_get */
+}
EAPI void
ecore_x_netwm_ping_send(Ecore_X_Window win)
xev.xclient.data.l[4] = 0;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
-} /* ecore_x_netwm_ping_send */
+}
EAPI void
ecore_x_netwm_sync_request_send(Ecore_X_Window win,
xev.xclient.data.l[4] = 0;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
-} /* ecore_x_netwm_sync_request_send */
+}
EAPI void
ecore_x_netwm_state_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev);
-} /* ecore_x_netwm_state_request_send */
+}
EAPI void
ecore_x_netwm_desktop_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev);
-} /* ecore_x_netwm_desktop_request_send */
+}
int
_ecore_x_netwm_startup_info_begin(Ecore_X_Window win __UNUSED__,
#endif /* if 0 */
return 1;
-} /* _ecore_x_netwm_startup_info_begin */
+}
int
_ecore_x_netwm_startup_info(Ecore_X_Window win __UNUSED__,
#endif /* if 0 */
return 1;
-} /* _ecore_x_netwm_startup_info */
+}
/*
* Set UTF-8 string property
{
XChangeProperty(_ecore_x_disp, win, atom, ECORE_X_ATOM_UTF8_STRING, 8,
PropModeReplace, (unsigned char *)str, strlen(str));
-} /* _ecore_x_window_prop_string_utf8_set */
+}
/*
* Get UTF-8 string property
XFree(prop_ret);
return str;
-} /* _ecore_x_window_prop_string_utf8_get */
+}
#if 0 /* Unused */
/*
}
return 1;
-} /* _ecore_x_netwm_startup_info_process */
+}
/*
* Parse startup info
return 0;
return 1;
-} /* _ecore_x_netwm_startup_info_parse */
+}
#endif /* if 0 */
free(info->wmclass);
free(info);
-} /* _ecore_x_netwm_startup_info_free */
+}
/*
* Is screen composited?
win = XGetSelectionOwner(_ecore_x_disp, atom);
return (win != None) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_screen_is_composited */
+}
EAPI void
ecore_x_screen_is_composited_set(int screen,
return;
XSetSelectionOwner(_ecore_x_disp, atom, win, _ecore_x_event_last_time);
-} /* ecore_x_screen_is_composited_set */
+}
dep = DefaultDepth(_ecore_x_disp, DefaultScreen(_ecore_x_disp));
return XCreatePixmap(_ecore_x_disp, win, w, h, dep);
-} /* ecore_x_pixmap_new */
+}
/**
* Deletes the reference to the given pixmap.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreePixmap(_ecore_x_disp, pmap);
-} /* ecore_x_pixmap_free */
+}
/**
* Pastes a rectangular area of the given pixmap onto the given drawable.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCopyArea(_ecore_x_disp, pmap, dest, gc, sx, sy, w, h, dx, dy);
-} /* ecore_x_pixmap_paste */
+}
/**
* Retrieves the size of the given pixmap.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (pmap)
ecore_x_drawable_geometry_get(pmap, x, y, w, h);
-} /* ecore_x_pixmap_geometry_get */
+}
/**
* Retrieves the depth of the given pixmap.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(pmap);
-} /* ecore_x_pixmap_depth_get */
+}
#else /* ifdef ECORE_XRANDR */
return Ecore_X_Randr_None;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_orientations_get */
+}
/*
* @param root window which's primary output will be queried
#else /* ifdef ECORE_XRANDR */
return Ecore_X_Randr_None;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_orientation_get */
+}
/*
* @brief sets a given screen's primary output's orientation
#else /* ifdef ECORE_XRANDR */
return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_orientation_set */
+}
/*
* @brief gets a screen's primary output's possible sizes
#else /* ifdef ECORE_XRANDR */
return NULL;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_sizes_get */
+}
/*
* @brief get the current set size of a given screen's primary output
XRRFreeScreenConfigInfo(sc);
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_current_size_get */
+}
/*
* @brief sets a given screen's primary output size, but disables all other outputs at the same time
#else /* ifdef ECORE_XRANDR */
return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_size_set */
+}
/*
* @param root window which's primary output will be queried
#else /* ifdef ECORE_XRANDR */
return 0.0;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_current_refresh_rate_get */
+}
/*
* @param root window which's primary output will be queried
#else /* ifdef ECORE_XRANDR */
return NULL;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_refresh_rates_get */
+}
//>= 1.1
/*
#else /* ifdef ECORE_XRANDR */
return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */
-} /* ecore_x_randr_screen_primary_output_refresh_rate_set */
+}
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_XRegion *)XCreateRegion();
-} /* ecore_x_xregion_new */
+}
EAPI void
ecore_x_xregion_free(Ecore_X_XRegion *region)
return;
XDestroyRegion((Region)region);
-} /* ecore_x_xregion_free */
+}
EAPI Eina_Bool
ecore_x_xregion_set(Ecore_X_XRegion *region,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetRegion(_ecore_x_disp, gc, (Region)region) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_set */
+}
EAPI void
ecore_x_xregion_translate(Ecore_X_XRegion *region,
/* return value not used */
XOffsetRegion((Region)region, x, y);
-} /* ecore_x_xregion_translate */
+}
EAPI Eina_Bool
ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XIntersectRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_intersect */
+}
EAPI Eina_Bool
ecore_x_xregion_union(Ecore_X_XRegion *dst,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XUnionRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_union */
+}
EAPI Eina_Bool
ecore_x_xregion_union_rect(Ecore_X_XRegion *dst,
xr.height = rect->height;
return XUnionRectWithRegion(&xr, (Region)src, (Region)dst) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_union_rect */
+}
EAPI Eina_Bool
ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSubtractRegion((Region)rm, (Region)rs, (Region)dst) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_subtract */
+}
EAPI Eina_Bool
ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_is_empty */
+}
EAPI Eina_Bool
ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XEqualRegion((Region)r1, (Region)r1) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_is_equal */
+}
EAPI Eina_Bool
ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XPointInRegion((Region)region, x, y) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_point_contain */
+}
EAPI Eina_Bool
ecore_x_xregion_rect_contain(Ecore_X_XRegion *region,
rect->y,
rect->width,
rect->height) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_xregion_rect_contain */
+}
_screensaver_available = 0;
#endif /* ifdef ECORE_XSS */
return _screensaver_available;
-} /* ecore_x_screensaver_event_available_get */
+}
EAPI int
ecore_x_screensaver_idle_time_get(void)
#else
return 0;
#endif /* ifdef ECORE_XSS */
-} /* ecore_x_screensaver_idle_time_get */
+}
EAPI void
ecore_x_screensaver_set(int timeout,
interval,
prefer_blanking,
allow_exposures);
-} /* ecore_x_screensaver_set */
+}
EAPI void
ecore_x_screensaver_timeout_set(int timeout)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, timeout, pint, pblank, pexpo);
-} /* ecore_x_screensaver_timeout_set */
+}
EAPI int
ecore_x_screensaver_timeout_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pto;
-} /* ecore_x_screensaver_timeout_get */
+}
EAPI void
ecore_x_screensaver_blank_set(int blank)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, blank, pexpo);
-} /* ecore_x_screensaver_blank_set */
+}
EAPI int
ecore_x_screensaver_blank_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pblank;
-} /* ecore_x_screensaver_blank_get */
+}
EAPI void
ecore_x_screensaver_expose_set(int expose)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, pblank, expose);
-} /* ecore_x_screensaver_expose_set */
+}
EAPI int
ecore_x_screensaver_expose_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pexpo;
-} /* ecore_x_screensaver_expose_get */
+}
EAPI void
ecore_x_screensaver_interval_set(int interval)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, interval, pblank, pexpo);
-} /* ecore_x_screensaver_interval_set */
+}
EAPI int
ecore_x_screensaver_interval_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pint;
-} /* ecore_x_screensaver_interval_get */
+}
EAPI void
ecore_x_screensaver_event_listen_set(Eina_Bool on)
return;
on = EINA_FALSE;
#endif /* ifdef ECORE_XSS */
-} /* ecore_x_screensaver_event_listen_set */
+}
_ecore_x_selection_parser_files);
ecore_x_selection_parser_add(ECORE_X_SELECTION_TARGET_TARGETS,
_ecore_x_selection_parser_targets);
-} /* _ecore_x_selection_data_init */
+}
void
_ecore_x_selection_shutdown(void)
free(tmp);
}
parsers = NULL;
-} /* _ecore_x_selection_shutdown */
+}
Ecore_X_Selection_Intern *
_ecore_x_selection_get(Ecore_X_Atom selection)
return &selections[3];
else
return NULL;
-} /* _ecore_x_selection_get */
+}
Eina_Bool
_ecore_x_selection_set(Window w,
}
return EINA_TRUE;
-} /* _ecore_x_selection_set */
+}
/**
* Claim ownership of the PRIMARY selection and set its data.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY);
-} /* ecore_x_selection_primary_set */
+}
/**
* Release ownership of the primary selection
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
-} /* ecore_x_selection_primary_clear */
+}
/**
* Claim ownership of the SECONDARY selection and set its data.
data,
size,
ECORE_X_ATOM_SELECTION_SECONDARY);
-} /* ecore_x_selection_secondary_set */
+}
/**
* Release ownership of the secondary selection
NULL,
0,
ECORE_X_ATOM_SELECTION_SECONDARY);
-} /* ecore_x_selection_secondary_clear */
+}
/**
* Claim ownership of the XDND selection and set its data.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND);
-} /* ecore_x_selection_xdnd_set */
+}
/**
* Release ownership of the XDND selection
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
-} /* ecore_x_selection_xdnd_clear */
+}
/**
* Claim ownership of the CLIPBOARD selection and set its data.
data,
size,
ECORE_X_ATOM_SELECTION_CLIPBOARD);
-} /* ecore_x_selection_clipboard_set */
+}
/**
* Release ownership of the clipboard selection
NULL,
0,
ECORE_X_ATOM_SELECTION_CLIPBOARD);
-} /* ecore_x_selection_clipboard_clear */
+}
Ecore_X_Atom
_ecore_x_selection_target_atom_get(const char *target)
x_target = ecore_x_atom_get(target);
return x_target;
-} /* _ecore_x_selection_target_atom_get */
+}
char *
_ecore_x_selection_target_get(Ecore_X_Atom target)
return strdup(ECORE_X_SELECTION_TARGET_TEXT);
else
return XGetAtomName(_ecore_x_disp, target);
-} /* _ecore_x_selection_target_get */
+}
static void
_ecore_x_selection_request(Ecore_X_Window w,
XConvertSelection(_ecore_x_disp, selection, target, prop,
w, CurrentTime);
-} /* _ecore_x_selection_request */
+}
EAPI void
ecore_x_selection_primary_request(Ecore_X_Window w,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target);
-} /* ecore_x_selection_primary_request */
+}
EAPI void
ecore_x_selection_secondary_request(Ecore_X_Window w,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target);
-} /* ecore_x_selection_secondary_request */
+}
EAPI void
ecore_x_selection_xdnd_request(Ecore_X_Window w,
XConvertSelection(_ecore_x_disp, ECORE_X_ATOM_SELECTION_XDND, atom,
ECORE_X_ATOM_SELECTION_PROP_XDND, w,
_target->time);
-} /* ecore_x_selection_xdnd_request */
+}
EAPI void
ecore_x_selection_clipboard_request(Ecore_X_Window w,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target);
-} /* ecore_x_selection_clipboard_request */
+}
EAPI void
ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
cnv->target = target;
cnv->convert = func;
-} /* ecore_x_selection_converter_atom_add */
+}
EAPI void
ecore_x_selection_converter_add(char *target,
x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_add(x_target, func);
-} /* ecore_x_selection_converter_add */
+}
EAPI void
ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
prev_cnv = cnv;
cnv = cnv->next;
}
-} /* ecore_x_selection_converter_atom_del */
+}
EAPI void
ecore_x_selection_converter_del(char *target)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_del(x_target);
-} /* ecore_x_selection_converter_del */
+}
EAPI Eina_Bool
ecore_x_selection_notify_send(Ecore_X_Window requestor,
xev.xselection = xnotify;
return (XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? EINA_TRUE : EINA_FALSE;
-} /* ecore_x_selection_notify_send */
+}
/* Locate and run conversion callback for specified selection target */
EAPI Eina_Bool
free(tgt_str);
return 1;
*/
-} /* ecore_x_selection_convert */
+}
/* TODO: We need to work out a mechanism for automatic conversion to any requested
* locale using Ecore_Txt functions */
{
return EINA_TRUE;
}
-} /* _ecore_x_selection_converter_text */
+}
EAPI void
ecore_x_selection_parser_add(const char *target,
prs->target = strdup(target);
prs->parse = func;
-} /* ecore_x_selection_parser_add */
+}
EAPI void
ecore_x_selection_parser_del(const char *target)
prev_prs = prs;
prs = prs->next;
}
-} /* ecore_x_selection_parser_del */
+}
/**
* Change the owner and last-change time for the specified selection.
sel->format = format;
sel->data = data;
return sel;
-} /* _ecore_x_selection_parse */
+}
static int
_ecore_x_selection_data_default_free(void *data)
free(sel->data);
free(sel);
return 1;
-} /* _ecore_x_selection_data_default_free */
+}
static void *
_ecore_x_selection_parser_files(const char *target,
ECORE_X_SELECTION_DATA(sel)->length = sel->num_files;
return ECORE_X_SELECTION_DATA(sel);
-} /* _ecore_x_selection_parser_files */
+}
static int
_ecore_x_selection_data_files_free(void *data)
free(sel);
return 0;
-} /* _ecore_x_selection_data_files_free */
+}
static void *
_ecore_x_selection_parser_text(const char *target __UNUSED__,
ECORE_X_SELECTION_DATA(sel)->data = data;
ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free;
return sel;
-} /* _ecore_x_selection_parser_text */
+}
static int
_ecore_x_selection_data_text_free(void *data)
free(sel->text);
free(sel);
return 1;
-} /* _ecore_x_selection_data_text_free */
+}
static void *
_ecore_x_selection_parser_targets(const char *target __UNUSED__,
ECORE_X_SELECTION_DATA(sel)->length = size;
ECORE_X_SELECTION_DATA(sel)->data = data;
return sel;
-} /* _ecore_x_selection_parser_targets */
+}
static int
_ecore_x_selection_data_targets_free(void *data)
free(ECORE_X_SELECTION_DATA(sel)->data);
free(sel);
return 1;
-} /* _ecore_x_selection_data_targets_free */
+}
ecore_x_sync();
return alarm;
-} /* ecore_x_sync_alarm_new */
+}
EAPI Eina_Bool
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSyncDestroyAlarm(_ecore_x_disp, alarm);
-} /* ecore_x_sync_alarm_free */
+}
EAPI Eina_Bool
ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter,
}
return EINA_FALSE;
-} /* ecore_x_sync_counter_query */
+}
EAPI Ecore_X_Sync_Counter
ecore_x_sync_counter_new(int val)
XSyncIntToValue(&v, val);
counter = XSyncCreateCounter(_ecore_x_disp, v);
return counter;
-} /* ecore_x_sync_counter_new */
+}
EAPI void
ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncDestroyCounter(_ecore_x_disp, counter);
-} /* ecore_x_sync_counter_free */
+}
EAPI void
ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&v, by);
XSyncChangeCounter(_ecore_x_disp, counter, v);
-} /* ecore_x_sync_counter_inc */
+}
EAPI void
ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter,
cond.event_threshold = v2;
XSyncAwait(_ecore_x_disp, &cond, 1);
// XSync(_ecore_x_disp, False); // dont need this
-} /* ecore_x_sync_counter_val_wait */
+}
EAPI void
ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter,
#else /* ifdef ECORE_XTEST */
return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
-} /* ecore_x_test_fake_key_down */
+}
EAPI Eina_Bool
#ifdef ECORE_XTEST
#else /* ifdef ECORE_XTEST */
return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
-} /* ecore_x_test_fake_key_up */
+}
EAPI Eina_Bool
#ifdef ECORE_XTEST
#else /* ifdef ECORE_XTEST */
return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
-} /* ecore_x_test_fake_key_press */
+}
EAPI const char *
ecore_x_keysym_string_get(int keysym)
{
return XKeysymToString(keysym);
-} /* ecore_x_keysym_string_get */
+}
ecore_x_window_defaults_set(win);
return win;
-} /* ecore_x_window_new */
+}
/**
* Creates a window with the override redirect attribute set to @c True.
CWWinGravity,
&attr);
return win;
-} /* ecore_x_window_override_new */
+}
/**
* Creates a new input window.
}
return win;
-} /* ecore_x_window_input_new */
+}
/**
* @defgroup Ecore_X_Window_Properties_Group X Window Property Functions
ecore_app_args_get(&argc, &argv);
ecore_x_icccm_command_set(win, argc, argv);
-} /* ecore_x_window_defaults_set */
+}
EAPI void
ecore_x_window_configure(Ecore_X_Window win,
xwc.stack_mode = stack_mode;
XConfigureWindow(_ecore_x_disp, win, mask, &xwc);
-} /* ecore_x_window_configure */
+}
/**
* @defgroup Ecore_X_Window_Destroy_Group X Window Destroy Functions
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win)
XDestroyWindow(_ecore_x_disp, win);
-} /* ecore_x_window_free */
+}
/**
* Set if a window should be ignored.
t = realloc(ignore_list, ignore_num * sizeof(Ecore_X_Window));
if (t) ignore_list = t;
}
-} /* ecore_x_window_ignore_set */
+}
/**
* Get the ignore list
*num = ignore_num;
return ignore_list;
-} /* ecore_x_window_ignore_list */
+}
/**
* Sends a delete request to the given window.
xev.xclient.data.l[1] = CurrentTime;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
-} /* ecore_x_window_delete_request_send */
+}
/**
* @defgroup Ecore_X_Window_Visibility_Group X Window Visibility Functions
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMapWindow(_ecore_x_disp, win);
-} /* ecore_x_window_show */
+}
/**
* Hides a window.
XSendEvent(_ecore_x_disp, xev.xunmap.event, False,
SubstructureRedirectMask | SubstructureNotifyMask, &xev);
XUnmapWindow(_ecore_x_disp, win);
-} /* ecore_x_window_hide */
+}
/**
* @defgroup Ecore_X_Window_Geometry_Group X Window Geometry Functions
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMoveWindow(_ecore_x_disp, win, x, y);
-} /* ecore_x_window_move */
+}
/**
* Resizes a window.
h = 1;
XResizeWindow(_ecore_x_disp, win, w, h);
-} /* ecore_x_window_resize */
+}
/**
* Moves and resizes a window.
h = 1;
XMoveResizeWindow(_ecore_x_disp, win, x, y, w, h);
-} /* ecore_x_window_move_resize */
+}
/**
* @defgroup Ecore_X_Window_Focus_Functions X Window Focus Functions
// XSetInputFocus(_ecore_x_disp, win, RevertToPointerRoot, CurrentTime);
XSetInputFocus(_ecore_x_disp, win, RevertToParent, CurrentTime);
-} /* ecore_x_window_focus */
+}
/**
* Sets the focus to the given window at a specific time.
// XSetInputFocus(_ecore_x_disp, win, PointerRoot, t);
XSetInputFocus(_ecore_x_disp, win, RevertToParent, t);
-} /* ecore_x_window_focus_at_time */
+}
/**
* gets the focus to the window @p win.
win = 0;
XGetInputFocus(_ecore_x_disp, &win, &revert_mode);
return win;
-} /* ecore_x_window_focus_get */
+}
/**
* @defgroup Ecore_X_Window_Z_Order_Group X Window Z Order Functions
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRaiseWindow(_ecore_x_disp, win);
-} /* ecore_x_window_raise */
+}
/**
* Lowers the given window.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XLowerWindow(_ecore_x_disp, win);
-} /* ecore_x_window_lower */
+}
/**
* @defgroup Ecore_X_Window_Parent_Group X Window Parent Functions
new_parent = DefaultRootWindow(_ecore_x_disp);
XReparentWindow(_ecore_x_disp, win, new_parent, x, y);
-} /* ecore_x_window_reparent */
+}
/**
* Retrieves the size of the given window.
win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, &dummy_x, &dummy_y, w, h);
-} /* ecore_x_window_size_get */
+}
/**
* Retrieves the geometry of the given window.
win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, x, y, w, h);
-} /* ecore_x_window_geometry_get */
+}
/**
* Retrieves the width of the border of the given window.
return 0;
return ecore_x_drawable_border_width_get(win);
-} /* ecore_x_window_border_width_get */
+}
/**
* Sets the width of the border of the given window.
return;
XSetWindowBorderWidth (_ecore_x_disp, win, width);
-} /* ecore_x_window_border_width_set */
+}
/**
* Retrieves the depth of the given window.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(win);
-} /* ecore_x_window_depth_get */
+}
/**
* To be documented.
}
else
XDefineCursor(_ecore_x_disp, win, 0);
-} /* ecore_x_window_cursor_show */
+}
EAPI void
ecore_x_window_cursor_set(Ecore_X_Window win,
XUndefineCursor(_ecore_x_disp, win);
else
XDefineCursor(_ecore_x_disp, win, c);
-} /* ecore_x_window_cursor_set */
+}
/**
* Finds out whether the given window is currently visible.
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetWindowAttributes(_ecore_x_disp, win, &attr) &&
(attr.map_state == IsViewable);
-} /* ecore_x_window_visible_get */
+}
typedef struct _Shadow Shadow;
struct _Shadow
XFree(list);
return s;
-} /* _ecore_x_window_tree_walk */
+}
static void
_ecore_x_window_tree_shadow_free1(Shadow *s)
}
free(s);
-} /* _ecore_x_window_tree_shadow_free1 */
+}
static void
_ecore_x_window_tree_shadow_free(void)
free(shadow_base);
shadow_base = NULL;
shadow_num = 0;
-} /* _ecore_x_window_tree_shadow_free */
+}
static void
_ecore_x_window_tree_shadow_populate(void)
free(roots);
}
-} /* _ecore_x_window_tree_shadow_populate */
+}
/*
static int shadow_count = 0;
}
return NULL;
-} /* _ecore_x_window_shadow_tree_find_shadow */
+}
static Shadow *
_ecore_x_window_shadow_tree_find(Window base)
return s;
}
return NULL;
-} /* _ecore_x_window_shadow_tree_find */
+}
static int
_inside_rects(Shadow *s,
}
return s->win;
-} /* _ecore_x_window_shadow_tree_at_xy_get_shadow */
+}
static Window
_ecore_x_window_shadow_tree_at_xy_get(Window base,
y,
skip,
skip_num);
-} /* _ecore_x_window_shadow_tree_at_xy_get */
+}
/**
* Retrieves the top, visible window at the given location,
y,
skip,
skip_num);
-} /* ecore_x_window_shadow_tree_at_xy_with_skip_get */
+}
/**
* Retrieves the parent window a given window has. This uses the shadow window
}
}
return 0;
-} /* ecore_x_window_shadow_parent_get */
+}
/**
* Flushes the window shadow tree so nothing is stored.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_tree_shadow_free();
-} /* ecore_x_window_shadow_tree_flush */
+}
/**
* Retrieves the root window a given window is on.
return 0;
return att.root;
-} /* ecore_x_window_root_get */
+}
static Window
_ecore_x_window_at_xy_get(Window base,
}
return base;
-} /* _ecore_x_window_at_xy_get */
+}
/**
* Retrieves the top, visible window at the given location.
ecore_x_ungrab();
return win ? win : root;
-} /* ecore_x_window_at_xy_get */
+}
/**
* Retrieves the top, visible window at the given location,
ecore_x_ungrab();
return win ? win : root;
-} /* ecore_x_window_at_xy_with_skip_get */
+}
EAPI Ecore_X_Window
ecore_x_window_at_xy_begin_get(Ecore_X_Window begin,
ecore_x_ungrab();
return win ? win : begin;
-} /* ecore_x_window_at_xy_begin_get */
+}
/**
* Retrieves the parent window of the given window.
XFree(children);
return parent;
-} /* ecore_x_window_parent_get */
+}
/**
* Sets the background color of the given window.
attr.background_pixel = col.pixel;
XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr);
-} /* ecore_x_window_background_color_set */
+}
EAPI void
ecore_x_window_gravity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.win_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att);
-} /* ecore_x_window_gravity_set */
+}
EAPI void
ecore_x_window_pixel_gravity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.bit_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att);
-} /* ecore_x_window_pixel_gravity_set */
+}
EAPI void
ecore_x_window_pixmap_set(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap);
-} /* ecore_x_window_pixmap_set */
+}
EAPI void
ecore_x_window_area_clear(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, False);
-} /* ecore_x_window_area_clear */
+}
EAPI void
ecore_x_window_area_expose(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, True);
-} /* ecore_x_window_area_expose */
+}
EAPI void
ecore_x_window_override_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.override_redirect = override;
XChangeWindowAttributes(_ecore_x_disp, win, CWOverrideRedirect, &att);
-} /* ecore_x_window_override_set */
+}
#ifdef ECORE_XRENDER
static Ecore_X_Window
ecore_x_window_defaults_set(win);
return win;
-} /* _ecore_x_window_argb_internal_new */
+}
#endif /* ifdef ECORE_XRENDER */
#else /* ifdef ECORE_XRENDER */
return 0;
#endif /* ifdef ECORE_XRENDER */
-} /* ecore_x_window_argb_get */
+}
/**
* Creates a new window.
#else /* ifdef ECORE_XRENDER */
return 0;
#endif /* ifdef ECORE_XRENDER */
-} /* ecore_x_window_manager_argb_new */
+}
/**
* Creates a new window.
#else /* ifdef ECORE_XRENDER */
return 0;
#endif /* ifdef ECORE_XRENDER */
-} /* ecore_x_window_argb_new */
+}
/**
* Creates a window with the override redirect attribute set to @c True.
#else /* ifdef ECORE_XRENDER */
return 0;
#endif /* ifdef ECORE_XRENDER */
-} /* ecore_x_window_override_argb_new */
+}
_ATOM_SET_CARD32(win, atom, v2, num);
free(v2);
#endif /* if SIZEOF_INT == SIZEOF_LONG */
-} /* ecore_x_window_prop_card32_set */
+}
/*
* Get CARD32 (array) property
XFree(prop_ret);
return num;
-} /* ecore_x_window_prop_card32_get */
+}
/*
* Get CARD32 (array) property of any length
XFree(prop_ret);
return num;
-} /* ecore_x_window_prop_card32_list_get */
+}
/*
* Set X ID (array) property
(unsigned char *)pl, num);
free(pl);
#endif /* if SIZEOF_INT == SIZEOF_LONG */
-} /* ecore_x_window_prop_xid_set */
+}
/*
* Get X ID (array) property
XFree(prop_ret);
return num;
-} /* ecore_x_window_prop_xid_get */
+}
/*
* Get X ID (array) property
XFree(prop_ret);
return num;
-} /* ecore_x_window_prop_xid_list_get */
+}
/*
* Remove/add/toggle X ID list item.
done:
if (lst)
free(lst);
-} /* ecore_x_window_prop_xid_list_change */
+}
/*
* Set Atom (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_ATOM, lst, num);
-} /* ecore_x_window_prop_atom_set */
+}
/*
* Get Atom (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_ATOM, lst, len);
-} /* ecore_x_window_prop_atom_get */
+}
/*
* Get Atom (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_ATOM, plst);
-} /* ecore_x_window_prop_atom_list_get */
+}
/*
* Remove/add/toggle atom list item.
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_list_change(win, atom, XA_ATOM, item, op);
-} /* ecore_x_window_prop_atom_list_change */
+}
/*
* Set Window (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_WINDOW, lst, num);
-} /* ecore_x_window_prop_window_set */
+}
/*
* Get Window (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_WINDOW, lst, len);
-} /* ecore_x_window_prop_window_get */
+}
/*
* Get Window (array) property
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_WINDOW, plst);
-} /* ecore_x_window_prop_window_list_get */
+}
/**
* To be documented.
ecore_x_window_prop_any_type(void)
{
return AnyPropertyType;
-} /* ecore_x_window_prop_any_type */
+}
/**
* To be documented.
free(dat);
}
}
-} /* ecore_x_window_prop_property_set */
+}
/**
* To be documented.
for (i = 0; i < num_ret; i++)
((unsigned int *)*data)[i] = ((unsigned long *)prop_ret)[i];
break;
- } /* switch */
+ }
XFree(prop_ret);
*num = num_ret;
return size_ret;
-} /* ecore_x_window_prop_property_get */
+}
EAPI void
ecore_x_window_prop_property_del(Ecore_X_Window win,
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, property);
-} /* ecore_x_window_prop_property_del */
+}
EAPI Ecore_X_Atom *
ecore_x_window_prop_list(Ecore_X_Window win,
XFree(atom_ret);
return atoms;
-} /* ecore_x_window_prop_list */
+}
/**
* Set a window string property.
xtp.encoding = ECORE_X_ATOM_UTF8_STRING;
xtp.nitems = strlen(str);
XSetTextProperty(_ecore_x_disp, win, &xtp, type);
-} /* ecore_x_window_prop_string_set */
+}
/**
* Get a window string property.
}
return str;
-} /* ecore_x_window_prop_string_get */
+}
EAPI Eina_Bool
ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
XFree(protos);
return ret;
-} /* ecore_x_window_prop_protocol_isset */
+}
/**
* To be documented.
XFree(protos);
*num_ret = protos_count;
return prot_ret;
-} /* ecore_x_window_prop_protocol_list_get */
+}
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
-} /* ecore_x_window_shape_mask_set */
+}
/**
* Sets the input shape of the given window to that given by the pixmap @p mask.
return;
win = mask = 0;
#endif /* ifdef ShapeInput */
-} /* ecore_x_window_shape_input_mask_set */
+}
EAPI void
ecore_x_window_shape_window_set(Ecore_X_Window win,
shape_win,
ShapeBounding,
ShapeSet);
-} /* ecore_x_window_shape_window_set */
+}
EAPI void
ecore_x_window_shape_input_window_set(Ecore_X_Window win,
return;
win = shape_win = 0;
#endif
-} /* ecore_x_window_shape_input_window_set */
+}
EAPI void
ecore_x_window_shape_window_set_xy(Ecore_X_Window win,
shape_win,
ShapeBounding,
ShapeSet);
-} /* ecore_x_window_shape_window_set_xy */
+}
EAPI void
ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win,
return;
win = shape_win = x = y = 0;
#endif
-} /* ecore_x_window_shape_input_window_set_xy */
+}
EAPI void
ecore_x_window_shape_rectangle_set(Ecore_X_Window win,
1,
ShapeSet,
Unsorted);
-} /* ecore_x_window_shape_rectangle_set */
+}
EAPI void
ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win,
return;
win = x = y = w = h = 0;
#endif
-} /* ecore_x_window_shape_input_rectangle_set */
+}
EAPI void
ecore_x_window_shape_rectangles_set(Ecore_X_Window win,
return;
win = rects = num = 0;
#endif
-} /* ecore_x_window_shape_rectangles_set */
+}
EAPI void
ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win,
return;
win = rects = num = 0;
#endif
-} /* ecore_x_window_shape_input_rectangles_set */
+}
EAPI void
ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win,
1,
ShapeSubtract,
Unsorted);
-} /* ecore_x_window_shape_rectangle_subtract */
+}
EAPI void
ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win,
return;
win = x = y = w = h = 0;
#endif
-} /* ecore_x_window_shape_input_rectangle_subtract */
+}
EAPI void
ecore_x_window_shape_window_add(Ecore_X_Window win,
shape_win,
ShapeBounding,
ShapeUnion);
-} /* ecore_x_window_shape_window_add */
+}
EAPI void
ecore_x_window_shape_window_add_xy(Ecore_X_Window win,
shape_win,
ShapeBounding,
ShapeUnion);
-} /* ecore_x_window_shape_window_add_xy */
+}
EAPI void
ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win,
return;
win = shape_win = x = y = 0;
#endif
-} /* ecore_x_window_shape_input_window_add_xy */
+}
EAPI void
ecore_x_window_shape_rectangle_add(Ecore_X_Window win,
1,
ShapeUnion,
Unsorted);
-} /* ecore_x_window_shape_rectangle_add */
+}
EAPI void
ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win,
return;
win = x = y = w = h = 0;
#endif
-} /* ecore_x_window_shape_input_rectangle_add */
+}
EAPI void
ecore_x_window_shape_rectangle_clip(Ecore_X_Window win,
1,
ShapeIntersect,
Unsorted);
-} /* ecore_x_window_shape_rectangle_clip */
+}
EAPI void
ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win,
return;
win = x = y = w = h = 0;
#endif
-} /* ecore_x_window_shape_input_rectangle_clip */
+}
EAPI void
ecore_x_window_shape_rectangles_add(Ecore_X_Window win,
ShapeUnion,
Unsorted);
if (rect) free(rect);
-} /* ecore_x_window_shape_rectangles_add */
+}
EAPI void
ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win,
return;
win = rects = num = 0;
#endif
-} /* ecore_x_window_shape_input_rectangles_add */
+}
EAPI Ecore_X_Rectangle *
ecore_x_window_shape_rectangles_get(Ecore_X_Window win,
}
if (num_ret) *num_ret = num;
return rects;
-} /* ecore_x_window_shape_rectangles_get */
+}
EAPI Ecore_X_Rectangle *
ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win,
if (num_ret) *num_ret = 1;
return rects;
#endif
-} /* ecore_x_window_shape_input_rectangles_get */
+}
EAPI void
ecore_x_window_shape_events_select(Ecore_X_Window win,
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
else
XShapeSelectInput(_ecore_x_disp, win, 0);
-} /* ecore_x_window_shape_events_select */
+}
_ecore_x_xi2_devs = XIQueryDevice(_ecore_x_disp, XIAllDevices,
&_ecore_x_xi2_num);
#endif /* ifdef ECORE_XI2 */
-} /* _ecore_x_input_init */
+}
void
_ecore_x_input_shutdown(void)
_ecore_x_xi2_num = 0;
_ecore_x_xi2_opcode = -1;
#endif /* ifdef ECORE_XI2 */
-} /* _ecore_x_input_shutdown */
+}
void
_ecore_x_input_handler(XEvent *xevent)
#endif
default:
break;
- } /* switch */
+ }
#endif /* ifdef ECORE_XI2 */
-} /* _ecore_x_input_handler */
+}
EAPI Eina_Bool
ecore_x_input_multi_select(Ecore_X_Window win)
#else /* ifdef ECORE_XI2 */
return EINA_FALSE;
#endif /* ifdef ECORE_XI2 */
-} /* ecore_x_input_multi_select */
+}
#endif /* ifdef ECORE_XINERAMA */
return 0;
-} /* ecore_x_xinerama_screen_count_get */
+}
EAPI Eina_Bool
ecore_x_xinerama_screen_geometry_get(int screen,
return EINA_FALSE;
screen = 0;
-} /* ecore_x_xinerama_screen_geometry_get */
+}