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

  1. #ifndef lint
  2. static char SccsDesktopId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Desktop.def
  6.  * Purpose:    Declare and initialize desktop window parameters
  7.  * Modified:    {0} Michael VanHilst    initial version          19 May 1989
  8.  *        {n} <who> -- <does what> -- <when>
  9.  */
  10.  
  11. struct windowRec desktop = {
  12.  0,         /* Window ID;            window's nom de plume (ptr) */
  13.  0,         /* 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.  0, 0,        /* unsigned int width, height;    window width (-1 border) */
  20.  2,        /* unsigned int bdrwidth;    width of the border */
  21.  4,        /* int bdrtotal;        width added by both borders */
  22.  0, 0,        /* int rightx, lowery;        useful screen coordinates */
  23.  1, 1,        /* int xzero, yzero;        u-l corner of drawing area */
  24.  0, 0,        /* int xwidth, yheight;        size of drawing area */
  25.  0,         /* int moored;            move window with disp box */
  26.  0,        /* int data_size;        byte size of image data buf */
  27.  { 0 },        /* XImage image;        for XPutImage */
  28.  NULL,         /* Visual *visual;        visual type */
  29.         /* unsigned long valuemask;    mask to set attributes */
  30.  CWBackPixel | CWBorderPixel | CWColormap | CWCursor | CWEventMask,
  31.  {        /* XSetWindowAttributes attrs;    for XCreateWindow */
  32.    0,        /*  Pixmap background_pixmap;        CWBackPixmap */
  33.    0,        /*  unsigned long background_pixel;    CWBackPixel */
  34.    0,        /*  Pixmap border_pixmap;        CWBorderPixmap */
  35.    0,        /*  unsigned long border_pixel        CWBorderPixel */
  36.    0,        /*  int bit_gravity;            CWBitGravity */
  37.    0,        /*  int win_gravity;            CWWinGravity */
  38.    0,        /*  backing_store;            CWBackingStore */
  39.    0,        /*  unsigned long backing_planes;    CWBackingPlanes */
  40.    0,        /*  unsigned long backing_pixel;    CWBackingPixel */
  41.    0,        /*  Bool save_under;            CWSaveUnder */
  42.         /*  long event_mask;            CWEventMask */
  43.    ExposureMask | KeyPressMask | StructureNotifyMask,
  44.    0,        /*  long do_not_propogate_mask;        CWDontPropagate */
  45.    0,        /*  Bool override_redirect;        CWOverrideRedirect */
  46.    0,        /*  Colormap colormap;            CWColormap */
  47.    0 },        /*  Cursor cursor;            CWCursor */
  48.  {         /* XSizeHints size_hints;    for XSetNormalHints */
  49.         /*  long flags;                defined fields */
  50.    PSize | PMinSize,
  51.    0, 0,    /*  int x, y;                USPosition PPosition */
  52.    518, 706,    /*  int width, height;            USSize PSize */
  53.    406, 456,    /*  int min_width, min_height;        PMinSize */
  54.    0, 0,    /*  int max_width, max_height;        PMaxSize */
  55.    0, 0,    /*  int width_inc, height_inc;        PResizeInc */
  56.    { 0 },    /*  { int min_aspect.x, min_aspect.y }    PAspect */
  57.    { 0 } }    /*  { int max_aspect.x, max_aspect.y }     x/y=ratio */
  58. };
  59.