home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gs241j11.zip / INCLUDE.PCF / FSMASKS.H < prev    next >
C/C++ Source or Header  |  1992-04-02  |  3KB  |  71 lines

  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. /* font format macros */
  36. #define BitmapFormatByteOrderMask       (1L << 0)
  37. #define BitmapFormatBitOrderMask        (1L << 1)
  38. #define BitmapFormatImageRectMask       (3L << 2)
  39. #define BitmapFormatScanlinePadMask     (3L << 8)
  40. #define BitmapFormatScanlineUnitMask    (3L << 12)
  41.  
  42. #define BitmapFormatByteOrderLSB        (0)
  43. #define BitmapFormatByteOrderMSB        (1L << 0)
  44. #define BitmapFormatBitOrderLSB         (0)
  45. #define BitmapFormatBitOrderMSB         (1L << 1)
  46.  
  47. #define BitmapFormatImageRectMin        (0L << 2)
  48. #define BitmapFormatImageRectMaxWidth   (1L << 2)
  49. #define BitmapFormatImageRectMax        (2L << 2)
  50.  
  51. #define BitmapFormatScanlinePad8        (0L << 8)
  52. #define BitmapFormatScanlinePad16       (1L << 8)
  53. #define BitmapFormatScanlinePad32       (2L << 8)
  54. #define BitmapFormatScanlinePad64       (3L << 8)
  55.  
  56. #define BitmapFormatScanlineUnit8       (0L << 12)
  57. #define BitmapFormatScanlineUnit16      (1L << 12)
  58. #define BitmapFormatScanlineUnit32      (2L << 12)
  59. #define BitmapFormatScanlineUnit64      (3L << 12)
  60.  
  61. #define BitmapFormatMaskByte            (1L << 0)
  62. #define BitmapFormatMaskBit             (1L << 1)
  63. #define BitmapFormatMaskImageRectangle  (1L << 2)
  64. #define BitmapFormatMaskScanLinePad     (1L << 3)
  65. #define BitmapFormatMaskScanLineUnit    (1L << 4)
  66.  
  67. typedef unsigned long  fsBitmapFormat;
  68. typedef unsigned long  fsBitmapFormatMask;
  69.  
  70. #endif    /* _FSMASKS_H_ */
  71.