VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.6.99-20090831/dixfont.h@ 32915

Last change on this file since 32915 was 22658, checked in by vboxsync, 15 years ago

export Xorg 1.6.99 headers to OSE

  • Property svn:eol-style set to native
File size: 5.6 KB
Line 
1/***********************************************************
2Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted,
8provided that the above copyright notice appear in all copies and that
9both that copyright notice and this permission notice appear in
10supporting documentation, and that the name of Digital not be
11used in advertising or publicity pertaining to distribution of the
12software without specific, written prior permission.
13
14DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
22******************************************************************/
23
24#ifndef DIXFONT_H
25#define DIXFONT_H 1
26
27#include "dix.h"
28#include <X11/fonts/font.h>
29#include "closure.h"
30#include <X11/fonts/fontstruct.h>
31
32#define NullDIXFontProp ((DIXFontPropPtr)0)
33
34typedef struct _DIXFontProp *DIXFontPropPtr;
35
36extern _X_EXPORT Bool SetDefaultFont(char * /*defaultfontname*/);
37
38extern _X_EXPORT void QueueFontWakeup(FontPathElementPtr /*fpe*/);
39
40extern _X_EXPORT void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
41
42extern _X_EXPORT void FontWakeup(pointer /*data*/,
43 int /*count*/,
44 pointer /*LastSelectMask*/);
45
46extern _X_EXPORT int OpenFont(ClientPtr /*client*/,
47 XID /*fid*/,
48 Mask /*flags*/,
49 unsigned /*lenfname*/,
50 char * /*pfontname*/);
51
52extern _X_EXPORT int CloseFont(pointer /*pfont*/,
53 XID /*fid*/);
54
55typedef struct _xQueryFontReply *xQueryFontReplyPtr;
56
57extern _X_EXPORT void QueryFont(FontPtr /*pFont*/,
58 xQueryFontReplyPtr /*pReply*/,
59 int /*nProtoCCIStructs*/);
60
61extern _X_EXPORT int ListFonts(ClientPtr /*client*/,
62 unsigned char * /*pattern*/,
63 unsigned int /*length*/,
64 unsigned int /*max_names*/);
65
66extern _X_EXPORT int
67doListFontsWithInfo(ClientPtr /*client*/,
68 LFWIclosurePtr /*c*/);
69
70extern _X_EXPORT int doPolyText(ClientPtr /*client*/,
71 PTclosurePtr /*c*/
72);
73
74extern _X_EXPORT int PolyText(ClientPtr /*client*/,
75 DrawablePtr /*pDraw*/,
76 GCPtr /*pGC*/,
77 unsigned char * /*pElt*/,
78 unsigned char * /*endReq*/,
79 int /*xorg*/,
80 int /*yorg*/,
81 int /*reqType*/,
82 XID /*did*/);
83
84extern _X_EXPORT int doImageText(ClientPtr /*client*/,
85 ITclosurePtr /*c*/);
86
87extern _X_EXPORT int ImageText(ClientPtr /*client*/,
88 DrawablePtr /*pDraw*/,
89 GCPtr /*pGC*/,
90 int /*nChars*/,
91 unsigned char * /*data*/,
92 int /*xorg*/,
93 int /*yorg*/,
94 int /*reqType*/,
95 XID /*did*/);
96
97extern _X_EXPORT int SetFontPath(ClientPtr /*client*/,
98 int /*npaths*/,
99 unsigned char * /*paths*/,
100 int * /*error*/);
101
102extern _X_EXPORT int SetDefaultFontPath(char * /*path*/);
103
104extern _X_EXPORT int GetFontPath(ClientPtr client,
105 int *count,
106 int *length,
107 unsigned char **result);
108
109extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client*/);
110
111/* Quartz support on Mac OS X pulls in the QuickDraw
112 framework whose InitFonts function conflicts here. */
113#ifdef __APPLE__
114#define InitFonts Darwin_X_InitFonts
115#endif
116extern _X_EXPORT void InitFonts(void);
117
118extern _X_EXPORT void FreeFonts(void);
119
120extern _X_EXPORT FontPtr find_old_font(XID /*id*/);
121
122extern _X_EXPORT void GetGlyphs(FontPtr /*font*/,
123 unsigned long /*count*/,
124 unsigned char * /*chars*/,
125 FontEncoding /*fontEncoding*/,
126 unsigned long * /*glyphcount*/,
127 CharInfoPtr * /*glyphs*/);
128
129extern _X_EXPORT void QueryGlyphExtents(FontPtr /*pFont*/,
130 CharInfoPtr * /*charinfo*/,
131 unsigned long /*count*/,
132 ExtentInfoPtr /*info*/);
133
134extern _X_EXPORT Bool QueryTextExtents(FontPtr /*pFont*/,
135 unsigned long /*count*/,
136 unsigned char * /*chars*/,
137 ExtentInfoPtr /*info*/);
138
139extern _X_EXPORT Bool ParseGlyphCachingMode(char * /*str*/);
140
141extern _X_EXPORT void InitGlyphCaching(void);
142
143extern _X_EXPORT void SetGlyphCachingMode(int /*newmode*/);
144
145/*
146 * libXfont/src/builtins/builtin.h
147 */
148extern _X_EXPORT void BuiltinRegisterFpeFunctions(void);
149
150/*
151 * libXfont stubs.
152 */
153extern _X_EXPORT int client_auth_generation(ClientPtr client);
154
155extern _X_EXPORT void DeleteFontClientID(Font id);
156
157extern _X_EXPORT FontResolutionPtr GetClientResolutions(int *num);
158
159extern _X_EXPORT int GetDefaultPointSize(void);
160
161extern _X_EXPORT Font GetNewFontClientID(void);
162
163extern _X_EXPORT int init_fs_handlers(FontPathElementPtr fpe,
164 BlockHandlerProcPtr block_handler);
165
166extern _X_EXPORT int RegisterFPEFunctions(NameCheckFunc name_func,
167 InitFpeFunc init_func,
168 FreeFpeFunc free_func,
169 ResetFpeFunc reset_func,
170 OpenFontFunc open_func,
171 CloseFontFunc close_func,
172 ListFontsFunc list_func,
173 StartLfwiFunc start_lfwi_func,
174 NextLfwiFunc next_lfwi_func,
175 WakeupFpeFunc wakeup_func,
176 ClientDiedFunc client_died,
177 LoadGlyphsFunc load_glyphs,
178 StartLaFunc start_list_alias_func,
179 NextLaFunc next_list_alias_func,
180 SetPathFunc set_path_func);
181
182extern _X_EXPORT void remove_fs_handlers(FontPathElementPtr fpe,
183 BlockHandlerProcPtr blockHandler,
184 Bool all);
185
186extern _X_EXPORT int StoreFontClientFont(FontPtr pfont, Font id);
187
188#endif /* DIXFONT_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