Back to index

tetex-bin  3.0
fsmasks.h
Go to the documentation of this file.
00001 /* $XConsortium: fsmasks.h,v 1.2 91/05/13 16:46:16 gildea Exp $ */
00002 /*
00003  * Copyright 1990, 1991 Network Computing Devices;
00004  * Portions Copyright 1987 by Digital Equipment Corporation and the
00005  * Massachusetts Institute of Technology
00006  *
00007  * Permission to use, copy, modify, and distribute this protoype software
00008  * and its documentation to Members and Affiliates of the MIT X Consortium
00009  * any purpose and without fee is hereby granted, provided
00010  * that the above copyright notice appear in all copies and that both that
00011  * copyright notice and this permission notice appear in supporting
00012  * documentation, and that the names of Network Computing Devices, Digital or
00013  * MIT not be used in advertising or publicity pertaining to distribution of
00014  * the software without specific, written prior permission.
00015  *
00016  * NETWORK COMPUTING DEVICES, DIGITAL AND MIT DISCLAIM ALL WARRANTIES WITH
00017  * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00018  * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, DIGITAL OR MIT BE
00019  * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00020  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
00021  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00022  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00023  *
00024  * @(#)fsmasks.h     4.1    91/05/02
00025  *
00026  */
00027 
00028 /*
00029  * masks & values used by the font lib and the font server
00030  */
00031 
00032 #ifndef _FSMASKS_H_
00033 #define _FSMASKS_H_
00034 
00035 #include "types.h"
00036 
00037 /* font format macros */
00038 #define BitmapFormatByteOrderMask       (1L << 0)
00039 #define BitmapFormatBitOrderMask        (1L << 1)
00040 #define BitmapFormatImageRectMask       (3L << 2)
00041 #define BitmapFormatScanlinePadMask     (3L << 8)
00042 #define BitmapFormatScanlineUnitMask    (3L << 12)
00043 
00044 #define BitmapFormatByteOrderLSB        (0)
00045 #define BitmapFormatByteOrderMSB        (1L << 0)
00046 #define BitmapFormatBitOrderLSB         (0)
00047 #define BitmapFormatBitOrderMSB         (1L << 1)
00048 
00049 #define BitmapFormatImageRectMin        (0L << 2)
00050 #define BitmapFormatImageRectMaxWidth   (1L << 2)
00051 #define BitmapFormatImageRectMax        (2L << 2)
00052 
00053 #define BitmapFormatScanlinePad8        (0L << 8)
00054 #define BitmapFormatScanlinePad16       (1L << 8)
00055 #define BitmapFormatScanlinePad32       (2L << 8)
00056 #define BitmapFormatScanlinePad64       (3L << 8)
00057 
00058 #define BitmapFormatScanlineUnit8       (0L << 12)
00059 #define BitmapFormatScanlineUnit16      (1L << 12)
00060 #define BitmapFormatScanlineUnit32      (2L << 12)
00061 #define BitmapFormatScanlineUnit64      (3L << 12)
00062 
00063 #define BitmapFormatMaskByte            (1L << 0)
00064 #define BitmapFormatMaskBit             (1L << 1)
00065 #define BitmapFormatMaskImageRectangle  (1L << 2)
00066 #define BitmapFormatMaskScanLinePad     (1L << 3)
00067 #define BitmapFormatMaskScanLineUnit    (1L << 4)
00068 
00069 typedef ULONG  fsBitmapFormat;
00070 typedef ULONG  fsBitmapFormatMask;
00071 
00072 #endif /* _FSMASKS_H_ */