1 | /* $Xorg: XKBgeom.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */
|
---|
2 | /************************************************************
|
---|
3 | Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
|
---|
4 |
|
---|
5 | Permission to use, copy, modify, and distribute this
|
---|
6 | software and its documentation for any purpose and without
|
---|
7 | fee is hereby granted, provided that the above copyright
|
---|
8 | notice appear in all copies and that both that copyright
|
---|
9 | notice and this permission notice appear in supporting
|
---|
10 | documentation, and that the name of Silicon Graphics not be
|
---|
11 | used in advertising or publicity pertaining to distribution
|
---|
12 | of the software without specific prior written permission.
|
---|
13 | Silicon Graphics makes no representation about the suitability
|
---|
14 | of this software for any purpose. It is provided "as is"
|
---|
15 | without any express or implied warranty.
|
---|
16 |
|
---|
17 | SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
---|
18 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
---|
19 | AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
|
---|
20 | GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
|
---|
21 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
22 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
---|
23 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
|
---|
24 | THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
25 |
|
---|
26 | ********************************************************/
|
---|
27 | /* $XFree86: xc/include/extensions/XKBgeom.h,v 3.8 2001/08/01 00:44:35 tsi Exp $ */
|
---|
28 |
|
---|
29 | #ifndef _XKBGEOM_H_
|
---|
30 | #define _XKBGEOM_H_
|
---|
31 |
|
---|
32 | #include <X11/extensions/XKBstr.h>
|
---|
33 |
|
---|
34 | #ifdef XKB_IN_SERVER
|
---|
35 | #define XkbAddGeomKeyAlias SrvXkbAddGeomKeyAlias
|
---|
36 | #define XkbAddGeomColor SrvXkbAddGeomColor
|
---|
37 | #define XkbAddGeomDoodad SrvXkbAddGeomDoodad
|
---|
38 | #define XkbAddGeomKey SrvXkbAddGeomKey
|
---|
39 | #define XkbAddGeomOutline SrvXkbAddGeomOutline
|
---|
40 | #define XkbAddGeomOverlay SrvXkbAddGeomOverlay
|
---|
41 | #define XkbAddGeomOverlayRow SrvXkbAddGeomOverlayRow
|
---|
42 | #define XkbAddGeomOverlayKey SrvXkbAddGeomOverlayKey
|
---|
43 | #define XkbAddGeomProperty SrvXkbAddGeomProperty
|
---|
44 | #define XkbAddGeomRow SrvXkbAddGeomRow
|
---|
45 | #define XkbAddGeomSection SrvXkbAddGeomSection
|
---|
46 | #define XkbAddGeomShape SrvXkbAddGeomShape
|
---|
47 | #define XkbAllocGeomKeyAliases SrvXkbAllocGeomKeyAliases
|
---|
48 | #define XkbAllocGeomColors SrvXkbAllocGeomColors
|
---|
49 | #define XkbAllocGeomDoodads SrvXkbAllocGeomDoodads
|
---|
50 | #define XkbAllocGeomKeys SrvXkbAllocGeomKeys
|
---|
51 | #define XkbAllocGeomOutlines SrvXkbAllocGeomOutlines
|
---|
52 | #define XkbAllocGeomPoints SrvXkbAllocGeomPoints
|
---|
53 | #define XkbAllocGeomProps SrvXkbAllocGeomProps
|
---|
54 | #define XkbAllocGeomRows SrvXkbAllocGeomRows
|
---|
55 | #define XkbAllocGeomSectionDoodads SrvXkbAllocGeomSectionDoodads
|
---|
56 | #define XkbAllocGeomSections SrvXkbAllocGeomSections
|
---|
57 | #define XkbAllocGeomOverlays SrvXkbAllocGeomOverlays
|
---|
58 | #define XkbAllocGeomOverlayRows SrvXkbAllocGeomOverlayRows
|
---|
59 | #define XkbAllocGeomOverlayKeys SrvXkbAllocGeomOverlayKeys
|
---|
60 | #define XkbAllocGeomShapes SrvXkbAllocGeomShapes
|
---|
61 | #define XkbAllocGeometry SrvXkbAllocGeometry
|
---|
62 | #define XkbFreeGeomKeyAliases SrvXkbFreeGeomKeyAliases
|
---|
63 | #define XkbFreeGeomColors SrvXkbFreeGeomColors
|
---|
64 | #define XkbFreeGeomDoodads SrvXkbFreeGeomDoodads
|
---|
65 | #define XkbFreeGeomProperties SrvXkbFreeGeomProperties
|
---|
66 | #define XkbFreeGeomOverlayKeys SrvXkbFreeGeomOverlayKeys
|
---|
67 | #define XkbFreeGeomOverlayRows SrvXkbFreeGeomOverlayRows
|
---|
68 | #define XkbFreeGeomOverlays SrvXkbFreeGeomOverlays
|
---|
69 | #define XkbFreeGeomKeys SrvXkbFreeGeomKeys
|
---|
70 | #define XkbFreeGeomRows SrvXkbFreeGeomRows
|
---|
71 | #define XkbFreeGeomSections SrvXkbFreeGeomSections
|
---|
72 | #define XkbFreeGeomPoints SrvXkbFreeGeomPoints
|
---|
73 | #define XkbFreeGeomOutlines SrvXkbFreeGeomOutlines
|
---|
74 | #define XkbFreeGeomShapes SrvXkbFreeGeomShapes
|
---|
75 | #define XkbFreeGeometry SrvXkbFreeGeometry
|
---|
76 | #endif
|
---|
77 |
|
---|
78 | typedef struct _XkbProperty {
|
---|
79 | char *name;
|
---|
80 | char *value;
|
---|
81 | } XkbPropertyRec,*XkbPropertyPtr;
|
---|
82 |
|
---|
83 | typedef struct _XkbColor {
|
---|
84 | unsigned int pixel;
|
---|
85 | char * spec;
|
---|
86 | } XkbColorRec,*XkbColorPtr;
|
---|
87 |
|
---|
88 | typedef struct _XkbPoint {
|
---|
89 | short x;
|
---|
90 | short y;
|
---|
91 | } XkbPointRec, *XkbPointPtr;
|
---|
92 |
|
---|
93 | typedef struct _XkbBounds {
|
---|
94 | short x1,y1;
|
---|
95 | short x2,y2;
|
---|
96 | } XkbBoundsRec, *XkbBoundsPtr;
|
---|
97 | #define XkbBoundsWidth(b) (((b)->x2)-((b)->x1))
|
---|
98 | #define XkbBoundsHeight(b) (((b)->y2)-((b)->y1))
|
---|
99 |
|
---|
100 | typedef struct _XkbOutline {
|
---|
101 | unsigned short num_points;
|
---|
102 | unsigned short sz_points;
|
---|
103 | unsigned short corner_radius;
|
---|
104 | XkbPointPtr points;
|
---|
105 | } XkbOutlineRec, *XkbOutlinePtr;
|
---|
106 |
|
---|
107 | typedef struct _XkbShape {
|
---|
108 | Atom name;
|
---|
109 | unsigned short num_outlines;
|
---|
110 | unsigned short sz_outlines;
|
---|
111 | XkbOutlinePtr outlines;
|
---|
112 | XkbOutlinePtr approx;
|
---|
113 | XkbOutlinePtr primary;
|
---|
114 | XkbBoundsRec bounds;
|
---|
115 | } XkbShapeRec, *XkbShapePtr;
|
---|
116 | #define XkbOutlineIndex(s,o) ((o)-&(s)->outlines[0])
|
---|
117 |
|
---|
118 | typedef struct _XkbShapeDoodad {
|
---|
119 | Atom name;
|
---|
120 | unsigned char type;
|
---|
121 | unsigned char priority;
|
---|
122 | short top;
|
---|
123 | short left;
|
---|
124 | short angle;
|
---|
125 | unsigned short color_ndx;
|
---|
126 | unsigned short shape_ndx;
|
---|
127 | } XkbShapeDoodadRec, *XkbShapeDoodadPtr;
|
---|
128 | #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
---|
129 | #define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
---|
130 | #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
---|
131 | #define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
|
---|
132 |
|
---|
133 | typedef struct _XkbTextDoodad {
|
---|
134 | Atom name;
|
---|
135 | unsigned char type;
|
---|
136 | unsigned char priority;
|
---|
137 | short top;
|
---|
138 | short left;
|
---|
139 | short angle;
|
---|
140 | short width;
|
---|
141 | short height;
|
---|
142 | unsigned short color_ndx;
|
---|
143 | char * text;
|
---|
144 | char * font;
|
---|
145 | } XkbTextDoodadRec, *XkbTextDoodadPtr;
|
---|
146 | #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
---|
147 | #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
---|
148 |
|
---|
149 | typedef struct _XkbIndicatorDoodad {
|
---|
150 | Atom name;
|
---|
151 | unsigned char type;
|
---|
152 | unsigned char priority;
|
---|
153 | short top;
|
---|
154 | short left;
|
---|
155 | short angle;
|
---|
156 | unsigned short shape_ndx;
|
---|
157 | unsigned short on_color_ndx;
|
---|
158 | unsigned short off_color_ndx;
|
---|
159 | } XkbIndicatorDoodadRec, *XkbIndicatorDoodadPtr;
|
---|
160 | #define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
---|
161 | #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx])
|
---|
162 | #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx])
|
---|
163 | #define XkbSetIndicatorDoodadOnColor(g,d,c) \
|
---|
164 | ((d)->on_color_ndx= (c)-&(g)->colors[0])
|
---|
165 | #define XkbSetIndicatorDoodadOffColor(g,d,c) \
|
---|
166 | ((d)->off_color_ndx= (c)-&(g)->colors[0])
|
---|
167 | #define XkbSetIndicatorDoodadShape(g,d,s) \
|
---|
168 | ((d)->shape_ndx= (s)-&(g)->shapes[0])
|
---|
169 |
|
---|
170 | typedef struct _XkbLogoDoodad {
|
---|
171 | Atom name;
|
---|
172 | unsigned char type;
|
---|
173 | unsigned char priority;
|
---|
174 | short top;
|
---|
175 | short left;
|
---|
176 | short angle;
|
---|
177 | unsigned short color_ndx;
|
---|
178 | unsigned short shape_ndx;
|
---|
179 | char * logo_name;
|
---|
180 | } XkbLogoDoodadRec, *XkbLogoDoodadPtr;
|
---|
181 | #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
---|
182 | #define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
---|
183 | #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
---|
184 | #define XkbSetLogoDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
|
---|
185 |
|
---|
186 | typedef struct _XkbAnyDoodad {
|
---|
187 | Atom name;
|
---|
188 | unsigned char type;
|
---|
189 | unsigned char priority;
|
---|
190 | short top;
|
---|
191 | short left;
|
---|
192 | short angle;
|
---|
193 | } XkbAnyDoodadRec, *XkbAnyDoodadPtr;
|
---|
194 |
|
---|
195 | typedef union _XkbDoodad {
|
---|
196 | XkbAnyDoodadRec any;
|
---|
197 | XkbShapeDoodadRec shape;
|
---|
198 | XkbTextDoodadRec text;
|
---|
199 | XkbIndicatorDoodadRec indicator;
|
---|
200 | XkbLogoDoodadRec logo;
|
---|
201 | } XkbDoodadRec, *XkbDoodadPtr;
|
---|
202 |
|
---|
203 | #define XkbUnknownDoodad 0
|
---|
204 | #define XkbOutlineDoodad 1
|
---|
205 | #define XkbSolidDoodad 2
|
---|
206 | #define XkbTextDoodad 3
|
---|
207 | #define XkbIndicatorDoodad 4
|
---|
208 | #define XkbLogoDoodad 5
|
---|
209 |
|
---|
210 | typedef struct _XkbKey {
|
---|
211 | XkbKeyNameRec name;
|
---|
212 | short gap;
|
---|
213 | unsigned char shape_ndx;
|
---|
214 | unsigned char color_ndx;
|
---|
215 | } XkbKeyRec, *XkbKeyPtr;
|
---|
216 | #define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx])
|
---|
217 | #define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx])
|
---|
218 | #define XkbSetKeyShape(g,k,s) ((k)->shape_ndx= (s)-&(g)->shapes[0])
|
---|
219 | #define XkbSetKeyColor(g,k,c) ((k)->color_ndx= (c)-&(g)->colors[0])
|
---|
220 |
|
---|
221 | typedef struct _XkbRow {
|
---|
222 | short top;
|
---|
223 | short left;
|
---|
224 | unsigned short num_keys;
|
---|
225 | unsigned short sz_keys;
|
---|
226 | int vertical;
|
---|
227 | XkbKeyPtr keys;
|
---|
228 | XkbBoundsRec bounds;
|
---|
229 | } XkbRowRec, *XkbRowPtr;
|
---|
230 |
|
---|
231 | typedef struct _XkbSection {
|
---|
232 | Atom name;
|
---|
233 | unsigned char priority;
|
---|
234 | short top;
|
---|
235 | short left;
|
---|
236 | unsigned short width;
|
---|
237 | unsigned short height;
|
---|
238 | short angle;
|
---|
239 | unsigned short num_rows;
|
---|
240 | unsigned short num_doodads;
|
---|
241 | unsigned short num_overlays;
|
---|
242 | unsigned short sz_rows;
|
---|
243 | unsigned short sz_doodads;
|
---|
244 | unsigned short sz_overlays;
|
---|
245 | XkbRowPtr rows;
|
---|
246 | XkbDoodadPtr doodads;
|
---|
247 | XkbBoundsRec bounds;
|
---|
248 | struct _XkbOverlay *overlays;
|
---|
249 | } XkbSectionRec, *XkbSectionPtr;
|
---|
250 |
|
---|
251 | typedef struct _XkbOverlayKey {
|
---|
252 | XkbKeyNameRec over;
|
---|
253 | XkbKeyNameRec under;
|
---|
254 | } XkbOverlayKeyRec,*XkbOverlayKeyPtr;
|
---|
255 |
|
---|
256 | typedef struct _XkbOverlayRow {
|
---|
257 | unsigned short row_under;
|
---|
258 | unsigned short num_keys;
|
---|
259 | unsigned short sz_keys;
|
---|
260 | XkbOverlayKeyPtr keys;
|
---|
261 | } XkbOverlayRowRec,*XkbOverlayRowPtr;
|
---|
262 |
|
---|
263 | typedef struct _XkbOverlay {
|
---|
264 | Atom name;
|
---|
265 | XkbSectionPtr section_under;
|
---|
266 | unsigned short num_rows;
|
---|
267 | unsigned short sz_rows;
|
---|
268 | XkbOverlayRowPtr rows;
|
---|
269 | XkbBoundsPtr bounds;
|
---|
270 | } XkbOverlayRec,*XkbOverlayPtr;
|
---|
271 |
|
---|
272 | typedef struct _XkbGeometry {
|
---|
273 | Atom name;
|
---|
274 | unsigned short width_mm;
|
---|
275 | unsigned short height_mm;
|
---|
276 | char * label_font;
|
---|
277 | XkbColorPtr label_color;
|
---|
278 | XkbColorPtr base_color;
|
---|
279 | unsigned short sz_properties;
|
---|
280 | unsigned short sz_colors;
|
---|
281 | unsigned short sz_shapes;
|
---|
282 | unsigned short sz_sections;
|
---|
283 | unsigned short sz_doodads;
|
---|
284 | unsigned short sz_key_aliases;
|
---|
285 | unsigned short num_properties;
|
---|
286 | unsigned short num_colors;
|
---|
287 | unsigned short num_shapes;
|
---|
288 | unsigned short num_sections;
|
---|
289 | unsigned short num_doodads;
|
---|
290 | unsigned short num_key_aliases;
|
---|
291 | XkbPropertyPtr properties;
|
---|
292 | XkbColorPtr colors;
|
---|
293 | XkbShapePtr shapes;
|
---|
294 | XkbSectionPtr sections;
|
---|
295 | XkbDoodadPtr doodads;
|
---|
296 | XkbKeyAliasPtr key_aliases;
|
---|
297 | } XkbGeometryRec;
|
---|
298 | #define XkbGeomColorIndex(g,c) ((c)-&(g)->colors[0])
|
---|
299 |
|
---|
300 | #define XkbGeomPropertiesMask (1<<0)
|
---|
301 | #define XkbGeomColorsMask (1<<1)
|
---|
302 | #define XkbGeomShapesMask (1<<2)
|
---|
303 | #define XkbGeomSectionsMask (1<<3)
|
---|
304 | #define XkbGeomDoodadsMask (1<<4)
|
---|
305 | #define XkbGeomKeyAliasesMask (1<<5)
|
---|
306 | #define XkbGeomAllMask (0x3f)
|
---|
307 |
|
---|
308 | typedef struct _XkbGeometrySizes {
|
---|
309 | unsigned int which;
|
---|
310 | unsigned short num_properties;
|
---|
311 | unsigned short num_colors;
|
---|
312 | unsigned short num_shapes;
|
---|
313 | unsigned short num_sections;
|
---|
314 | unsigned short num_doodads;
|
---|
315 | unsigned short num_key_aliases;
|
---|
316 | } XkbGeometrySizesRec,*XkbGeometrySizesPtr;
|
---|
317 |
|
---|
318 | _XFUNCPROTOBEGIN
|
---|
319 |
|
---|
320 | extern XkbPropertyPtr
|
---|
321 | XkbAddGeomProperty(
|
---|
322 | #if NeedFunctionPrototypes
|
---|
323 | XkbGeometryPtr /* geom */,
|
---|
324 | char * /* name */,
|
---|
325 | char * /* value */
|
---|
326 | #endif
|
---|
327 | );
|
---|
328 |
|
---|
329 | extern XkbKeyAliasPtr
|
---|
330 | XkbAddGeomKeyAlias(
|
---|
331 | #if NeedFunctionPrototypes
|
---|
332 | XkbGeometryPtr /* geom */,
|
---|
333 | char * /* alias */,
|
---|
334 | char * /* real */
|
---|
335 | #endif
|
---|
336 | );
|
---|
337 |
|
---|
338 | extern XkbColorPtr
|
---|
339 | XkbAddGeomColor(
|
---|
340 | #if NeedFunctionPrototypes
|
---|
341 | XkbGeometryPtr /* geom */,
|
---|
342 | char * /* spec */,
|
---|
343 | unsigned int /* pixel */
|
---|
344 | #endif
|
---|
345 | );
|
---|
346 |
|
---|
347 | extern XkbOutlinePtr
|
---|
348 | XkbAddGeomOutline(
|
---|
349 | #if NeedFunctionPrototypes
|
---|
350 | XkbShapePtr /* shape */,
|
---|
351 | int /* sz_points */
|
---|
352 | #endif
|
---|
353 | );
|
---|
354 |
|
---|
355 | extern XkbShapePtr
|
---|
356 | XkbAddGeomShape(
|
---|
357 | #if NeedFunctionPrototypes
|
---|
358 | XkbGeometryPtr /* geom */,
|
---|
359 | Atom /* name */,
|
---|
360 | int /* sz_outlines */
|
---|
361 | #endif
|
---|
362 | );
|
---|
363 |
|
---|
364 | extern XkbKeyPtr
|
---|
365 | XkbAddGeomKey(
|
---|
366 | #if NeedFunctionPrototypes
|
---|
367 | XkbRowPtr /* row */
|
---|
368 | #endif
|
---|
369 | );
|
---|
370 |
|
---|
371 | extern XkbRowPtr
|
---|
372 | XkbAddGeomRow(
|
---|
373 | #if NeedFunctionPrototypes
|
---|
374 | XkbSectionPtr /* section */,
|
---|
375 | int /* sz_keys */
|
---|
376 | #endif
|
---|
377 | );
|
---|
378 |
|
---|
379 | extern XkbSectionPtr
|
---|
380 | XkbAddGeomSection(
|
---|
381 | #if NeedFunctionPrototypes
|
---|
382 | XkbGeometryPtr /* geom */,
|
---|
383 | Atom /* name */,
|
---|
384 | int /* sz_rows */,
|
---|
385 | int /* sz_doodads */,
|
---|
386 | int /* sz_overlays */
|
---|
387 | #endif
|
---|
388 | );
|
---|
389 |
|
---|
390 | extern XkbOverlayPtr
|
---|
391 | XkbAddGeomOverlay(
|
---|
392 | #if NeedFunctionPrototypes
|
---|
393 | XkbSectionPtr /* section */,
|
---|
394 | Atom /* name */,
|
---|
395 | int /* sz_rows */
|
---|
396 | #endif
|
---|
397 | );
|
---|
398 |
|
---|
399 | extern XkbOverlayRowPtr
|
---|
400 | XkbAddGeomOverlayRow(
|
---|
401 | #if NeedFunctionPrototypes
|
---|
402 | XkbOverlayPtr /* overlay */,
|
---|
403 | int /* row_under */,
|
---|
404 | int /* sz_keys */
|
---|
405 | #endif
|
---|
406 | );
|
---|
407 |
|
---|
408 | extern XkbOverlayKeyPtr
|
---|
409 | XkbAddGeomOverlayKey(
|
---|
410 | #if NeedFunctionPrototypes
|
---|
411 | XkbOverlayPtr /* overlay */,
|
---|
412 | XkbOverlayRowPtr /* row */,
|
---|
413 | char * /* over */,
|
---|
414 | char * /* under */
|
---|
415 | #endif
|
---|
416 | );
|
---|
417 |
|
---|
418 | extern XkbDoodadPtr
|
---|
419 | XkbAddGeomDoodad(
|
---|
420 | #if NeedFunctionPrototypes
|
---|
421 | XkbGeometryPtr /* geom */,
|
---|
422 | XkbSectionPtr /* section */,
|
---|
423 | Atom /* name */
|
---|
424 | #endif
|
---|
425 | );
|
---|
426 |
|
---|
427 |
|
---|
428 | extern void
|
---|
429 | XkbFreeGeomKeyAliases(
|
---|
430 | #if NeedFunctionPrototypes
|
---|
431 | XkbGeometryPtr /* geom */,
|
---|
432 | int /* first */,
|
---|
433 | int /* count */,
|
---|
434 | Bool /* freeAll */
|
---|
435 | #endif
|
---|
436 | );
|
---|
437 |
|
---|
438 | extern void
|
---|
439 | XkbFreeGeomColors(
|
---|
440 | #if NeedFunctionPrototypes
|
---|
441 | XkbGeometryPtr /* geom */,
|
---|
442 | int /* first */,
|
---|
443 | int /* count */,
|
---|
444 | Bool /* freeAll */
|
---|
445 | #endif
|
---|
446 | );
|
---|
447 |
|
---|
448 | extern void
|
---|
449 | XkbFreeGeomDoodads(
|
---|
450 | #if NeedFunctionPrototypes
|
---|
451 | XkbDoodadPtr /* doodads */,
|
---|
452 | int /* nDoodads */,
|
---|
453 | Bool /* freeAll */
|
---|
454 | #endif
|
---|
455 | );
|
---|
456 |
|
---|
457 |
|
---|
458 | extern void
|
---|
459 | XkbFreeGeomProperties(
|
---|
460 | #if NeedFunctionPrototypes
|
---|
461 | XkbGeometryPtr /* geom */,
|
---|
462 | int /* first */,
|
---|
463 | int /* count */,
|
---|
464 | Bool /* freeAll */
|
---|
465 | #endif
|
---|
466 | );
|
---|
467 |
|
---|
468 | extern void
|
---|
469 | XkbFreeGeomOverlayKeys(
|
---|
470 | #if NeedFunctionPrototypes
|
---|
471 | XkbOverlayRowPtr /* row */,
|
---|
472 | int /* first */,
|
---|
473 | int /* count */,
|
---|
474 | Bool /* freeAll */
|
---|
475 | #endif
|
---|
476 | );
|
---|
477 |
|
---|
478 | extern void
|
---|
479 | XkbFreeGeomOverlayRows(
|
---|
480 | #if NeedFunctionPrototypes
|
---|
481 | XkbOverlayPtr /* overlay */,
|
---|
482 | int /* first */,
|
---|
483 | int /* count */,
|
---|
484 | Bool /* freeAll */
|
---|
485 | #endif
|
---|
486 | );
|
---|
487 |
|
---|
488 | extern void
|
---|
489 | XkbFreeGeomOverlays(
|
---|
490 | #if NeedFunctionPrototypes
|
---|
491 | XkbSectionPtr /* section */,
|
---|
492 | int /* first */,
|
---|
493 | int /* count */,
|
---|
494 | Bool /* freeAll */
|
---|
495 | #endif
|
---|
496 | );
|
---|
497 |
|
---|
498 | extern void
|
---|
499 | XkbFreeGeomKeys(
|
---|
500 | #if NeedFunctionPrototypes
|
---|
501 | XkbRowPtr /* row */,
|
---|
502 | int /* first */,
|
---|
503 | int /* count */,
|
---|
504 | Bool /* freeAll */
|
---|
505 | #endif
|
---|
506 | );
|
---|
507 |
|
---|
508 | extern void
|
---|
509 | XkbFreeGeomRows(
|
---|
510 | #if NeedFunctionPrototypes
|
---|
511 | XkbSectionPtr /* section */,
|
---|
512 | int /* first */,
|
---|
513 | int /* count */,
|
---|
514 | Bool /* freeAll */
|
---|
515 | #endif
|
---|
516 | );
|
---|
517 |
|
---|
518 | extern void
|
---|
519 | XkbFreeGeomSections(
|
---|
520 | #if NeedFunctionPrototypes
|
---|
521 | XkbGeometryPtr /* geom */,
|
---|
522 | int /* first */,
|
---|
523 | int /* count */,
|
---|
524 | Bool /* freeAll */
|
---|
525 | #endif
|
---|
526 | );
|
---|
527 |
|
---|
528 |
|
---|
529 | extern void
|
---|
530 | XkbFreeGeomPoints(
|
---|
531 | #if NeedFunctionPrototypes
|
---|
532 | XkbOutlinePtr /* outline */,
|
---|
533 | int /* first */,
|
---|
534 | int /* count */,
|
---|
535 | Bool /* freeAll */
|
---|
536 | #endif
|
---|
537 | );
|
---|
538 |
|
---|
539 | extern void
|
---|
540 | XkbFreeGeomOutlines(
|
---|
541 | #if NeedFunctionPrototypes
|
---|
542 | XkbShapePtr /* shape */,
|
---|
543 | int /* first */,
|
---|
544 | int /* count */,
|
---|
545 | Bool /* freeAll */
|
---|
546 | #endif
|
---|
547 | );
|
---|
548 |
|
---|
549 | extern void
|
---|
550 | XkbFreeGeomShapes(
|
---|
551 | #if NeedFunctionPrototypes
|
---|
552 | XkbGeometryPtr /* geom */,
|
---|
553 | int /* first */,
|
---|
554 | int /* count */,
|
---|
555 | Bool /* freeAll */
|
---|
556 | #endif
|
---|
557 | );
|
---|
558 |
|
---|
559 | extern void
|
---|
560 | XkbFreeGeometry(
|
---|
561 | #if NeedFunctionPrototypes
|
---|
562 | XkbGeometryPtr /* geom */,
|
---|
563 | unsigned int /* which */,
|
---|
564 | Bool /* freeMap */
|
---|
565 | #endif
|
---|
566 | );
|
---|
567 |
|
---|
568 | extern Status
|
---|
569 | XkbAllocGeomProps(
|
---|
570 | #if NeedFunctionPrototypes
|
---|
571 | XkbGeometryPtr /* geom */,
|
---|
572 | int /* nProps */
|
---|
573 | #endif
|
---|
574 | );
|
---|
575 |
|
---|
576 | extern Status
|
---|
577 | XkbAllocGeomKeyAliases(
|
---|
578 | #if NeedFunctionPrototypes
|
---|
579 | XkbGeometryPtr /* geom */,
|
---|
580 | int /* nAliases */
|
---|
581 | #endif
|
---|
582 | );
|
---|
583 |
|
---|
584 | extern Status
|
---|
585 | XkbAllocGeomColors(
|
---|
586 | #if NeedFunctionPrototypes
|
---|
587 | XkbGeometryPtr /* geom */,
|
---|
588 | int /* nColors */
|
---|
589 | #endif
|
---|
590 | );
|
---|
591 |
|
---|
592 | extern Status
|
---|
593 | XkbAllocGeomShapes(
|
---|
594 | #if NeedFunctionPrototypes
|
---|
595 | XkbGeometryPtr /* geom */,
|
---|
596 | int /* nShapes */
|
---|
597 | #endif
|
---|
598 | );
|
---|
599 |
|
---|
600 | extern Status
|
---|
601 | XkbAllocGeomSections(
|
---|
602 | #if NeedFunctionPrototypes
|
---|
603 | XkbGeometryPtr /* geom */,
|
---|
604 | int /* nSections */
|
---|
605 | #endif
|
---|
606 | );
|
---|
607 |
|
---|
608 | extern Status
|
---|
609 | XkbAllocGeomOverlays(
|
---|
610 | #if NeedFunctionPrototypes
|
---|
611 | XkbSectionPtr /* section */,
|
---|
612 | int /* num_needed */
|
---|
613 | #endif
|
---|
614 | );
|
---|
615 |
|
---|
616 | extern Status
|
---|
617 | XkbAllocGeomOverlayRows(
|
---|
618 | #if NeedFunctionPrototypes
|
---|
619 | XkbOverlayPtr /* overlay */,
|
---|
620 | int /* num_needed */
|
---|
621 | #endif
|
---|
622 | );
|
---|
623 |
|
---|
624 | extern Status
|
---|
625 | XkbAllocGeomOverlayKeys(
|
---|
626 | #if NeedFunctionPrototypes
|
---|
627 | XkbOverlayRowPtr /* row */,
|
---|
628 | int /* num_needed */
|
---|
629 | #endif
|
---|
630 | );
|
---|
631 |
|
---|
632 | extern Status
|
---|
633 | XkbAllocGeomDoodads(
|
---|
634 | #if NeedFunctionPrototypes
|
---|
635 | XkbGeometryPtr /* geom */,
|
---|
636 | int /* nDoodads */
|
---|
637 | #endif
|
---|
638 | );
|
---|
639 |
|
---|
640 | extern Status
|
---|
641 | XkbAllocGeomSectionDoodads(
|
---|
642 | #if NeedFunctionPrototypes
|
---|
643 | XkbSectionPtr /* section */,
|
---|
644 | int /* nDoodads */
|
---|
645 | #endif
|
---|
646 | );
|
---|
647 |
|
---|
648 | extern Status
|
---|
649 | XkbAllocGeomOutlines(
|
---|
650 | #if NeedFunctionPrototypes
|
---|
651 | XkbShapePtr /* shape */,
|
---|
652 | int /* nOL */
|
---|
653 | #endif
|
---|
654 | );
|
---|
655 |
|
---|
656 | extern Status
|
---|
657 | XkbAllocGeomRows(
|
---|
658 | #if NeedFunctionPrototypes
|
---|
659 | XkbSectionPtr /* section */,
|
---|
660 | int /* nRows */
|
---|
661 | #endif
|
---|
662 | );
|
---|
663 |
|
---|
664 | extern Status
|
---|
665 | XkbAllocGeomPoints(
|
---|
666 | #if NeedFunctionPrototypes
|
---|
667 | XkbOutlinePtr /* ol */,
|
---|
668 | int /* nPts */
|
---|
669 | #endif
|
---|
670 | );
|
---|
671 |
|
---|
672 | extern Status
|
---|
673 | XkbAllocGeomKeys(
|
---|
674 | #if NeedFunctionPrototypes
|
---|
675 | XkbRowPtr /* row */,
|
---|
676 | int /* nKeys */
|
---|
677 | #endif
|
---|
678 | );
|
---|
679 |
|
---|
680 | extern Status
|
---|
681 | XkbAllocGeometry(
|
---|
682 | #if NeedFunctionPrototypes
|
---|
683 | XkbDescPtr /* xkb */,
|
---|
684 | XkbGeometrySizesPtr /* sizes */
|
---|
685 | #endif
|
---|
686 | );
|
---|
687 |
|
---|
688 | extern Status
|
---|
689 | XkbSetGeometry(
|
---|
690 | #if NeedFunctionPrototypes
|
---|
691 | Display * /* dpy */,
|
---|
692 | unsigned /* deviceSpec */,
|
---|
693 | XkbGeometryPtr /* geom */
|
---|
694 | #endif
|
---|
695 | );
|
---|
696 |
|
---|
697 | extern Bool
|
---|
698 | XkbComputeShapeTop(
|
---|
699 | #if NeedFunctionPrototypes
|
---|
700 | XkbShapePtr /* shape */,
|
---|
701 | XkbBoundsPtr /* bounds */
|
---|
702 | #endif
|
---|
703 | );
|
---|
704 |
|
---|
705 | extern Bool
|
---|
706 | XkbComputeShapeBounds(
|
---|
707 | #if NeedFunctionPrototypes
|
---|
708 | XkbShapePtr /* shape */
|
---|
709 | #endif
|
---|
710 | );
|
---|
711 |
|
---|
712 | extern Bool
|
---|
713 | XkbComputeRowBounds(
|
---|
714 | #if NeedFunctionPrototypes
|
---|
715 | XkbGeometryPtr /* geom */,
|
---|
716 | XkbSectionPtr /* section */,
|
---|
717 | XkbRowPtr /* row */
|
---|
718 | #endif
|
---|
719 | );
|
---|
720 |
|
---|
721 | extern Bool
|
---|
722 | XkbComputeSectionBounds(
|
---|
723 | #if NeedFunctionPrototypes
|
---|
724 | XkbGeometryPtr /* geom */,
|
---|
725 | XkbSectionPtr /* section */
|
---|
726 | #endif
|
---|
727 | );
|
---|
728 |
|
---|
729 | extern char *
|
---|
730 | XkbFindOverlayForKey(
|
---|
731 | #if NeedFunctionPrototypes
|
---|
732 | XkbGeometryPtr /* geom */,
|
---|
733 | XkbSectionPtr /* wanted */,
|
---|
734 | char * /* under */
|
---|
735 | #endif
|
---|
736 | );
|
---|
737 |
|
---|
738 | extern Status
|
---|
739 | XkbGetGeometry(
|
---|
740 | #if NeedFunctionPrototypes
|
---|
741 | Display * /* dpy */,
|
---|
742 | XkbDescPtr /* xkb */
|
---|
743 | #endif
|
---|
744 | );
|
---|
745 |
|
---|
746 | extern Status
|
---|
747 | XkbGetNamedGeometry(
|
---|
748 | #if NeedFunctionPrototypes
|
---|
749 | Display * /* dpy */,
|
---|
750 | XkbDescPtr /* xkb */,
|
---|
751 | Atom /* name */
|
---|
752 | #endif
|
---|
753 | );
|
---|
754 |
|
---|
755 | _XFUNCPROTOEND
|
---|
756 |
|
---|
757 | #endif /* _XKBSTR_H_ */
|
---|