VirtualBox

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

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

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 4.3 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 unsigned char *GetFontPath(int * /*count*/,
109 int * /*length*/);
110
111extern int LoadGlyphs(ClientPtr /*client*/,
112 FontPtr /*pfont*/,
113 unsigned /*nchars*/,
114 int /*item_size*/,
115 unsigned char * /*data*/);
116
117extern void DeleteClientFontStuff(ClientPtr /*client*/);
118
119/* Quartz support on Mac OS X pulls in the QuickDraw
120 framework whose InitFonts function conflicts here. */
121#ifdef __DARWIN__
122#define InitFonts Darwin_X_InitFonts
123#endif
124extern void InitFonts(void);
125
126extern void FreeFonts(void);
127
128extern FontPtr find_old_font(XID /*id*/);
129
130extern void GetGlyphs(FontPtr /*font*/,
131 unsigned long /*count*/,
132 unsigned char * /*chars*/,
133 FontEncoding /*fontEncoding*/,
134 unsigned long * /*glyphcount*/,
135 CharInfoPtr * /*glyphs*/);
136
137extern void QueryGlyphExtents(FontPtr /*pFont*/,
138 CharInfoPtr * /*charinfo*/,
139 unsigned long /*count*/,
140 ExtentInfoPtr /*info*/);
141
142extern Bool QueryTextExtents(FontPtr /*pFont*/,
143 unsigned long /*count*/,
144 unsigned char * /*chars*/,
145 ExtentInfoPtr /*info*/);
146
147extern Bool ParseGlyphCachingMode(char * /*str*/);
148
149extern void InitGlyphCaching(void);
150
151extern void SetGlyphCachingMode(int /*newmode*/);
152
153#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