3 * Copyright © 2000 SuSE, Inc.
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of SuSE not be used in advertising or
10 * publicity pertaining to distribution of the software without specific,
11 * written prior permission. SuSE makes no representations about the
12 * suitability of this software for any purpose. It is provided "as is"
13 * without express or implied warranty.
15 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
17 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
19 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 * Author: Keith Packard, SuSE, Inc.
29 #include "screenint.h"
31 #define GlyphFormat1 0
32 #define GlyphFormat4 1
33 #define GlyphFormat8 2
34 #define GlyphFormat16 3
35 #define GlyphFormat32 4
36 #define GlyphFormatNum 5
38 typedef struct _Glyph
{
40 PrivateRec
*devPrivates
;
41 unsigned char sha1
[20];
42 CARD32 size
; /* info + bitmap */
44 /* per-screen pixmaps follow */
45 } GlyphRec
, *GlyphPtr
;
47 typedef struct _GlyphList
{
52 } GlyphListRec
, *GlyphListPtr
;
54 #define GLYPH_HAS_GLYPH_PICTURE_ACCESSOR 1 /* used for api compat */
55 extern _X_EXPORT PicturePtr
56 GetGlyphPicture(GlyphPtr glyph
, ScreenPtr pScreen
);
58 SetGlyphPicture(GlyphPtr glyph
, ScreenPtr pScreen
, PicturePtr picture
);
60 #endif /* _GLYPHSTR_H_ */