VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.2/include/fonts/fsmasks.h@ 6202

Last change on this file since 6202 was 6202, checked in by vboxsync, 17 years ago

re-export x11

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1/* $Xorg: fsmasks.h,v 1.4 2001/02/09 02:03:25 xorgcvs Exp $ */
2/*
3 * Copyright 1990, 1991 Network Computing Devices;
4 * Portions Copyright 1987 by Digital Equipment Corporation
5 *
6 * Permission to use, copy, modify, distribute, and sell this software and
7 * its documentation for any purpose is hereby granted without fee, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the names of Network Computing Devices or Digital
11 * not be used in advertising or publicity pertaining to distribution
12 * of the software without specific, written prior permission.
13 * Network Computing Devices and Digital make no representations
14 * about the suitability of this software for any purpose. It is provided
15 * "as is" without express or implied warranty.
16 *
17 * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH
18 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
20 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
21 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
22 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
23 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
24 * THIS SOFTWARE.
25 */
26
27/*
28
29Portions Copyright 1987, 1994, 1998 The Open Group
30
31Permission to use, copy, modify, distribute, and sell this software and its
32documentation for any purpose is hereby granted without fee, provided that
33the above copyright notice appear in all copies and that both that
34copyright notice and this permission notice appear in supporting
35documentation.
36
37The above copyright notice and this permission notice shall be included in
38all copies or substantial portions of the Software.
39
40THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
44AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
47Except as contained in this notice, the name of The Open Group shall not be
48used in advertising or otherwise to promote the sale, use or other dealings
49in this Software without prior written authorization from The Open Group.
50
51*/
52
53
54/*
55 * masks & values used by the font lib and the font server
56 */
57
58#ifndef _FSMASKS_H_
59#define _FSMASKS_H_
60
61#include <X11/Xmd.h>
62
63/* font format macros */
64#define BitmapFormatByteOrderMask (1L << 0)
65#define BitmapFormatBitOrderMask (1L << 1)
66#define BitmapFormatImageRectMask (3L << 2)
67#define BitmapFormatScanlinePadMask (3L << 8)
68#define BitmapFormatScanlineUnitMask (3L << 12)
69
70#define BitmapFormatByteOrderLSB (0)
71#define BitmapFormatByteOrderMSB (1L << 0)
72#define BitmapFormatBitOrderLSB (0)
73#define BitmapFormatBitOrderMSB (1L << 1)
74
75#define BitmapFormatImageRectMin (0L << 2)
76#define BitmapFormatImageRectMaxWidth (1L << 2)
77#define BitmapFormatImageRectMax (2L << 2)
78
79#define BitmapFormatScanlinePad8 (0L << 8)
80#define BitmapFormatScanlinePad16 (1L << 8)
81#define BitmapFormatScanlinePad32 (2L << 8)
82#define BitmapFormatScanlinePad64 (3L << 8)
83
84#define BitmapFormatScanlineUnit8 (0L << 12)
85#define BitmapFormatScanlineUnit16 (1L << 12)
86#define BitmapFormatScanlineUnit32 (2L << 12)
87#define BitmapFormatScanlineUnit64 (3L << 12)
88
89#define BitmapFormatMaskByte (1L << 0)
90#define BitmapFormatMaskBit (1L << 1)
91#define BitmapFormatMaskImageRectangle (1L << 2)
92#define BitmapFormatMaskScanLinePad (1L << 3)
93#define BitmapFormatMaskScanLineUnit (1L << 4)
94
95typedef CARD32 fsBitmapFormat;
96typedef CARD32 fsBitmapFormatMask;
97
98#endif /* _FSMASKS_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