1 /*
2  * This file generated automatically from xtest.xml by d_client.py.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_Test_API XCB Test API
8  * @brief Test XCB Protocol Implementation.
9  * @{
10  **/
11 
12 module xcb.xtest;
13 
14 import xcb.xcb;
15 import xcb.xproto;
16 
17 extern (C):
18 
19 enum int XCB_TEST_MAJOR_VERSION = 2;
20 enum int XCB_TEST_MINOR_VERSION = 2;
21 
22 extern (C) __gshared extern xcb_extension_t xcb_test_id;
23 
24 /**
25  * @brief xcb_test_get_version_cookie_t
26  **/
27 struct xcb_test_get_version_cookie_t {
28 	uint sequence; /**<  */
29 }
30 
31 /** Opcode for xcb_test_get_version. */
32 enum XCB_TEST_GET_VERSION = 0;
33 
34 /**
35  * @brief xcb_test_get_version_request_t
36  **/
37 struct xcb_test_get_version_request_t {
38 	ubyte major_opcode; /**<  */
39 	ubyte minor_opcode; /**<  */
40 	ushort length; /**<  */
41 	ubyte major_version; /**<  */
42 	ubyte pad0; /**<  */
43 	ushort minor_version; /**<  */
44 }
45 
46 /**
47  * @brief xcb_test_get_version_reply_t
48  **/
49 struct xcb_test_get_version_reply_t {
50 	ubyte response_type; /**<  */
51 	ubyte major_version; /**<  */
52 	ushort sequence; /**<  */
53 	uint length; /**<  */
54 	ushort minor_version; /**<  */
55 }
56 
57 enum xcb_test_cursor_t {
58 	XCB_TEST_CURSOR_NONE = 0,
59 	XCB_TEST_CURSOR_CURRENT = 1
60 }
61 
62 alias XCB_TEST_CURSOR_NONE = xcb_test_cursor_t.XCB_TEST_CURSOR_NONE;
63 alias XCB_TEST_CURSOR_CURRENT = xcb_test_cursor_t.XCB_TEST_CURSOR_CURRENT;
64 
65 /**
66  * @brief xcb_test_compare_cursor_cookie_t
67  **/
68 struct xcb_test_compare_cursor_cookie_t {
69 	uint sequence; /**<  */
70 }
71 
72 /** Opcode for xcb_test_compare_cursor. */
73 enum XCB_TEST_COMPARE_CURSOR = 1;
74 
75 /**
76  * @brief xcb_test_compare_cursor_request_t
77  **/
78 struct xcb_test_compare_cursor_request_t {
79 	ubyte major_opcode; /**<  */
80 	ubyte minor_opcode; /**<  */
81 	ushort length; /**<  */
82 	xcb_window_t window; /**<  */
83 	xcb_cursor_t cursor; /**<  */
84 }
85 
86 /**
87  * @brief xcb_test_compare_cursor_reply_t
88  **/
89 struct xcb_test_compare_cursor_reply_t {
90 	ubyte response_type; /**<  */
91 	ubyte same; /**<  */
92 	ushort sequence; /**<  */
93 	uint length; /**<  */
94 }
95 
96 /** Opcode for xcb_test_fake_input. */
97 enum XCB_TEST_FAKE_INPUT = 2;
98 
99 /**
100  * @brief xcb_test_fake_input_request_t
101  **/
102 struct xcb_test_fake_input_request_t {
103 	ubyte major_opcode; /**<  */
104 	ubyte minor_opcode; /**<  */
105 	ushort length; /**<  */
106 	ubyte type; /**<  */
107 	ubyte detail; /**<  */
108 	ubyte[2] pad0; /**<  */
109 	uint time; /**<  */
110 	xcb_window_t root; /**<  */
111 	ubyte[8] pad1; /**<  */
112 	short rootX; /**<  */
113 	short rootY; /**<  */
114 	ubyte[7] pad2; /**<  */
115 	ubyte deviceid; /**<  */
116 }
117 
118 /** Opcode for xcb_test_grab_control. */
119 enum XCB_TEST_GRAB_CONTROL = 3;
120 
121 /**
122  * @brief xcb_test_grab_control_request_t
123  **/
124 struct xcb_test_grab_control_request_t {
125 	ubyte major_opcode; /**<  */
126 	ubyte minor_opcode; /**<  */
127 	ushort length; /**<  */
128 	ubyte impervious; /**<  */
129 	ubyte[3] pad0; /**<  */
130 }
131 
132 /**
133  *
134  * @param c The connection
135  * @return A cookie
136  *
137  * Delivers a request to the X server.
138  *
139  */
140 xcb_test_get_version_cookie_t xcb_test_get_version(xcb_connection_t* c /**< */ , ubyte major_version /**< */ , ushort minor_version /**< */ );
141 
142 /**
143  *
144  * @param c The connection
145  * @return A cookie
146  *
147  * Delivers a request to the X server.
148  *
149  * This form can be used only if the request will cause
150  * a reply to be generated. Any returned error will be
151  * placed in the event queue.
152  */
153 xcb_test_get_version_cookie_t xcb_test_get_version_unchecked(xcb_connection_t* c /**< */ , ubyte major_version /**< */ , ushort minor_version /**< */ );
154 
155 /**
156  * Return the reply
157  * @param c      The connection
158  * @param cookie The cookie
159  * @param e      The xcb_generic_error_t supplied
160  *
161  * Returns the reply of the request asked by
162  *
163  * The parameter @p e supplied to this function must be NULL if
164  * xcb_test_get_version_unchecked(). is used.
165  * Otherwise, it stores the error if any.
166  *
167  * The returned value must be freed by the caller using free().
168  */
169 xcb_test_get_version_reply_t* xcb_test_get_version_reply(xcb_connection_t* c /**< */ ,
170 	xcb_test_get_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
171 
172 /**
173  *
174  * @param c The connection
175  * @return A cookie
176  *
177  * Delivers a request to the X server.
178  *
179  */
180 xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , xcb_cursor_t cursor /**< */ );
181 
182 /**
183  *
184  * @param c The connection
185  * @return A cookie
186  *
187  * Delivers a request to the X server.
188  *
189  * This form can be used only if the request will cause
190  * a reply to be generated. Any returned error will be
191  * placed in the event queue.
192  */
193 xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ,
194 	xcb_cursor_t cursor /**< */ );
195 
196 /**
197  * Return the reply
198  * @param c      The connection
199  * @param cookie The cookie
200  * @param e      The xcb_generic_error_t supplied
201  *
202  * Returns the reply of the request asked by
203  *
204  * The parameter @p e supplied to this function must be NULL if
205  * xcb_test_compare_cursor_unchecked(). is used.
206  * Otherwise, it stores the error if any.
207  *
208  * The returned value must be freed by the caller using free().
209  */
210 xcb_test_compare_cursor_reply_t* xcb_test_compare_cursor_reply(xcb_connection_t* c /**< */ ,
211 	xcb_test_compare_cursor_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
212 
213 /**
214  *
215  * @param c The connection
216  * @return A cookie
217  *
218  * Delivers a request to the X server.
219  *
220  * This form can be used only if the request will not cause
221  * a reply to be generated. Any returned error will be
222  * saved for handling by xcb_request_check().
223  */
224 xcb_void_cookie_t xcb_test_fake_input_checked(xcb_connection_t* c /**< */ , ubyte type /**< */ , ubyte detail /**< */ , uint time /**< */ , xcb_window_t root /**< */ ,
225 	short rootX /**< */ , short rootY /**< */ , ubyte deviceid /**< */ );
226 
227 /**
228  *
229  * @param c The connection
230  * @return A cookie
231  *
232  * Delivers a request to the X server.
233  *
234  */
235 xcb_void_cookie_t xcb_test_fake_input(xcb_connection_t* c /**< */ , ubyte type /**< */ , ubyte detail /**< */ , uint time /**< */ , xcb_window_t root /**< */ , short rootX /**< */ ,
236 	short rootY /**< */ , ubyte deviceid /**< */ );
237 
238 /**
239  *
240  * @param c The connection
241  * @return A cookie
242  *
243  * Delivers a request to the X server.
244  *
245  * This form can be used only if the request will not cause
246  * a reply to be generated. Any returned error will be
247  * saved for handling by xcb_request_check().
248  */
249 xcb_void_cookie_t xcb_test_grab_control_checked(xcb_connection_t* c /**< */ , ubyte impervious /**< */ );
250 
251 /**
252  *
253  * @param c The connection
254  * @return A cookie
255  *
256  * Delivers a request to the X server.
257  *
258  */
259 xcb_void_cookie_t xcb_test_grab_control(xcb_connection_t* c /**< */ , ubyte impervious /**< */ );
260 
261 /**
262  * @}
263  */