VirtualBox

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

最後變更 在這個檔案從77662是 54163,由 vboxsync 提交於 10 年 前

Additions/x11/vboxvideo: support X.Org Server 1.17 (still untested).

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.7 KB
 
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#include <X11/fonts/fontproto.h>
32
33#define NullDIXFontProp ((DIXFontPropPtr)0)
34
35typedef struct _DIXFontProp *DIXFontPropPtr;
36
37extern _X_EXPORT Bool SetDefaultFont(const char * /*defaultfontname */ );
38
39extern _X_EXPORT void QueueFontWakeup(FontPathElementPtr /*fpe */ );
40
41extern _X_EXPORT void RemoveFontWakeup(FontPathElementPtr /*fpe */ );
42
43extern _X_EXPORT void FontWakeup(void *data,
44 int count,
45 void *LastSelectMask);
46
47extern _X_EXPORT int OpenFont(ClientPtr /*client */ ,
48 XID /*fid */ ,
49 Mask /*flags */ ,
50 unsigned /*lenfname */ ,
51 const char * /*pfontname */ );
52
53extern _X_EXPORT int CloseFont(void *pfont,
54 XID fid);
55
56typedef struct _xQueryFontReply *xQueryFontReplyPtr;
57
58extern _X_EXPORT void QueryFont(FontPtr /*pFont */ ,
59 xQueryFontReplyPtr /*pReply */ ,
60 int /*nProtoCCIStructs */ );
61
62extern _X_EXPORT int ListFonts(ClientPtr /*client */ ,
63 unsigned char * /*pattern */ ,
64 unsigned int /*length */ ,
65 unsigned int /*max_names */ );
66
67extern _X_EXPORT int
68 doListFontsWithInfo(ClientPtr /*client */ ,
69 LFWIclosurePtr /*c */ );
70
71extern _X_EXPORT int doPolyText(ClientPtr /*client */ ,
72 PTclosurePtr /*c */
73 );
74
75extern _X_EXPORT int PolyText(ClientPtr /*client */ ,
76 DrawablePtr /*pDraw */ ,
77 GCPtr /*pGC */ ,
78 unsigned char * /*pElt */ ,
79 unsigned char * /*endReq */ ,
80 int /*xorg */ ,
81 int /*yorg */ ,
82 int /*reqType */ ,
83 XID /*did */ );
84
85extern _X_EXPORT int doImageText(ClientPtr /*client */ ,
86 ITclosurePtr /*c */ );
87
88extern _X_EXPORT int ImageText(ClientPtr /*client */ ,
89 DrawablePtr /*pDraw */ ,
90 GCPtr /*pGC */ ,
91 int /*nChars */ ,
92 unsigned char * /*data */ ,
93 int /*xorg */ ,
94 int /*yorg */ ,
95 int /*reqType */ ,
96 XID /*did */ );
97
98extern _X_EXPORT int SetFontPath(ClientPtr /*client */ ,
99 int /*npaths */ ,
100 unsigned char * /*paths */ );
101
102extern _X_EXPORT int SetDefaultFontPath(const char * /*path */ );
103
104extern _X_EXPORT int GetFontPath(ClientPtr client,
105 int *count,
106 int *length, unsigned char **result);
107
108extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client */ );
109
110/* Quartz support on Mac OS X pulls in the QuickDraw
111 framework whose InitFonts function conflicts here. */
112#ifdef __APPLE__
113#define InitFonts Darwin_X_InitFonts
114#endif
115extern _X_EXPORT void InitFonts(void);
116
117extern _X_EXPORT void FreeFonts(void);
118
119extern _X_EXPORT FontPtr find_old_font(XID /*id */ );
120
121#define GetGlyphs dixGetGlyphs
122extern _X_EXPORT void dixGetGlyphs(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
145extern _X_EXPORT void register_fpe_functions(void);
146
147#endif /* DIXFONT_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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