11 #include <sys/types.h>
33 #define SIZE_USEHINTS (1L << 0)
43 #define CURRENTWINDOW (0)
88 XModifierKeymap *modmap;
100 int keysyms_per_keycode;
117 unsigned int input_state;
125 #define SEARCH_TITLE (1UL << 0)
131 #define SEARCH_CLASS (1UL << 1)
137 #define SEARCH_NAME (1UL << 2)
143 #define SEARCH_PID (1UL << 3)
149 #define SEARCH_ONLYVISIBLE (1UL << 4)
156 #define SEARCH_SCREEN (1UL << 5)
162 #define SEARCH_CLASSNAME (1UL << 6)
183 enum { SEARCH_ANY, SEARCH_ALL }
require;
192 #define XDO_SUCCESS 0
202 xdo_t* xdo_new(
char *display);
212 xdo_t* xdo_new_with_opened_display(Display *xdpy,
const char *display,
213 int close_display_when_freed);
218 const char *xdo_version(
void);
235 int xdo_mousemove(
const xdo_t *
xdo,
int x,
int y,
int screen);
244 int xdo_mousemove_relative_to_window(
const xdo_t *
xdo, Window window,
int x,
int y);
252 int xdo_mousemove_relative(
const xdo_t *
xdo,
int x,
int y);
262 int xdo_mousedown(
const xdo_t *
xdo, Window window,
int button);
272 int xdo_mouseup(
const xdo_t *
xdo, Window window,
int button);
281 int xdo_mouselocation(
const xdo_t *
xdo,
int *x,
int *y,
int *screen_num);
290 int xdo_mouse_wait_for_move_from(
const xdo_t *
xdo,
int origin_x,
int origin_y);
299 int xdo_mouse_wait_for_move_to(
const xdo_t *
xdo,
int dest_x,
int dest_y);
308 int xdo_click(
const xdo_t *
xdo, Window window,
int button);
321 int xdo_type(
const xdo_t *
xdo, Window window,
char *
string, useconds_t delay);
344 int xdo_keysequence(
const xdo_t *
xdo, Window window,
345 const char *keysequence, useconds_t delay);
352 int xdo_keysequence_up(
const xdo_t *
xdo, Window window,
353 const char *keysequence, useconds_t delay);
360 int xdo_keysequence_down(
const xdo_t *
xdo, Window window,
361 const char *keysequence, useconds_t delay);
374 int xdo_keysequence_list_do(
const xdo_t *
xdo, Window window,
376 int pressed,
int *modifier, useconds_t delay);
400 int xdo_window_wait_for_map_state(
const xdo_t *
xdo, Window wid,
int map_state);
404 int xdo_window_wait_for_size(
const xdo_t *
xdo, Window window,
unsigned int width,
405 unsigned int height,
int flags,
int to_or_from);
417 int xdo_window_move(
const xdo_t *
xdo, Window wid,
int x,
int y);
431 int xdo_window_translate_with_sizehint(
const xdo_t *
xdo, Window window,
432 int width,
int height,
int *width_ret,
444 int xdo_window_setsize(
const xdo_t *
xdo, Window wid,
int w,
int h,
int flags);
455 int xdo_window_setprop (
const xdo_t *
xdo, Window wid,
const char *property,
464 int xdo_window_setclass(
const xdo_t *
xdo, Window wid,
const char *name,
473 int xdo_window_focus(
const xdo_t *
xdo, Window wid);
481 int xdo_window_raise(
const xdo_t *
xdo, Window wid);
489 int xdo_window_get_focus(
const xdo_t *
xdo, Window *window_ret);
497 int xdo_window_wait_for_focus(
const xdo_t *
xdo, Window window,
int want_focus);
506 int xdo_window_get_pid(
const xdo_t *
xdo, Window window);
517 int xdo_window_sane_get_focus(
const xdo_t *
xdo, Window *window_ret);
530 int xdo_window_activate(
const xdo_t *
xdo, Window wid);
541 int xdo_window_wait_for_active(
const xdo_t *
xdo, Window window,
int active);
549 int xdo_window_map(
const xdo_t *
xdo, Window wid);
556 int xdo_window_unmap(
const xdo_t *
xdo, Window wid);
569 int xdo_get_window_location(
const xdo_t *
xdo, Window wid,
570 int *x_ret,
int *y_ret, Screen **screen_ret);
579 int xdo_get_window_size(
const xdo_t *
xdo, Window wid,
unsigned int *width_ret,
580 unsigned int *height_ret);
591 int xdo_window_get_active(
const xdo_t *
xdo, Window *window_ret);
599 int xdo_set_number_of_desktops(
const xdo_t *
xdo,
long ndesktops);
608 int xdo_get_number_of_desktops(
const xdo_t *
xdo,
long *ndesktops);
616 int xdo_set_current_desktop(
const xdo_t *
xdo,
long desktop);
624 int xdo_get_current_desktop(
const xdo_t *
xdo,
long *desktop);
633 int xdo_set_desktop_for_window(
const xdo_t *
xdo, Window wid,
long desktop);
642 int xdo_get_desktop_for_window(
const xdo_t *
xdo, Window wid,
long *desktop);
653 Window **windowlist_ret,
int *nwindows_ret);
666 unsigned char *xdo_getwinprop(
const xdo_t *
xdo, Window window, Atom atom,
667 long *nitems, Atom *type,
int *size);
676 unsigned int xdo_get_input_state(
const xdo_t *
xdo);
692 const char **xdo_symbol_map(
void);
706 int xdo_clear_active_modifiers(
const xdo_t *
xdo, Window window,
714 int xdo_set_active_modifiers(
const xdo_t *
xdo, Window window,