VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/fontsproto-2.1.0/X11/fonts/fsmasks.h@ 54853

最後變更 在這個檔案從54853是 22662,由 vboxsync 提交於 16 年 前

export more X11 stuff to OSE

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

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