home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / defs / dispbox.def < prev    next >
Text File  |  1989-11-09  |  3KB  |  77 lines

  1. #ifndef lint
  2. static char SccsDispboxId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Dispbox.def
  6.  * Purpose:    Declare and initialize main image window parameters
  7.  * Modified:    {0} Michael VanHilst    initial version          19 May 1989
  8.  *        {n} <who> -- <does what> -- <when>
  9.  */
  10.  
  11. struct windowRec dispbox = {
  12.  0,         /* Window ID;            window's nom de plume (ptr) */
  13.  NULL,         /* Display *display;        display server handle */
  14.  0,        /* int screen;            display screen number */
  15.  0,        /* Window parent;        parent of this window */
  16.  0,        /* unsigned int depth;        window depth */
  17.  0,         /* int active;            flag to say window is there */
  18.  0, 0,         /* int x, y;            upper left screen coords */
  19.  512, 512,    /* unsigned int width, height;    window width (-1 border) */
  20.  1,        /* unsigned int bdrwidth;    width of the border */
  21.  2,        /* int bdrtotal;        width added by both borders */
  22.  0, 0,        /* int rightx, lowery;        useful screen coordinates */
  23.  0, 0,        /* int xzero, yzero;        u-l corner of drawing area */
  24.  0, 0,        /* int xwidth, yheight;        size of drawing area */
  25.  1,        /* int moored;            move window with disp box */
  26.  0,        /* int data_size;        byte size of image data buf */
  27.  {        /* XImage image;        for XPutImage */
  28.    512, 512,    /*  int width, height;            0, 0 */
  29.    0,        /*  int xoffset;            0 */
  30.    ZPixmap,    /*  int format;                XYBitmap, XY/ZPixmap */
  31.    NULL,    /*  char *data;                NULL */
  32.    LSBFirst,    /*  int byte_order;            LSBFirst */
  33.    8,        /*  int bitmap_unit;            8 */
  34.    LSBFirst,    /*  int bitmap_bit_order;        LSBFirst */
  35.    8,        /*  int bitmap_pad;            8 */
  36.    8,        /*  int depth;                1 or runtime set */
  37.    512,        /*  int bytes_per_line;            0 */
  38.    8,        /*  int bits_per_pixel;            1 or 8 */
  39.    0, 0, 0,    /*  unsigned long red_mask, green_mask, blue_mask; runtime */
  40.    NULL,    /*  char *obdata;            NULL */
  41.    { 0 }    /*  { struct func f };            { NULL } */
  42.  },
  43.  NULL,         /* Visual *visual;        visual type */
  44.         /* unsigned long valuemask;    mask to set attributes */
  45.  CWBackPixel | CWBorderPixel | CWColormap | CWCursor | CWEventMask |
  46.   CWWinGravity,
  47.  {        /* XSetWindowAttributes attrs;    for XCreateWindow */
  48.    0,        /*  Pixmap background_pixmap;        CWBackPixmap */
  49.    0,        /*  unsigned long background_pixel;    CWBackPixel */
  50.    0,        /*  Pixmap border_pixmap;        CWBorderPixmap */
  51.    0,        /*  unsigned long border_pixel        CWBorderPixel */
  52.    0,        /*  int bit_gravity;            CWBitGravity */
  53.         /*  int win_gravity;            CWWinGravity */
  54.    NorthWestGravity,
  55.    0,        /*  backing_store;            CWBackingStore */
  56.    0,        /*  unsigned long backing_planes;    CWBackingPlanes */
  57.    0,        /*  unsigned long backing_pixel;    CWBackingPixel */
  58.    0,        /*  Bool save_under;            CWSaveUnder */
  59.         /*  long event_mask;            CWEventMask */
  60.    ButtonPressMask | ButtonReleaseMask | ExposureMask | KeyPressMask |
  61.     PointerMotionMask,
  62.    0,        /*  long do_not_propogate_mask;        CWDontPropagate */
  63.    0,        /*  Bool override_redirect;        CWOverrideRedirect */
  64.    0,        /*  Colormap colormap;            CWColormap */
  65.    0 },        /*  Cursor cursor;            CWCursor */
  66.          /* XSizeHints hints;        for XSetNormalHints */
  67.  { 0,        /*  long flags;                defined fields */
  68.    1, 0,    /*  int x, y;                USPosition PPosition */
  69.    512, 512,    /*  int width, height;            USSize PSize */
  70.    400, 256,    /*  int min_width, min_height;        PMinSize */
  71.    0, 0,    /*  int max_width, max_height;        PMaxSize */
  72.    0, 0,    /*  int width_inc, height_inc;        PResizeInc */
  73.    { 0 },    /*  { int min_aspect.x, min_aspect.y }    PAspect */
  74.    { 0 }    /*  { int max_aspect.x, max_aspect.y }     x/y=ratio */
  75.  }
  76. };
  77.