home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netpbma.zip / pnm / x11wd.h < prev    next >
C/C++ Source or Header  |  1993-10-04  |  2KB  |  59 lines

  1. /* x11wd.h - the following defs are taken from various X.V11R2 header files
  2. */
  3.  
  4. #ifndef _X11WD_H_
  5. #define _X11WD_H_
  6.  
  7. #define LSBFirst    0
  8. #define MSBFirst    1
  9.  
  10. #define XYBitmap    0
  11. #define XYPixmap    1
  12. #define ZPixmap        2
  13.  
  14. #define StaticGray    0
  15. #define GrayScale    1
  16. #define StaticColor    2
  17. #define PseudoColor    3
  18. #define TrueColor    4
  19. #define DirectColor    5
  20.  
  21. typedef unsigned long xwdval;
  22. #define X11WD_FILE_VERSION 7
  23. typedef struct {
  24.     xwdval header_size;        /* Size of the entire file header (bytes). */
  25.     xwdval file_version;    /* X11WD_FILE_VERSION */
  26.     xwdval pixmap_format;    /* Pixmap format */
  27.     xwdval pixmap_depth;    /* Pixmap depth */
  28.     xwdval pixmap_width;    /* Pixmap width */
  29.     xwdval pixmap_height;    /* Pixmap height */
  30.     xwdval xoffset;        /* Bitmap x offset */
  31.     xwdval byte_order;        /* MSBFirst, LSBFirst */
  32.     xwdval bitmap_unit;        /* Bitmap unit */
  33.     xwdval bitmap_bit_order;    /* MSBFirst, LSBFirst */
  34.     xwdval bitmap_pad;        /* Bitmap scanline pad */
  35.     xwdval bits_per_pixel;    /* Bits per pixel */
  36.     xwdval bytes_per_line;    /* Bytes per scanline */
  37.     xwdval visual_class;    /* Class of colormap */
  38.     xwdval red_mask;        /* Z red mask */
  39.     xwdval green_mask;        /* Z green mask */
  40.     xwdval blue_mask;        /* Z blue mask */
  41.     xwdval bits_per_rgb;    /* Log base 2 of distinct color values */
  42.     xwdval colormap_entries;    /* Number of entries in colormap */
  43.     xwdval ncolors;        /* Number of Color structures */
  44.     xwdval window_width;    /* Window width */
  45.     xwdval window_height;    /* Window height */
  46.     long window_x;        /* Window upper left X coordinate */
  47.     long window_y;        /* Window upper left Y coordinate */
  48.     xwdval window_bdrwidth;    /* Window border width */
  49.     } X11WDFileHeader;
  50.  
  51. typedef struct {
  52.     unsigned long num;
  53.     unsigned short red, green, blue;
  54.     char flags;            /* do_red, do_green, do_blue */
  55.     char pad;
  56.     } X11XColor;
  57.  
  58. #endif /*_X11WD_H_*/
  59.