1 | /* $Xorg: closestr.h,v 1.4 2001/02/09 02:05:14 xorgcvs Exp $ */
|
---|
2 | /*
|
---|
3 |
|
---|
4 | Copyright 1991, 1998 The Open Group
|
---|
5 |
|
---|
6 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
7 | documentation for any purpose is hereby granted without fee, provided that
|
---|
8 | the above copyright notice appear in all copies and that both that
|
---|
9 | copyright notice and this permission notice appear in supporting
|
---|
10 | documentation.
|
---|
11 |
|
---|
12 | The above copyright notice and this permission notice shall be included
|
---|
13 | in all copies or substantial portions of the Software.
|
---|
14 |
|
---|
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
---|
18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
21 | OTHER DEALINGS IN THE SOFTWARE.
|
---|
22 |
|
---|
23 | Except as contained in this notice, the name of The Open Group shall
|
---|
24 | not be used in advertising or otherwise to promote the sale, use or
|
---|
25 | other dealings in this Software without prior written authorization
|
---|
26 | from The Open Group.
|
---|
27 |
|
---|
28 | */
|
---|
29 | /* $XFree86: xc/programs/Xserver/include/closestr.h,v 3.4 2001/12/14 19:59:53 dawes Exp $ */
|
---|
30 |
|
---|
31 |
|
---|
32 | #ifndef CLOSESTR_H
|
---|
33 | #define CLOSESTR_H
|
---|
34 |
|
---|
35 | #define NEED_REPLIES
|
---|
36 | #include <X11/Xproto.h>
|
---|
37 | #include "closure.h"
|
---|
38 | #include "dix.h"
|
---|
39 | #include "misc.h"
|
---|
40 | #include "gcstruct.h"
|
---|
41 |
|
---|
42 | /* closure structures */
|
---|
43 |
|
---|
44 | /* OpenFont */
|
---|
45 |
|
---|
46 | typedef struct _OFclosure {
|
---|
47 | ClientPtr client;
|
---|
48 | short current_fpe;
|
---|
49 | short num_fpes;
|
---|
50 | FontPathElementPtr *fpe_list;
|
---|
51 | Mask flags;
|
---|
52 | Bool slept;
|
---|
53 |
|
---|
54 | /* XXX -- get these from request buffer instead? */
|
---|
55 | char *origFontName;
|
---|
56 | int origFontNameLen;
|
---|
57 | XID fontid;
|
---|
58 | char *fontname;
|
---|
59 | int fnamelen;
|
---|
60 | FontPtr non_cachable_font;
|
---|
61 | } OFclosureRec;
|
---|
62 |
|
---|
63 | /* ListFontsWithInfo */
|
---|
64 |
|
---|
65 | #define XLFDMAXFONTNAMELEN 256
|
---|
66 | typedef struct _LFWIstate {
|
---|
67 | char pattern[XLFDMAXFONTNAMELEN];
|
---|
68 | int patlen;
|
---|
69 | int current_fpe;
|
---|
70 | int max_names;
|
---|
71 | Bool list_started;
|
---|
72 | pointer private;
|
---|
73 | } LFWIstateRec, *LFWIstatePtr;
|
---|
74 |
|
---|
75 | typedef struct _LFWIclosure {
|
---|
76 | ClientPtr client;
|
---|
77 | int num_fpes;
|
---|
78 | FontPathElementPtr *fpe_list;
|
---|
79 | xListFontsWithInfoReply *reply;
|
---|
80 | int length;
|
---|
81 | LFWIstateRec current;
|
---|
82 | LFWIstateRec saved;
|
---|
83 | int savedNumFonts;
|
---|
84 | Bool haveSaved;
|
---|
85 | Bool slept;
|
---|
86 | char *savedName;
|
---|
87 | } LFWIclosureRec;
|
---|
88 |
|
---|
89 | /* ListFonts */
|
---|
90 |
|
---|
91 | typedef struct _LFclosure {
|
---|
92 | ClientPtr client;
|
---|
93 | int num_fpes;
|
---|
94 | FontPathElementPtr *fpe_list;
|
---|
95 | FontNamesPtr names;
|
---|
96 | LFWIstateRec current;
|
---|
97 | LFWIstateRec saved;
|
---|
98 | Bool haveSaved;
|
---|
99 | Bool slept;
|
---|
100 | char *savedName;
|
---|
101 | int savedNameLen;
|
---|
102 | } LFclosureRec;
|
---|
103 |
|
---|
104 | /* PolyText */
|
---|
105 |
|
---|
106 | typedef
|
---|
107 | int (* PolyTextPtr)(
|
---|
108 | DrawablePtr /* pDraw */,
|
---|
109 | GCPtr /* pGC */,
|
---|
110 | int /* x */,
|
---|
111 | int /* y */,
|
---|
112 | int /* count */,
|
---|
113 | void * /* chars or shorts */
|
---|
114 | );
|
---|
115 |
|
---|
116 | typedef struct _PTclosure {
|
---|
117 | ClientPtr client;
|
---|
118 | DrawablePtr pDraw;
|
---|
119 | GC *pGC;
|
---|
120 | unsigned char *pElt;
|
---|
121 | unsigned char *endReq;
|
---|
122 | unsigned char *data;
|
---|
123 | int xorg;
|
---|
124 | int yorg;
|
---|
125 | CARD8 reqType;
|
---|
126 | PolyTextPtr polyText;
|
---|
127 | int itemSize;
|
---|
128 | XID did;
|
---|
129 | int err;
|
---|
130 | Bool slept;
|
---|
131 | } PTclosureRec;
|
---|
132 |
|
---|
133 | /* ImageText */
|
---|
134 |
|
---|
135 | typedef
|
---|
136 | void (* ImageTextPtr)(
|
---|
137 | DrawablePtr /* pDraw */,
|
---|
138 | GCPtr /* pGC */,
|
---|
139 | int /* x */,
|
---|
140 | int /* y */,
|
---|
141 | int /* count */,
|
---|
142 | void * /* chars or shorts */
|
---|
143 | );
|
---|
144 |
|
---|
145 | typedef struct _ITclosure {
|
---|
146 | ClientPtr client;
|
---|
147 | DrawablePtr pDraw;
|
---|
148 | GC *pGC;
|
---|
149 | BYTE nChars;
|
---|
150 | unsigned char *data;
|
---|
151 | int xorg;
|
---|
152 | int yorg;
|
---|
153 | CARD8 reqType;
|
---|
154 | ImageTextPtr imageText;
|
---|
155 | int itemSize;
|
---|
156 | XID did;
|
---|
157 | Bool slept;
|
---|
158 | } ITclosureRec;
|
---|
159 | #endif /* CLOSESTR_H */
|
---|