Debian Codegraph @

texk/ps2pk/fsmasks.h

raw
1 /* $XConsortium: fsmasks.h,v 1.2 91/05/13 16:46:16 gildea Exp $ */
2 /*
3 * Copyright 1990, 1991 Network Computing Devices;
4 * Portions Copyright 1987 by Digital Equipment Corporation and the
5 * Massachusetts Institute of Technology
6 *
7 * Permission to use, copy, modify, and distribute this protoype software
8 * and its documentation to Members and Affiliates of the MIT X Consortium
9 * any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies and that both that
11 * copyright notice and this permission notice appear in supporting
12 * documentation, and that the names of Network Computing Devices, Digital or
13 * MIT not be used in advertising or publicity pertaining to distribution of
14 * the software without specific, written prior permission.
15 *
16 * NETWORK COMPUTING DEVICES, DIGITAL AND MIT DISCLAIM ALL WARRANTIES WITH
17 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, DIGITAL OR MIT BE
19 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
21 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 *
24 * @(#)fsmasks.h 4.1 91/05/02
25 *
26 */
27
28 /*
29 * masks & values used by the font lib and the font server
30 */
31
32 #ifndef _FSMASKS_H_
33 #define _FSMASKS_H_
34
35 #include "types.h"
36
37 /* font format macros */
38 #define BitmapFormatByteOrderMask (1L << 0)
39 #define BitmapFormatBitOrderMask (1L << 1)
40 #define BitmapFormatImageRectMask (3L << 2)
41 #define BitmapFormatScanlinePadMask (3L << 8)
42 #define BitmapFormatScanlineUnitMask (3L << 12)
43
44 #define BitmapFormatByteOrderLSB (0)
45 #define BitmapFormatByteOrderMSB (1L << 0)
46 #define BitmapFormatBitOrderLSB (0)
47 #define BitmapFormatBitOrderMSB (1L << 1)
48
49 #define BitmapFormatImageRectMin (0L << 2)
50 #define BitmapFormatImageRectMaxWidth (1L << 2)
51 #define BitmapFormatImageRectMax (2L << 2)
52
53 #define BitmapFormatScanlinePad8 (0L << 8)
54 #define BitmapFormatScanlinePad16 (1L << 8)
55 #define BitmapFormatScanlinePad32 (2L << 8)
56 #define BitmapFormatScanlinePad64 (3L << 8)
57
58 #define BitmapFormatScanlineUnit8 (0L << 12)
59 #define BitmapFormatScanlineUnit16 (1L << 12)
60 #define BitmapFormatScanlineUnit32 (2L << 12)
61 #define BitmapFormatScanlineUnit64 (3L << 12)
62
63 #define BitmapFormatMaskByte (1L << 0)
64 #define BitmapFormatMaskBit (1L << 1)
65 #define BitmapFormatMaskImageRectangle (1L << 2)
66 #define BitmapFormatMaskScanLinePad (1L << 3)
67 #define BitmapFormatMaskScanLineUnit (1L << 4)
68
69 typedef uint32_t fsBitmapFormat;
70 typedef uint32_t fsBitmapFormatMask;
71
72 #endif /* _FSMASKS_H_ */