annotate semiconginev2/thirdparty/x11/xrender.nim @ 1240:42eeb59f3a43

add: more tests, line and point rendering
author sam <sam@basx.dev>
date Mon, 22 Jul 2024 12:42:35 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 import
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 x, xlib
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 when defined(use_pkg_config) or defined(use_pkg_config_static):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 {.pragma: libxrender, cdecl, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 when defined(use_pkg_config):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 {.passl: gorge("pkg-config xrender --libs").}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 {.passl: gorge("pkg-config xrender --static --libs").}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 when defined(macosx):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 libXrender* = "libXrender.dylib"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 libXrender* = "libXrender.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 {.pragma: libxrender, dynlib: libXrender, cdecl, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 #const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 # libXrender* = "libXrender.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 # Automatically converted by H2Pas 0.99.15 from xrender.h
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 # The following command line parameters were used:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 # -p
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 # -T
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 # -S
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30 # -d
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 # -c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 # xrender.h
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 PGlyph* = ptr Glyph
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 Glyph* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 PGlyphSet* = ptr GlyphSet
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 GlyphSet* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 PPicture* = ptr Picture
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 Picture* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 PPictFormat* = ptr PictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 PictFormat* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 RENDER_NAME* = "RENDER"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 RENDER_MAJOR* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 RENDER_MINOR* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 constX_RenderQueryVersion* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 X_RenderQueryPictFormats* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 X_RenderQueryPictIndexValues* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 X_RenderQueryDithers* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 constX_RenderCreatePicture* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 constX_RenderChangePicture* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 X_RenderSetPictureClipRectangles* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 constX_RenderFreePicture* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 constX_RenderComposite* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61 X_RenderScale* = 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 X_RenderTrapezoids* = 10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 X_RenderTriangles* = 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64 X_RenderTriStrip* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 X_RenderTriFan* = 13
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 X_RenderColorTrapezoids* = 14
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 X_RenderColorTriangles* = 15
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 X_RenderTransform* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 constX_RenderCreateGlyphSet* = 17
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70 constX_RenderReferenceGlyphSet* = 18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 constX_RenderFreeGlyphSet* = 19
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 constX_RenderAddGlyphs* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 constX_RenderAddGlyphsFromPicture* = 21
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 constX_RenderFreeGlyphs* = 22
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 constX_RenderCompositeGlyphs8* = 23
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 constX_RenderCompositeGlyphs16* = 24
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 constX_RenderCompositeGlyphs32* = 25
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 BadPictFormat* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 BadPicture* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 BadPictOp* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 BadGlyphSet* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 BadGlyph* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 RenderNumberErrors* = BadGlyph + 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 PictTypeIndexed* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 PictTypeDirect* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 PictOpClear* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 PictOpSrc* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 PictOpDst* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 PictOpOver* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 PictOpOverReverse* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 PictOpIn* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 PictOpInReverse* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 PictOpOut* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 PictOpOutReverse* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 PictOpAtop* = 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 PictOpAtopReverse* = 10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 PictOpXor* = 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 PictOpAdd* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 PictOpSaturate* = 13
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 PictOpMaximum* = 13
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 PolyEdgeSharp* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 PolyEdgeSmooth* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 PolyModePrecise* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 PolyModeImprecise* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 CPRepeat* = 1 shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 CPAlphaMap* = 1 shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 CPAlphaXOrigin* = 1 shl 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 CPAlphaYOrigin* = 1 shl 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 CPClipXOrigin* = 1 shl 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 CPClipYOrigin* = 1 shl 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 CPClipMask* = 1 shl 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 CPGraphicsExposure* = 1 shl 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 CPSubwindowMode* = 1 shl 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 CPPolyEdge* = 1 shl 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115 CPPolyMode* = 1 shl 10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 CPDither* = 1 shl 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 CPLastBit* = 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 PXRenderDirectFormat* = ptr XRenderDirectFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 XRenderDirectFormat*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 red*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 redMask*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 green*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 greenMask*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 blue*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 blueMask*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 alpha*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 alphaMask*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 PXRenderPictFormat* = ptr XRenderPictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 XRenderPictFormat*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 id*: PictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 thetype*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 depth*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 direct*: XRenderDirectFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 colormap*: Colormap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 PictFormatID* = 1 shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 PictFormatType* = 1 shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 PictFormatDepth* = 1 shl 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 PictFormatRed* = 1 shl 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 PictFormatRedMask* = 1 shl 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 PictFormatGreen* = 1 shl 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 PictFormatGreenMask* = 1 shl 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 PictFormatBlue* = 1 shl 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 PictFormatBlueMask* = 1 shl 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149 PictFormatAlpha* = 1 shl 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 PictFormatAlphaMask* = 1 shl 10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 PictFormatColormap* = 1 shl 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 PXRenderVisual* = ptr XRenderVisual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155 XRenderVisual*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 visual*: PVisual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 format*: PXRenderPictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 PXRenderDepth* = ptr XRenderDepth
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 XRenderDepth*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 depth*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 nvisuals*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 visuals*: PXRenderVisual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165 PXRenderScreen* = ptr XRenderScreen
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 XRenderScreen*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 depths*: PXRenderDepth
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 ndepths*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 fallback*: PXRenderPictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 PXRenderInfo* = ptr XRenderInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 XRenderInfo*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173 format*: PXRenderPictFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 nformat*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 screen*: PXRenderScreen
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 nscreen*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 depth*: PXRenderDepth
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 ndepth*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 visual*: PXRenderVisual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 nvisual*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 PXRenderPictureAttributes* = ptr XRenderPictureAttributes
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183 XRenderPictureAttributes*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 repeat*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 alpha_map*: Picture
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 alpha_x_origin*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 alpha_y_origin*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 clip_x_origin*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 clip_y_origin*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 clip_mask*: Pixmap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 graphics_exposures*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 subwindow_mode*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 poly_edge*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 poly_mode*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 dither*: Atom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 PXGlyphInfo* = ptr XGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 XGlyphInfo*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 width*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 height*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 x*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 y*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 xOff*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 yOff*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 PXRenderColor* = ptr XRenderColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 XRenderColor* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 red*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 green*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 blue*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 alpha*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 proc XRenderQueryExtension*(dpy: PDisplay, event_basep: ptr int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 error_basep: ptr int32): XBool{.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 proc XRenderQueryVersion*(dpy: PDisplay, major_versionp: ptr int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 minor_versionp: ptr int32): Status{.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 proc XRenderQueryFormats*(dpy: PDisplay): Status{.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 proc XRenderFindVisualFormat*(dpy: PDisplay, visual: PVisual): PXRenderPictFormat{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 proc XRenderFindFormat*(dpy: PDisplay, mask: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 `template`: PXRenderPictFormat, count: int32): PXRenderPictFormat{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 proc XRenderCreatePicture*(dpy: PDisplay, drawable: Drawable,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 format: PXRenderPictFormat, valuemask: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 attributes: PXRenderPictureAttributes): Picture{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 proc XRenderChangePicture*(dpy: PDisplay, picture: Picture, valuemask: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 attributes: PXRenderPictureAttributes){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229 proc XRenderFreePicture*(dpy: PDisplay, picture: Picture){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 proc XRenderComposite*(dpy: PDisplay, op: int32, src: Picture, mask: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 dst: Picture, src_x: int32, src_y: int32, mask_x: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232 mask_y: int32, dst_x: int32, dst_y: int32, width: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 height: int32){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 proc XRenderCreateGlyphSet*(dpy: PDisplay, format: PXRenderPictFormat): GlyphSet{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235 libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 proc XRenderReferenceGlyphSet*(dpy: PDisplay, existing: GlyphSet): GlyphSet{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238 proc XRenderFreeGlyphSet*(dpy: PDisplay, glyphset: GlyphSet){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239 proc XRenderAddGlyphs*(dpy: PDisplay, glyphset: GlyphSet, gids: PGlyph,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 glyphs: PXGlyphInfo, nglyphs: int32, images: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241 nbyte_images: int32){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 proc XRenderFreeGlyphs*(dpy: PDisplay, glyphset: GlyphSet, gids: PGlyph,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 nglyphs: int32){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 proc XRenderCompositeString8*(dpy: PDisplay, op: int32, src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 dst: Picture, maskFormat: PXRenderPictFormat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246 glyphset: GlyphSet, xSrc: int32, ySrc: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 xDst: int32, yDst: int32, str: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 nchar: int32){.libxrender.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249 # implementation