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