VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/dixfont.h@ 81043

Last change on this file since 81043 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: 4.5 KB
Line 
1/* $Xorg: dixfont.h,v 1.3 2000/08/17 19:53:29 cpqbld Exp $ */
2/***********************************************************
3Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the name of Digital not be
12used in advertising or publicity pertaining to distribution of the
13software without specific, written prior permission.
14
15DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21SOFTWARE.
22
23******************************************************************/
24/* $XFree86: xc/programs/Xserver/include/dixfont.h,v 3.7 2001/02/02 21:39:02 herrb Exp $ */
25
26#ifndef DIXFONT_H
27#define DIXFONT_H 1
28
29#include "dix.h"
30#include <X11/fonts/font.h>
31#include "closure.h"
32#include <X11/fonts/fontstruct.h>
33
34#define NullDIXFontProp ((DIXFontPropPtr)0)
35
36typedef struct _DIXFontProp *DIXFontPropPtr;
37
38extern FPEFunctions *fpe_functions;
39
40extern int FontToXError(int /*err*/);
41
42extern Bool SetDefaultFont(char * /*defaultfontname*/);
43
44extern void QueueFontWakeup(FontPathElementPtr /*fpe*/);
45
46extern void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
47
48extern void FontWakeup(pointer /*data*/,
49 int /*count*/,
50 pointer /*LastSelectMask*/);
51
52extern int OpenFont(ClientPtr /*client*/,
53 XID /*fid*/,
54 Mask /*flags*/,
55 unsigned /*lenfname*/,
56 char * /*pfontname*/);
57
58extern int CloseFont(pointer /*pfont*/,
59 XID /*fid*/);
60
61typedef struct _xQueryFontReply *xQueryFontReplyPtr;
62
63extern void QueryFont(FontPtr /*pFont*/,
64 xQueryFontReplyPtr /*pReply*/,
65 int /*nProtoCCIStructs*/);
66
67extern int ListFonts(ClientPtr /*client*/,
68 unsigned char * /*pattern*/,
69 unsigned int /*length*/,
70 unsigned int /*max_names*/);
71
72int
73doListFontsWithInfo(ClientPtr /*client*/,
74 LFWIclosurePtr /*c*/);
75
76extern int doPolyText(ClientPtr /*client*/,
77 PTclosurePtr /*c*/
78);
79
80extern int PolyText(ClientPtr /*client*/,
81 DrawablePtr /*pDraw*/,
82 GCPtr /*pGC*/,
83 unsigned char * /*pElt*/,
84 unsigned char * /*endReq*/,
85 int /*xorg*/,
86 int /*yorg*/,
87 int /*reqType*/,
88 XID /*did*/);
89
90extern int doImageText(ClientPtr /*client*/,
91 ITclosurePtr /*c*/);
92
93extern int ImageText(ClientPtr /*client*/,
94 DrawablePtr /*pDraw*/,
95 GCPtr /*pGC*/,
96 int /*nChars*/,
97 unsigned char * /*data*/,
98 int /*xorg*/,
99 int /*yorg*/,
100 int /*reqType*/,
101 XID /*did*/);
102
103extern int SetFontPath(ClientPtr /*client*/,
104 int /*npaths*/,
105 unsigned char * /*paths*/,
106 int * /*error*/);
107
108extern int SetDefaultFontPath(char * /*path*/);
109
110extern unsigned char *GetFontPath(int * /*count*/,
111 int * /*length*/);
112
113extern int LoadGlyphs(ClientPtr /*client*/,
114 FontPtr /*pfont*/,
115 unsigned /*nchars*/,
116 int /*item_size*/,
117 unsigned char * /*data*/);
118
119extern void DeleteClientFontStuff(ClientPtr /*client*/);
120
121/* Quartz support on Mac OS X pulls in the QuickDraw
122 framework whose InitFonts function conflicts here. */
123#ifdef __DARWIN__
124#define InitFonts Darwin_X_InitFonts
125#endif
126extern void InitFonts(void);
127
128extern void FreeFonts(void);
129
130extern FontPtr find_old_font(XID /*id*/);
131
132extern void GetGlyphs(FontPtr /*font*/,
133 unsigned long /*count*/,
134 unsigned char * /*chars*/,
135 FontEncoding /*fontEncoding*/,
136 unsigned long * /*glyphcount*/,
137 CharInfoPtr * /*glyphs*/);
138
139extern void QueryGlyphExtents(FontPtr /*pFont*/,
140 CharInfoPtr * /*charinfo*/,
141 unsigned long /*count*/,
142 ExtentInfoPtr /*info*/);
143
144extern Bool QueryTextExtents(FontPtr /*pFont*/,
145 unsigned long /*count*/,
146 unsigned char * /*chars*/,
147 ExtentInfoPtr /*info*/);
148
149extern Bool ParseGlyphCachingMode(char * /*str*/);
150
151extern void InitGlyphCaching(void);
152
153extern void SetGlyphCachingMode(int /*newmode*/);
154
155#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