2 * $XFree86: xc/include/extensions/renderproto.h,v 1.12 2002/09/26 02:56:48 keithp Exp $
4 * Copyright © 2000 SuSE, Inc.
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of SuSE not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. SuSE makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Author: Keith Packard, SuSE, Inc.
30 #include <X11/extensions/render.h>
33 #define Drawable CARD32
37 #define Colormap CARD32
38 #define GContext CARD32
40 #define VisualID CARD32
45 #define Picture CARD32
46 #define PictFormat CARD32
48 #define Glyphset CARD32
65 #define sz_xDirectFormat 16
76 #define sz_xPictFormInfo 28
83 #define sz_xPictVisual 8
88 CARD16 nPictVisuals B16
;
92 #define sz_xPictDepth 8
96 PictFormat fallback B32
;
99 #define sz_xPictScreen 8
109 #define sz_xIndexValue 12
118 #define sz_xRenderColor 8
125 #define sz_xPointFixed 8
132 #define sz_xLineFixed 16
135 xPointFixed p1
, p2
, p3
;
138 #define sz_xTriangle 24
147 #define sz_xTrapezoid 40
158 #define sz_xGlyphInfo 12
168 #define sz_xGlyphElt 8
174 #define sz_xSpanFix 12
183 * requests and replies
189 CARD32 majorVersion B32
;
190 CARD32 minorVersion B32
;
191 } xRenderQueryVersionReq
;
193 #define sz_xRenderQueryVersionReq 12
196 BYTE type
; /* X_Reply */
198 CARD16 sequenceNumber B16
;
200 CARD32 majorVersion B32
;
201 CARD32 minorVersion B32
;
206 } xRenderQueryVersionReply
;
208 #define sz_xRenderQueryVersionReply 32
214 } xRenderQueryPictFormatsReq
;
216 #define sz_xRenderQueryPictFormatsReq 4
219 BYTE type
; /* X_Reply */
221 CARD16 sequenceNumber B16
;
223 CARD32 numFormats B32
;
224 CARD32 numScreens B32
;
225 CARD32 numDepths B32
;
226 CARD32 numVisuals B32
;
227 CARD32 numSubpixel B32
; /* Version 0.6 */
229 } xRenderQueryPictFormatsReply
;
231 #define sz_xRenderQueryPictFormatsReply 32
237 PictFormat format B32
;
238 } xRenderQueryPictIndexValuesReq
;
240 #define sz_xRenderQueryPictIndexValuesReq 8
243 BYTE type
; /* X_Reply */
245 CARD16 sequenceNumber B16
;
247 CARD32 numIndexValues
;
253 } xRenderQueryPictIndexValuesReply
;
255 #define sz_xRenderQueryPictIndexValuesReply 32
262 Drawable drawable B32
;
263 PictFormat format B32
;
265 } xRenderCreatePictureReq
;
267 #define sz_xRenderCreatePictureReq 20
275 } xRenderChangePictureReq
;
277 #define sz_xRenderChangePictureReq 12
286 } xRenderSetPictureClipRectanglesReq
;
288 #define sz_xRenderSetPictureClipRectanglesReq 12
295 } xRenderFreePictureReq
;
297 #define sz_xRenderFreePictureReq 8
317 } xRenderCompositeReq
;
319 #define sz_xRenderCompositeReq 36
327 CARD32 colorScale B32
;
328 CARD32 alphaScale B32
;
337 #define sz_xRenderScaleReq 32
348 PictFormat maskFormat B32
;
351 } xRenderTrapezoidsReq
;
353 #define sz_xRenderTrapezoidsReq 24
364 PictFormat maskFormat B32
;
367 } xRenderTrianglesReq
;
369 #define sz_xRenderTrianglesReq 24
380 PictFormat maskFormat B32
;
383 } xRenderTriStripReq
;
385 #define sz_xRenderTriStripReq 24
396 PictFormat maskFormat B32
;
401 #define sz_xRenderTriFanReq 24
408 PictFormat format B32
;
409 } xRenderCreateGlyphSetReq
;
411 #define sz_xRenderCreateGlyphSetReq 12
418 Glyphset existing B32
;
419 } xRenderReferenceGlyphSetReq
;
421 #define sz_xRenderReferenceGlyphSetReq 24
427 Glyphset glyphset B32
;
428 } xRenderFreeGlyphSetReq
;
430 #define sz_xRenderFreeGlyphSetReq 8
436 Glyphset glyphset B32
;
438 } xRenderAddGlyphsReq
;
440 #define sz_xRenderAddGlyphsReq 12
446 Glyphset glyphset B32
;
447 } xRenderFreeGlyphsReq
;
449 #define sz_xRenderFreeGlyphsReq 8
460 PictFormat maskFormat B32
;
461 Glyphset glyphset B32
;
464 } xRenderCompositeGlyphsReq
, xRenderCompositeGlyphs8Req
,
465 xRenderCompositeGlyphs16Req
, xRenderCompositeGlyphs32Req
;
467 #define sz_xRenderCompositeGlyphs8Req 28
468 #define sz_xRenderCompositeGlyphs16Req 28
469 #define sz_xRenderCompositeGlyphs32Req 28
482 } xRenderFillRectanglesReq
;
484 #define sz_xRenderFillRectanglesReq 20
496 } xRenderCreateCursorReq
;
498 #define sz_xRenderCreateCursorReq 16
503 * This can't use an array because 32-bit values may be in bitfields
517 #define sz_xRenderTransform 36
524 xRenderTransform transform
;
525 } xRenderSetPictureTransformReq
;
527 #define sz_xRenderSetPictureTransformReq 44
533 Drawable drawable B32
;
534 } xRenderQueryFiltersReq
;
536 #define sz_xRenderQueryFiltersReq 8
539 BYTE type
; /* X_Reply */
541 CARD16 sequenceNumber B16
;
543 CARD32 numAliases B32
; /* LISTofCARD16 */
544 CARD32 numFilters B32
; /* LISTofSTRING8 */
549 } xRenderQueryFiltersReply
;
551 #define sz_xRenderQueryFiltersReply 32
558 CARD16 nbytes B16
; /* number of bytes in name */
560 } xRenderSetPictureFilterReq
;
562 #define sz_xRenderSetPictureFilterReq 12
571 #define sz_xAnimCursorElt 8
578 } xRenderCreateAnimCursorReq
;
580 #define sz_xRenderCreateAnimCursorReq 8
591 } xRenderAddTrapsReq
;
593 #define sz_xRenderAddTrapsReq 12
595 /* 0.10 and higher */
603 } xRenderCreateSolidFillReq
;
605 #define sz_xRenderCreateSolidFillReq 16
615 } xRenderCreateLinearGradientReq
;
617 #define sz_xRenderCreateLinearGradientReq 28
629 } xRenderCreateRadialGradientReq
;
631 #define sz_xRenderCreateRadialGradientReq 36
639 Fixed angle
; /* in degrees */
641 } xRenderCreateConicalGradientReq
;
643 #define sz_xRenderCreateConicalGradientReq 24
663 #endif /* _XRENDERP_H_ */