1 | /* $XFree86: xc/include/extensions/xf86bigfstr.h,v 1.3 2001/08/01 00:44:35 tsi Exp $ */
|
---|
2 | /*
|
---|
3 | * Declarations of request structures for the BIGFONT extension.
|
---|
4 | *
|
---|
5 | * Copyright (c) 1999-2000 Bruno Haible
|
---|
6 | * Copyright (c) 1999-2000 The XFree86 Project, Inc.
|
---|
7 | */
|
---|
8 |
|
---|
9 | /* THIS IS NOT AN X CONSORTIUM STANDARD */
|
---|
10 |
|
---|
11 | #ifndef _XF86BIGFSTR_H_
|
---|
12 | #define _XF86BIGFSTR_H_
|
---|
13 |
|
---|
14 | #include <X11/extensions/xf86bigfont.h>
|
---|
15 |
|
---|
16 | #define XF86BIGFONTNAME "XFree86-Bigfont"
|
---|
17 |
|
---|
18 | #define XF86BIGFONT_MAJOR_VERSION 1 /* current version numbers */
|
---|
19 | #define XF86BIGFONT_MINOR_VERSION 1
|
---|
20 |
|
---|
21 | typedef struct _XF86BigfontQueryVersion {
|
---|
22 | CARD8 reqType; /* always XF86BigfontReqCode */
|
---|
23 | CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryVersion */
|
---|
24 | CARD16 length B16;
|
---|
25 | } xXF86BigfontQueryVersionReq;
|
---|
26 | #define sz_xXF86BigfontQueryVersionReq 4
|
---|
27 |
|
---|
28 | typedef struct {
|
---|
29 | BYTE type; /* X_Reply */
|
---|
30 | CARD8 capabilities;
|
---|
31 | CARD16 sequenceNumber B16;
|
---|
32 | CARD32 length B32;
|
---|
33 | CARD16 majorVersion B16; /* major version of XFree86-Bigfont */
|
---|
34 | CARD16 minorVersion B16; /* minor version of XFree86-Bigfont */
|
---|
35 | CARD32 uid B32;
|
---|
36 | CARD32 gid B32;
|
---|
37 | CARD32 signature B32;
|
---|
38 | CARD32 pad1 B32;
|
---|
39 | CARD32 pad2 B32;
|
---|
40 | } xXF86BigfontQueryVersionReply;
|
---|
41 | #define sz_xXF86BigfontQueryVersionReply 32
|
---|
42 |
|
---|
43 | /* Bit masks that can be set in the capabilities */
|
---|
44 | #define XF86Bigfont_CAP_LocalShm 1
|
---|
45 |
|
---|
46 | typedef struct _XF86BigfontQueryFont {
|
---|
47 | CARD8 reqType; /* always XF86BigfontReqCode */
|
---|
48 | CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryFont */
|
---|
49 | CARD16 length B16;
|
---|
50 | CARD32 id B32;
|
---|
51 | CARD32 flags B32;
|
---|
52 | } xXF86BigfontQueryFontReq;
|
---|
53 | #define sz_xXF86BigfontQueryFontReq 12
|
---|
54 |
|
---|
55 | typedef struct {
|
---|
56 | BYTE type; /* X_Reply */
|
---|
57 | CARD8 pad1;
|
---|
58 | CARD16 sequenceNumber B16;
|
---|
59 | CARD32 length B32;
|
---|
60 | xCharInfo minBounds;
|
---|
61 | #ifndef WORD64
|
---|
62 | CARD32 walign1 B32;
|
---|
63 | #endif
|
---|
64 | xCharInfo maxBounds;
|
---|
65 | #ifndef WORD64
|
---|
66 | CARD32 walign2 B32;
|
---|
67 | #endif
|
---|
68 | CARD16 minCharOrByte2 B16;
|
---|
69 | CARD16 maxCharOrByte2 B16;
|
---|
70 | CARD16 defaultChar B16;
|
---|
71 | CARD16 nFontProps B16;
|
---|
72 | CARD8 drawDirection;
|
---|
73 | CARD8 minByte1;
|
---|
74 | CARD8 maxByte1;
|
---|
75 | BOOL allCharsExist;
|
---|
76 | INT16 fontAscent B16;
|
---|
77 | INT16 fontDescent B16;
|
---|
78 | CARD32 nCharInfos B32;
|
---|
79 | CARD32 nUniqCharInfos B32;
|
---|
80 | CARD32 shmid B32;
|
---|
81 | CARD32 shmsegoffset B32;
|
---|
82 | /* followed by nFontProps xFontProp structures */
|
---|
83 | /* and if nCharInfos > 0 && shmid == -1,
|
---|
84 | followed by nUniqCharInfos xCharInfo structures
|
---|
85 | and then by nCharInfos CARD16 indices (each >= 0, < nUniqCharInfos)
|
---|
86 | and then, if nCharInfos is odd, one more CARD16 for padding. */
|
---|
87 | } xXF86BigfontQueryFontReply;
|
---|
88 | #define sz_xXF86BigfontQueryFontReply 72
|
---|
89 |
|
---|
90 | /* Bit masks that can be set in the flags */
|
---|
91 | #define XF86Bigfont_FLAGS_Shm 1
|
---|
92 |
|
---|
93 | #endif /* _XF86BIGFSTR_H_ */
|
---|