VirtualBox

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

Last change on this file since 99743 was 17471, checked in by vboxsync, 16 years ago

export to OSE

  • Property svn:eol-style set to native
File size: 4.4 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 FPEFunctions *fpe_functions;
37
38extern int FontToXError(int /*err*/);
39
40extern Bool SetDefaultFont(char * /*defaultfontname*/);
41
42extern void QueueFontWakeup(FontPathElementPtr /*fpe*/);
43
44extern void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
45
46extern void FontWakeup(pointer /*data*/,
47 int /*count*/,
48 pointer /*LastSelectMask*/);
49
50extern int OpenFont(ClientPtr /*client*/,
51 XID /*fid*/,
52 Mask /*flags*/,
53 unsigned /*lenfname*/,
54 char * /*pfontname*/);
55
56extern int CloseFont(pointer /*pfont*/,
57 XID /*fid*/);
58
59typedef struct _xQueryFontReply *xQueryFontReplyPtr;
60
61extern void QueryFont(FontPtr /*pFont*/,
62 xQueryFontReplyPtr /*pReply*/,
63 int /*nProtoCCIStructs*/);
64
65extern int ListFonts(ClientPtr /*client*/,
66 unsigned char * /*pattern*/,
67 unsigned int /*length*/,
68 unsigned int /*max_names*/);
69
70int
71doListFontsWithInfo(ClientPtr /*client*/,
72 LFWIclosurePtr /*c*/);
73
74extern int doPolyText(ClientPtr /*client*/,
75 PTclosurePtr /*c*/
76);
77
78extern int PolyText(ClientPtr /*client*/,
79 DrawablePtr /*pDraw*/,
80 GCPtr /*pGC*/,
81 unsigned char * /*pElt*/,
82 unsigned char * /*endReq*/,
83 int /*xorg*/,
84 int /*yorg*/,
85 int /*reqType*/,
86 XID /*did*/);
87
88extern int doImageText(ClientPtr /*client*/,
89 ITclosurePtr /*c*/);
90
91extern int ImageText(ClientPtr /*client*/,
92 DrawablePtr /*pDraw*/,
93 GCPtr /*pGC*/,
94 int /*nChars*/,
95 unsigned char * /*data*/,
96 int /*xorg*/,
97 int /*yorg*/,
98 int /*reqType*/,
99 XID /*did*/);
100
101extern int SetFontPath(ClientPtr /*client*/,
102 int /*npaths*/,
103 unsigned char * /*paths*/,
104 int * /*error*/);
105
106extern int SetDefaultFontPath(char * /*path*/);
107
108extern int GetFontPath(ClientPtr client,
109 int *count,
110 int *length,
111 unsigned char **result);
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 __APPLE__
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