1 /*
2  * This file generated automatically from damage.xml by c-client.xsl using XSLT.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_Damage_API XCB Damage API
8  * @brief Damage XCB Protocol Implementation.
9  * @{
10  **/
11 
12 
13 module std.c.linux.X11.xcb.damage;
14 
15 import std.c.linux.X11.xcb.xcb;
16 import std.c.linux.X11.xcb.xproto;
17 import std.c.linux.X11.xcb.xfixes;
18 
19 const int XCB_DAMAGE_MAJOR_VERSION =1;
20 const int XCB_DAMAGE_MINOR_VERSION =0;
21   
22 extern(C) extern xcb_extension_t xcb_damage_id;
23 
24 alias uint xcb_damage_damage_t;
25 
26 /**
27  * @brief xcb_damage_damage_iterator_t
28  **/
29 struct xcb_damage_damage_iterator_t {
30     xcb_damage_damage_t *data; /**<  */
31     int                  rem; /**<  */
32     int                  index; /**<  */
33 } ;
34 
35 enum :int{
36     XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES,
37     XCB_DAMAGE_REPORT_LEVEL_DELTA_RECTANGLES,
38     XCB_DAMAGE_REPORT_LEVEL_BOUNDING_BOX,
39     XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY
40 };
41 
42 /** Opcode for xcb_damage_bad_damage. */
43 const uint XCB_DAMAGE_BAD_DAMAGE = 0;
44 
45 /**
46  * @brief xcb_damage_bad_damage_error_t
47  **/
48 struct xcb_damage_bad_damage_error_t {
49     ubyte  response_type; /**<  */
50     ubyte  error_code; /**<  */
51     ushort sequence; /**<  */
52 } ;
53 
54 /**
55  * @brief xcb_damage_query_version_cookie_t
56  **/
57 struct xcb_damage_query_version_cookie_t {
58     uint sequence; /**<  */
59 } ;
60 
61 /** Opcode for xcb_damage_query_version. */
62 const uint XCB_DAMAGE_QUERY_VERSION = 0;
63 
64 /**
65  * @brief xcb_damage_query_version_request_t
66  **/
67 struct xcb_damage_query_version_request_t {
68     ubyte  major_opcode; /**<  */
69     ubyte  minor_opcode; /**<  */
70     ushort length; /**<  */
71     uint   client_major_version; /**<  */
72     uint   client_minor_version; /**<  */
73 } ;
74 
75 /**
76  * @brief xcb_damage_query_version_reply_t
77  **/
78 struct xcb_damage_query_version_reply_t {
79     ubyte  response_type; /**<  */
80     ubyte  pad0; /**<  */
81     ushort sequence; /**<  */
82     uint   length; /**<  */
83     uint   major_version; /**<  */
84     uint   minor_version; /**<  */
85     ubyte  pad1[16]; /**<  */
86 } ;
87 
88 /** Opcode for xcb_damage_create. */
89 const uint XCB_DAMAGE_CREATE = 1;
90 
91 /**
92  * @brief xcb_damage_create_request_t
93  **/
94 struct xcb_damage_create_request_t {
95     ubyte               major_opcode; /**<  */
96     ubyte               minor_opcode; /**<  */
97     ushort              length; /**<  */
98     xcb_damage_damage_t damage; /**<  */
99     xcb_drawable_t      drawable; /**<  */
100     ubyte               level; /**<  */
101     ubyte               pad0[3]; /**<  */
102 } ;
103 
104 /** Opcode for xcb_damage_destroy. */
105 const uint XCB_DAMAGE_DESTROY = 2;
106 
107 /**
108  * @brief xcb_damage_destroy_request_t
109  **/
110 struct xcb_damage_destroy_request_t {
111     ubyte               major_opcode; /**<  */
112     ubyte               minor_opcode; /**<  */
113     ushort              length; /**<  */
114     xcb_damage_damage_t damage; /**<  */
115 } ;
116 
117 /** Opcode for xcb_damage_subtract. */
118 const uint XCB_DAMAGE_SUBTRACT = 3;
119 
120 /**
121  * @brief xcb_damage_subtract_request_t
122  **/
123 struct xcb_damage_subtract_request_t {
124     ubyte               major_opcode; /**<  */
125     ubyte               minor_opcode; /**<  */
126     ushort              length; /**<  */
127     xcb_damage_damage_t damage; /**<  */
128     xcb_xfixes_region_t repair; /**<  */
129     xcb_xfixes_region_t parts; /**<  */
130 } ;
131 
132 /** Opcode for xcb_damage_notify. */
133 const uint XCB_DAMAGE_NOTIFY = 0;
134 
135 /**
136  * @brief xcb_damage_notify_event_t
137  **/
138 struct xcb_damage_notify_event_t {
139     ubyte               response_type; /**<  */
140     ubyte               level; /**<  */
141     ushort              sequence; /**<  */
142     xcb_drawable_t      drawable; /**<  */
143     xcb_damage_damage_t damage; /**<  */
144     xcb_timestamp_t     timestamp; /**<  */
145     xcb_rectangle_t     area; /**<  */
146     xcb_rectangle_t     geometry; /**<  */
147 } ;
148 
149 
150 /*****************************************************************************
151  **
152  ** void xcb_damage_damage_next
153  ** 
154  ** @param xcb_damage_damage_iterator_t *i
155  ** @returns void
156  **
157  *****************************************************************************/
158  
159 extern(C) void
160 xcb_damage_damage_next (xcb_damage_damage_iterator_t *i  /**< */);
161 
162 
163 /*****************************************************************************
164  **
165  ** xcb_generic_iterator_t xcb_damage_damage_end
166  ** 
167  ** @param xcb_damage_damage_iterator_t i
168  ** @returns xcb_generic_iterator_t
169  **
170  *****************************************************************************/
171  
172 extern(C) xcb_generic_iterator_t
173 xcb_damage_damage_end (xcb_damage_damage_iterator_t i  /**< */);
174 
175 
176 /*****************************************************************************
177  **
178  ** xcb_damage_query_version_cookie_t xcb_damage_query_version
179  ** 
180  ** @param xcb_connection_t *c
181  ** @param uint              client_major_version
182  ** @param uint              client_minor_version
183  ** @returns xcb_damage_query_version_cookie_t
184  **
185  *****************************************************************************/
186  
187 extern(C) xcb_damage_query_version_cookie_t
188 xcb_damage_query_version (xcb_connection_t *c  /**< */,
189                           uint              client_major_version  /**< */,
190                           uint              client_minor_version  /**< */);
191 
192 
193 /*****************************************************************************
194  **
195  ** xcb_damage_query_version_cookie_t xcb_damage_query_version_unchecked
196  ** 
197  ** @param xcb_connection_t *c
198  ** @param uint              client_major_version
199  ** @param uint              client_minor_version
200  ** @returns xcb_damage_query_version_cookie_t
201  **
202  *****************************************************************************/
203  
204 extern(C) xcb_damage_query_version_cookie_t
205 xcb_damage_query_version_unchecked (xcb_connection_t *c  /**< */,
206                                     uint              client_major_version  /**< */,
207                                     uint              client_minor_version  /**< */);
208 
209 
210 /*****************************************************************************
211  **
212  ** xcb_damage_query_version_reply_t * xcb_damage_query_version_reply
213  ** 
214  ** @param xcb_connection_t                   *c
215  ** @param xcb_damage_query_version_cookie_t   cookie
216  ** @param xcb_generic_error_t               **e
217  ** @returns xcb_damage_query_version_reply_t *
218  **
219  *****************************************************************************/
220  
221 extern(C) xcb_damage_query_version_reply_t *
222 xcb_damage_query_version_reply (xcb_connection_t                   *c  /**< */,
223                                 xcb_damage_query_version_cookie_t   cookie  /**< */,
224                                 xcb_generic_error_t               **e  /**< */);
225 
226 
227 /*****************************************************************************
228  **
229  ** xcb_void_cookie_t xcb_damage_create_checked
230  ** 
231  ** @param xcb_connection_t    *c
232  ** @param xcb_damage_damage_t  damage
233  ** @param xcb_drawable_t       drawable
234  ** @param ubyte                level
235  ** @returns xcb_void_cookie_t
236  **
237  *****************************************************************************/
238  
239 extern(C) xcb_void_cookie_t
240 xcb_damage_create_checked (xcb_connection_t    *c  /**< */,
241                            xcb_damage_damage_t  damage  /**< */,
242                            xcb_drawable_t       drawable  /**< */,
243                            ubyte                level  /**< */);
244 
245 
246 /*****************************************************************************
247  **
248  ** xcb_void_cookie_t xcb_damage_create
249  ** 
250  ** @param xcb_connection_t    *c
251  ** @param xcb_damage_damage_t  damage
252  ** @param xcb_drawable_t       drawable
253  ** @param ubyte                level
254  ** @returns xcb_void_cookie_t
255  **
256  *****************************************************************************/
257  
258 extern(C) xcb_void_cookie_t
259 xcb_damage_create (xcb_connection_t    *c  /**< */,
260                    xcb_damage_damage_t  damage  /**< */,
261                    xcb_drawable_t       drawable  /**< */,
262                    ubyte                level  /**< */);
263 
264 
265 /*****************************************************************************
266  **
267  ** xcb_void_cookie_t xcb_damage_destroy_checked
268  ** 
269  ** @param xcb_connection_t    *c
270  ** @param xcb_damage_damage_t  damage
271  ** @returns xcb_void_cookie_t
272  **
273  *****************************************************************************/
274  
275 extern(C) xcb_void_cookie_t
276 xcb_damage_destroy_checked (xcb_connection_t    *c  /**< */,
277                             xcb_damage_damage_t  damage  /**< */);
278 
279 
280 /*****************************************************************************
281  **
282  ** xcb_void_cookie_t xcb_damage_destroy
283  ** 
284  ** @param xcb_connection_t    *c
285  ** @param xcb_damage_damage_t  damage
286  ** @returns xcb_void_cookie_t
287  **
288  *****************************************************************************/
289  
290 extern(C) xcb_void_cookie_t
291 xcb_damage_destroy (xcb_connection_t    *c  /**< */,
292                     xcb_damage_damage_t  damage  /**< */);
293 
294 
295 /*****************************************************************************
296  **
297  ** xcb_void_cookie_t xcb_damage_subtract_checked
298  ** 
299  ** @param xcb_connection_t    *c
300  ** @param xcb_damage_damage_t  damage
301  ** @param xcb_xfixes_region_t  repair
302  ** @param xcb_xfixes_region_t  parts
303  ** @returns xcb_void_cookie_t
304  **
305  *****************************************************************************/
306  
307 extern(C) xcb_void_cookie_t
308 xcb_damage_subtract_checked (xcb_connection_t    *c  /**< */,
309                              xcb_damage_damage_t  damage  /**< */,
310                              xcb_xfixes_region_t  repair  /**< */,
311                              xcb_xfixes_region_t  parts  /**< */);
312 
313 
314 /*****************************************************************************
315  **
316  ** xcb_void_cookie_t xcb_damage_subtract
317  ** 
318  ** @param xcb_connection_t    *c
319  ** @param xcb_damage_damage_t  damage
320  ** @param xcb_xfixes_region_t  repair
321  ** @param xcb_xfixes_region_t  parts
322  ** @returns xcb_void_cookie_t
323  **
324  *****************************************************************************/
325  
326 extern(C) xcb_void_cookie_t
327 xcb_damage_subtract (xcb_connection_t    *c  /**< */,
328                      xcb_damage_damage_t  damage  /**< */,
329                      xcb_xfixes_region_t  repair  /**< */,
330                      xcb_xfixes_region_t  parts  /**< */);
331 
332 
333 
334 /**
335  * @}
336  */