annotate semiconginev2/thirdparty/x11/xft.nim @ 1222:3c3d4d7a8ecd compiletime-tests

did: cleanup config file
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:08:15 +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 # Converted from X11/Xft/Xft.h
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,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 xlib,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 xrender,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 xutil
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 xftLib = "libXft.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 # Defined in the FreeType library
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 FT_UInt* = cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 PFT_UInt* = ptr FT_UInt
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 FT_Face* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 PFT_Face* = ptr FT_Face
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 # Defined in the fontconfig library
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 FcEndian* = enum
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 FcEndianBig, FcEndianLittle
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 FcResult* = enum
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 FcResultMatch, FcResultNoMatch, FcResultTypeMismatch,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 FcResultNoId, FcResultOutOfMemory
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 PFcResult* = ptr FcResult
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 FcBool* = cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30 FcCharSet* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 PFcCharSet* = ptr FcCharSet
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 FcPattern* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 PFcPattern* = ptr FcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 FcFontSet* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 nfont*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 sfont*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 fonts*: ptr PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 PFcFontSet* = ptr FcFontSet
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 FcChar8* = cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 PFcChar8* = ptr FcChar8
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 FcChar16* = cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 PFcChar16* = ptr FcChar16
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 FcChar32* = cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 PFcChar32* = ptr FcChar32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 XftFontInfo* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 PXftFontInfo* = ptr XftFontInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 XftFont* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 ascent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 descent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 height*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 max_advance_width*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 charset*: PFcCharSet
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 pattern*: PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61 PXftFont* = ptr XftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 XftDraw* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64 PXftDraw* = ptr XftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 XftColor* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 pixel*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 color*: XRenderColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 PXftColor* = ptr XftColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 XftCharSpec* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 ucs4*: FcChar32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 x*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 y*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 PXftCharSpec* = ptr XftCharSpec
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 XftCharFontSpec* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 font*: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 ucs4*: FcChar32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 x*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 y*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 PXftCharFontSpec* = ptr XftCharFontSpec
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 XftGlyphSpec* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 glyph*: FT_UInt
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 x*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 y*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 PXftGlyphSpec* = ptr XftGlyphSpec
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 XftGlyphFontSpec* = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 font*: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 glyph*: FT_UInt
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 x*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 y*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 PXftGlyphFontSpec = ptr XftGlyphFontSpec
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 # xftcolor.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 proc XftColorAllocName*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 visual: PVisual,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 cmap: Colormap,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 name: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 result: PXftColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 ): XBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 proc XftColorAllocValue*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 visual: PVisual,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 cmap: Colormap,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 color: PXRenderColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 result: PXftColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 ): XBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 proc XftColorFree*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 visual: PVisual,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 cmap: Colormap,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 color: PXftColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 # xftdpy.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 proc XftDefaultHasRender*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 display: PDisplay
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 ): XBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 proc XftDefaultSet*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 defaults: PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 ): XBool {.cdecl, dynlib: xftLib, importc.}
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 proc XftDefaultSubstitute*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 pattern: PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 # xftdraw.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 proc XftDrawCreate*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 drawable: Drawable,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 visual: PVisual,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 colormap: Colormap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 ): PXftDraw {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 proc XftDrawCreateBitmap*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 bitmap: Pixmap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 ): PXftDraw {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 proc XftDrawCreateAlpha*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152 pixmap: Pixmap,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 depth: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 ): PXftDraw {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 proc XftDrawChange*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 drawable: Drawable
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 proc XftDrawDisplay*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 ): PDisplay {.cdecl, dynlib: xftLib, importc.}
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 proc XftDrawDrawable*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 ): Drawable {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 proc XftDrawColormap*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 ): Colormap {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173 proc XftDrawVisual*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 ): PVisual {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 proc XftDrawDestroy*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 proc XftDrawPicture*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 draw: PXftDraw
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183 ): Picture {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 proc XftDrawSrcPicture*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 color: PXftColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 ): Picture {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 proc XftDrawGlyphs*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 glyphs: PFt_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 nglyphs: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 proc XftDrawString8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 proc XftDrawString16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 str: PFcChar16,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 proc XftDrawString32*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 str: PFcChar32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 proc XftDrawStringUtf8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 proc XftDrawStringUtf16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
250 proc XftDrawCharSpec*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
251 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
252 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
253 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
254 chars: PXftCharSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
255 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
256 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
257
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
258 proc XftDrawCharFontSpec*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
259 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
260 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
261 chars: PXftCharFontSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
262 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
263 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
264
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
265 proc XftDrawGlyphSpec*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
266 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
267 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
268 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
269 glyphs: PXftGlyphSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
270 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
271 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
272
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
273 proc XftDrawGlyphFontSpec*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
274 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
275 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
276 glyphs: PXftGlyphFontSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
277 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
278 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
279
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
280 proc XftDrawRect*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
281 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
282 color: PXftColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
283 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
284 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
285 width: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
286 height: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
287 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
288
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
289 proc XftDrawSetClip*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
290 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
291 r: Region
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
292 ): XBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
293
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
294 proc XftDrawSetClipRectangles*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
295 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
296 xOrigin: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
297 yOrigin: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
298 rects: PXRectangle,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
299 n: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
300 ): XBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
301
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
302 proc XftDrawSetSubwindowMode*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
303 draw: PXftDraw,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
304 mode: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
305 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
306
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
307 # xftextent.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
308 proc XftGlyphExtents*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
309 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
310 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
311 glyphs: PFT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
312 nglyphs: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
313 extends: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
314 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
315
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
316 proc XftTextExtents8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
317 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
318 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
319 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
320 len: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
321 extents: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
322 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
323
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
324 proc XftTextExtents16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
325 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
326 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
327 str: PFcChar16,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
328 len: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
329 extents: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
330 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
331
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
332 proc XftTextExtents32*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
333 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
334 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
335 str: PFcChar32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
336 len: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
337 extents: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
338 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
339
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
340 proc XftTextExtentsUtf8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
341 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
342 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
343 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
344 len: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
345 extents: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
346 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
347
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
348 proc XftTextExtentsUtf16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
349 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
350 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
351 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
352 endian: FcEndian,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
353 len: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
354 extents: PXGlyphInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
355 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
356
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
357 # xftfont.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
358 proc XftFontMatch*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
359 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
360 screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
361 pattern: PFcPattern,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
362 result: PFcResult
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
363 ): PFcPattern {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
364
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
365 # Expects display to be nil as an argument
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
366 proc XftFontOpen*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
367 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
368 screen: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
369 ): PXftFont {.cdecl, dynlib: xftLib, importc, varargs.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
370
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
371 proc XftFontOpenName*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
372 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
373 screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
374 name: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
375 ): PXftFont {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
376
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
377 proc XftFontOpenXlfd*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
378 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
379 screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
380 xlfd: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
381 ): PXftFont {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
382
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
383 # xftfreetype.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
384 proc XftLockFace*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
385 pub: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
386 ): FT_Face {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
387
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
388 proc XftUnlockFace*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
389 pub: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
390 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
391
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
392 proc XftFontInfoCreate*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
393 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
394 pattern: PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
395 ): PXftFontInfo {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
396
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
397 proc XftFontInfoDestroy*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
398 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
399 fi: PXftFontInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
400 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
401
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
402 proc XftFontInfoHash*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
403 fi: PXftFontInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
404 ): PFcChar32 {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
405
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
406 proc XftFontInfoEqual*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
407 a: PXftFontInfo,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
408 b: PXftFontInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
409 ): FcBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
410
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
411 proc XftFontOpenInfo*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
412 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
413 pattern: PFcPattern,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
414 fi: PXftFontInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
415 ): PXftFont {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
416
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
417 proc XftFontOpenPattern*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
418 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
419 pattern: PFcPattern
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
420 ): PXftFont {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
421
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
422 proc XftFontCopy*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
423 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
424 pub: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
425 ): PXftFont {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
426
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
427 proc XftFontClose*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
428 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
429 pub: PXftFont
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
430 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
431
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
432 proc XftInitFtLibrary*(): FcBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
433
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
434 # xftglyphs.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
435 proc XftFontLoadGlyphs*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
436 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
437 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
438 need_bitmaps: FcBool,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
439 glyphs: PFT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
440 nglyph: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
441 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
442
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
443 proc XftFontUnloadGlyphs*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
444 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
445 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
446 glyphs: PFT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
447 nglyph: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
448 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
449
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
450 const XFT_NMISSING* = 256
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
451
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
452 proc XftFontCheckGlyph*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
453 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
454 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
455 need_bitmaps: FcBool,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
456 glyph: FT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
457 missing: PFT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
458 nmissing: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
459 ): FcBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
460
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
461 proc XftCharExists*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
462 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
463 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
464 ucs4: FcChar32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
465 ): FcBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
466
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
467 proc XftCharIndex*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
468 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
469 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
470 ucs4: FcChar32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
471 ): FT_UInt {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
472
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
473 # xftinit.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
474 proc XftInit*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
475 config: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
476 ): FcBool {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
477
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
478 proc XftGetVersion*(): cint {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
479
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
480 # xftlist.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
481 # Expects display to be nil as an argument
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
482 proc XftListFonts*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
483 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
484 screen: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
485 ): PFcFontSet {.cdecl, dynlib: xftLib, importc, varargs.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
486
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
487 # xftname.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
488 proc XftNameParse*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
489 name: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
490 ): PFcPattern {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
491
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
492 # xftrender.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
493 proc XftGlyphRender*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
494 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
495 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
496 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
497 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
498 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
499 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
500 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
501 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
502 glyphs: PFT_UInt,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
503 nglyphs: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
504 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
505
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
506 proc XftGlyphSpecRender*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
507 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
508 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
509 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
510 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
511 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
512 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
513 glyphs: PXftGlyphSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
514 nglyphs: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
515 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
516
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
517 proc XftCharSpecRender*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
518 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
519 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
520 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
521 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
522 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
523 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
524 chars: PXftCharSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
525 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
526 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
527
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
528 proc XftGlyphFontSpecRender*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
529 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
530 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
531 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
532 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
533 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
534 glyphs: PXftGlyphFontSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
535 nglyphs: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
536 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
537
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
538 proc XftCharFontSpecRender*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
539 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
540 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
541 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
542 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
543 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
544 chars: PXftCharFontSpec,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
545 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
546 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
547
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
548 proc XftTextRender8*(display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
549 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
550 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
551 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
552 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
553 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
554 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
555 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
556 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
557 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
558 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
559 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
560
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
561 proc XftTextRender16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
562 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
563 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
564 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
565 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
566 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
567 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
568 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
569 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
570 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
571 str: PFcChar16,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
572 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
573 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
574
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
575 proc XftTextRender16BE*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
576 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
577 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
578 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
579 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
580 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
581 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
582 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
583 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
584 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
585 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
586 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
587 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
588
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
589 proc XftTextRender16LE*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
590 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
591 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
592 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
593 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
594 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
595 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
596 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
597 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
598 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
599 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
600 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
601 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
602
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
603 proc XftTextRender32*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
604 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
605 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
606 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
607 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
608 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
609 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
610 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
611 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
612 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
613 str: PFcChar32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
614 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
615 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
616
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
617 proc XftTextRender32BE*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
618 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
619 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
620 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
621 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
622 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
623 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
624 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
625 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
626 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
627 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
628 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
629 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
630
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
631 proc XftTextRender32LE*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
632 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
633 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
634 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
635 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
636 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
637 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
638 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
639 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
640 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
641 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
642 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
643 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
644
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
645 proc XftTextRenderUtf8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
646 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
647 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
648 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
649 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
650 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
651 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
652 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
653 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
654 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
655 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
656 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
657 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
658
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
659 proc XftTextRenderUtf16*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
660 display: PDisplay,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
661 op: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
662 src: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
663 pub: PXftFont,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
664 dst: Picture,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
665 srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
666 srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
667 x: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
668 y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
669 str: PFcChar8,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
670 endian: FcEndian,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
671 len: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
672 ) {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
673
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
674 # xftxlfd.c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
675 proc XftXlfdParse8*(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
676 xlfd_orig: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
677 ignore_scalable: XBool,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
678 complete: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
679 ): PFcPattern {.cdecl, dynlib: xftLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
680