1 /*
2  * This file generated automatically from xtest.xml by c-client.xsl using XSLT.
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 
13 module std.c.linux.X11.xcb.xtest;
14 
15 import std.c.linux.X11.xcb.xcb;
16 import std.c.linux.X11.xcb.xproto;
17 
18 const int XCB_TEST_MAJOR_VERSION =2;
19 const int XCB_TEST_MINOR_VERSION =1;
20   
21 extern(C) extern xcb_extension_t xcb_test_id;
22 
23 /**
24  * @brief xcb_test_get_version_cookie_t
25  **/
26 struct xcb_test_get_version_cookie_t {
27     uint sequence; /**<  */
28 } ;
29 
30 /** Opcode for xcb_test_get_version. */
31 const uint XCB_TEST_GET_VERSION = 0;
32 
33 /**
34  * @brief xcb_test_get_version_request_t
35  **/
36 struct xcb_test_get_version_request_t {
37     ubyte  major_opcode; /**<  */
38     ubyte  minor_opcode; /**<  */
39     ushort length; /**<  */
40     ubyte  major_version; /**<  */
41     ubyte  pad0; /**<  */
42     ushort minor_version; /**<  */
43 } ;
44 
45 /**
46  * @brief xcb_test_get_version_reply_t
47  **/
48 struct xcb_test_get_version_reply_t {
49     ubyte  response_type; /**<  */
50     ubyte  major_version; /**<  */
51     ushort sequence; /**<  */
52     uint   length; /**<  */
53     ushort minor_version; /**<  */
54 } ;
55 
56 enum :int{
57     XCB_TEST_CURSOR_NONE = 0,
58     XCB_TEST_CURSOR_CURRENT = 1
59 };
60 
61 /**
62  * @brief xcb_test_compare_cursor_cookie_t
63  **/
64 struct xcb_test_compare_cursor_cookie_t {
65     uint sequence; /**<  */
66 } ;
67 
68 /** Opcode for xcb_test_compare_cursor. */
69 const uint XCB_TEST_COMPARE_CURSOR = 1;
70 
71 /**
72  * @brief xcb_test_compare_cursor_request_t
73  **/
74 struct xcb_test_compare_cursor_request_t {
75     ubyte        major_opcode; /**<  */
76     ubyte        minor_opcode; /**<  */
77     ushort       length; /**<  */
78     xcb_window_t window; /**<  */
79     xcb_cursor_t cursor; /**<  */
80 } ;
81 
82 /**
83  * @brief xcb_test_compare_cursor_reply_t
84  **/
85 struct xcb_test_compare_cursor_reply_t {
86     ubyte  response_type; /**<  */
87     bool   same; /**<  */
88     ushort sequence; /**<  */
89     uint   length; /**<  */
90 } ;
91 
92 /** Opcode for xcb_test_fake_input. */
93 const uint XCB_TEST_FAKE_INPUT = 2;
94 
95 /**
96  * @brief xcb_test_fake_input_request_t
97  **/
98 struct xcb_test_fake_input_request_t {
99     ubyte        major_opcode; /**<  */
100     ubyte        minor_opcode; /**<  */
101     ushort       length; /**<  */
102     ubyte        type; /**<  */
103     ubyte        detail; /**<  */
104     ubyte        pad0[2]; /**<  */
105     uint         time; /**<  */
106     xcb_window_t window; /**<  */
107     ubyte        pad1[8]; /**<  */
108     ushort       rootX; /**<  */
109     ushort       rootY; /**<  */
110     ubyte        pad2[7]; /**<  */
111     ubyte        deviceid; /**<  */
112 } ;
113 
114 /** Opcode for xcb_test_grab_control. */
115 const uint XCB_TEST_GRAB_CONTROL = 3;
116 
117 /**
118  * @brief xcb_test_grab_control_request_t
119  **/
120 struct xcb_test_grab_control_request_t {
121     ubyte  major_opcode; /**<  */
122     ubyte  minor_opcode; /**<  */
123     ushort length; /**<  */
124     bool   impervious; /**<  */
125     ubyte  pad0[3]; /**<  */
126 } ;
127 
128 
129 /*****************************************************************************
130  **
131  ** xcb_test_get_version_cookie_t xcb_test_get_version
132  ** 
133  ** @param xcb_connection_t *c
134  ** @param ubyte             major_version
135  ** @param ushort            minor_version
136  ** @returns xcb_test_get_version_cookie_t
137  **
138  *****************************************************************************/
139  
140 extern(C) xcb_test_get_version_cookie_t
141 xcb_test_get_version (xcb_connection_t *c  /**< */,
142                       ubyte             major_version  /**< */,
143                       ushort            minor_version  /**< */);
144 
145 
146 /*****************************************************************************
147  **
148  ** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
149  ** 
150  ** @param xcb_connection_t *c
151  ** @param ubyte             major_version
152  ** @param ushort            minor_version
153  ** @returns xcb_test_get_version_cookie_t
154  **
155  *****************************************************************************/
156  
157 extern(C) xcb_test_get_version_cookie_t
158 xcb_test_get_version_unchecked (xcb_connection_t *c  /**< */,
159                                 ubyte             major_version  /**< */,
160                                 ushort            minor_version  /**< */);
161 
162 
163 /*****************************************************************************
164  **
165  ** xcb_test_get_version_reply_t * xcb_test_get_version_reply
166  ** 
167  ** @param xcb_connection_t               *c
168  ** @param xcb_test_get_version_cookie_t   cookie
169  ** @param xcb_generic_error_t           **e
170  ** @returns xcb_test_get_version_reply_t *
171  **
172  *****************************************************************************/
173  
174 extern(C) xcb_test_get_version_reply_t *
175 xcb_test_get_version_reply (xcb_connection_t               *c  /**< */,
176                             xcb_test_get_version_cookie_t   cookie  /**< */,
177                             xcb_generic_error_t           **e  /**< */);
178 
179 
180 /*****************************************************************************
181  **
182  ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
183  ** 
184  ** @param xcb_connection_t *c
185  ** @param xcb_window_t      window
186  ** @param xcb_cursor_t      cursor
187  ** @returns xcb_test_compare_cursor_cookie_t
188  **
189  *****************************************************************************/
190  
191 extern(C) xcb_test_compare_cursor_cookie_t
192 xcb_test_compare_cursor (xcb_connection_t *c  /**< */,
193                          xcb_window_t      window  /**< */,
194                          xcb_cursor_t      cursor  /**< */);
195 
196 
197 /*****************************************************************************
198  **
199  ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
200  ** 
201  ** @param xcb_connection_t *c
202  ** @param xcb_window_t      window
203  ** @param xcb_cursor_t      cursor
204  ** @returns xcb_test_compare_cursor_cookie_t
205  **
206  *****************************************************************************/
207  
208 extern(C) xcb_test_compare_cursor_cookie_t
209 xcb_test_compare_cursor_unchecked (xcb_connection_t *c  /**< */,
210                                    xcb_window_t      window  /**< */,
211                                    xcb_cursor_t      cursor  /**< */);
212 
213 
214 /*****************************************************************************
215  **
216  ** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
217  ** 
218  ** @param xcb_connection_t                  *c
219  ** @param xcb_test_compare_cursor_cookie_t   cookie
220  ** @param xcb_generic_error_t              **e
221  ** @returns xcb_test_compare_cursor_reply_t *
222  **
223  *****************************************************************************/
224  
225 extern(C) xcb_test_compare_cursor_reply_t *
226 xcb_test_compare_cursor_reply (xcb_connection_t                  *c  /**< */,
227                                xcb_test_compare_cursor_cookie_t   cookie  /**< */,
228                                xcb_generic_error_t              **e  /**< */);
229 
230 
231 /*****************************************************************************
232  **
233  ** xcb_void_cookie_t xcb_test_fake_input_checked
234  ** 
235  ** @param xcb_connection_t *c
236  ** @param ubyte             type
237  ** @param ubyte             detail
238  ** @param uint              time
239  ** @param xcb_window_t      window
240  ** @param ushort            rootX
241  ** @param ushort            rootY
242  ** @param ubyte             deviceid
243  ** @returns xcb_void_cookie_t
244  **
245  *****************************************************************************/
246  
247 extern(C) xcb_void_cookie_t
248 xcb_test_fake_input_checked (xcb_connection_t *c  /**< */,
249                              ubyte             type  /**< */,
250                              ubyte             detail  /**< */,
251                              uint              time  /**< */,
252                              xcb_window_t      window  /**< */,
253                              ushort            rootX  /**< */,
254                              ushort            rootY  /**< */,
255                              ubyte             deviceid  /**< */);
256 
257 
258 /*****************************************************************************
259  **
260  ** xcb_void_cookie_t xcb_test_fake_input
261  ** 
262  ** @param xcb_connection_t *c
263  ** @param ubyte             type
264  ** @param ubyte             detail
265  ** @param uint              time
266  ** @param xcb_window_t      window
267  ** @param ushort            rootX
268  ** @param ushort            rootY
269  ** @param ubyte             deviceid
270  ** @returns xcb_void_cookie_t
271  **
272  *****************************************************************************/
273  
274 extern(C) xcb_void_cookie_t
275 xcb_test_fake_input (xcb_connection_t *c  /**< */,
276                      ubyte             type  /**< */,
277                      ubyte             detail  /**< */,
278                      uint              time  /**< */,
279                      xcb_window_t      window  /**< */,
280                      ushort            rootX  /**< */,
281                      ushort            rootY  /**< */,
282                      ubyte             deviceid  /**< */);
283 
284 
285 /*****************************************************************************
286  **
287  ** xcb_void_cookie_t xcb_test_grab_control_checked
288  ** 
289  ** @param xcb_connection_t *c
290  ** @param bool              impervious
291  ** @returns xcb_void_cookie_t
292  **
293  *****************************************************************************/
294  
295 extern(C) xcb_void_cookie_t
296 xcb_test_grab_control_checked (xcb_connection_t *c  /**< */,
297                                bool              impervious  /**< */);
298 
299 
300 /*****************************************************************************
301  **
302  ** xcb_void_cookie_t xcb_test_grab_control
303  ** 
304  ** @param xcb_connection_t *c
305  ** @param bool              impervious
306  ** @returns xcb_void_cookie_t
307  **
308  *****************************************************************************/
309  
310 extern(C) xcb_void_cookie_t
311 xcb_test_grab_control (xcb_connection_t *c  /**< */,
312                        bool              impervious  /**< */);
313 
314 
315 
316 /**
317  * @}
318  */