libxdo
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
xdotool.h
1
#ifndef _XDOTOOL_H_
2
#define _XDOTOOL_H_
3
4
/* TODO(sissel): use proper printf format depending on the storage
5
* size of Window (could be 4 or 8 bytes depending on platform */
6
#define window_print(window) (printf("%ld\n", window))
7
#define window_each(context, window_arg, block) \
8
{ \
9
Window *windows; \
10
int nwindows; \
11
window_list(context, window_arg, &windows, &nwindows, False); \
12
int w_index;\
13
for (w_index = 0; w_index < nwindows; w_index++) { \
14
Window window = windows[w_index]; \
15
{ \
16
block \
17
} \
18
} \
19
}
/* end define window_each */
20
21
22
23
typedef
struct
context
{
24
xdo_t
*
xdo
;
25
int
argc;
26
char
**argv;
27
Window *windows;
28
int
nwindows;
29
Window window_placeholder[1];
30
}
context_t
;
31
32
int
cmd_click(
context_t
*
context
);
33
int
cmd_getwindowfocus(
context_t
*
context
);
34
int
cmd_getwindowpid(
context_t
*
context
);
35
int
cmd_getactivewindow(
context_t
*
context
);
36
int
cmd_help(
context_t
*
context
);
37
int
cmd_key(
context_t
*
context
);
38
int
cmd_mousedown(
context_t
*
context
);
39
int
cmd_mousemove(
context_t
*
context
);
40
int
cmd_mousemove_relative(
context_t
*
context
);
41
int
cmd_mouseup(
context_t
*
context
);
42
int
cmd_getmouselocation(
context_t
*
context
);
43
int
cmd_search(
context_t
*
context
);
44
int
cmd_type(
context_t
*
context
);
45
int
cmd_windowactivate(
context_t
*
context
);
46
int
cmd_windowfocus(
context_t
*
context
);
47
int
cmd_windowmap(
context_t
*
context
);
48
int
cmd_windowmove(
context_t
*
context
);
49
int
cmd_windowraise(
context_t
*
context
);
50
int
cmd_windowsize(
context_t
*
context
);
51
int
cmd_windowunmap(
context_t
*
context
);
52
int
cmd_set_window(
context_t
*
context
);
53
int
cmd_version(
context_t
*
context
);
54
55
/* pager-like commands */
56
int
cmd_set_num_desktops(
context_t
*
context
);
57
int
cmd_get_num_desktops(
context_t
*
context
);
58
int
cmd_set_desktop(
context_t
*
context
);
59
int
cmd_get_desktop(
context_t
*
context
);
60
int
cmd_set_desktop_for_window(
context_t
*
context
);
61
int
cmd_get_desktop_for_window(
context_t
*
context
);
62
63
#endif
/* _XDOTOOL_H_ */
Generated on Tue Apr 1 2014 22:25:41 for libxdo by
1.8.1.2