VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/closestr.h@ 69348

Last change on this file since 69348 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 3.8 KB
Line 
1/* $Xorg: closestr.h,v 1.4 2001/02/09 02:05:14 xorgcvs Exp $ */
2/*
3
4Copyright 1991, 1998 The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included
13in all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall
24not be used in advertising or otherwise to promote the sale, use or
25other dealings in this Software without prior written authorization
26from 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
46typedef 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
66typedef 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
75typedef 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
91typedef 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
106typedef
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
116typedef 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
135typedef
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
145typedef 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 */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette