github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xkbcommon/include/X11/fonts/fsmasks.h (about) 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 28 Portions Copyright 1987, 1994, 1998 The Open Group 29 30 Permission to use, copy, modify, distribute, and sell this software and its 31 documentation for any purpose is hereby granted without fee, provided that 32 the above copyright notice appear in all copies and that both that 33 copyright notice and this permission notice appear in supporting 34 documentation. 35 36 The above copyright notice and this permission notice shall be included in 37 all copies or substantial portions of the Software. 38 39 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 43 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 44 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 45 46 Except as contained in this notice, the name of The Open Group shall not be 47 used in advertising or otherwise to promote the sale, use or other dealings 48 in 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 94 typedef CARD32 fsBitmapFormat; 95 typedef CARD32 fsBitmapFormatMask; 96 97 #endif /* _FSMASKS_H_ */