1: #include <X/mit-copyright.h>
   2: 
   3: /* Copyright    Massachusetts Institute of Technology    1985	*/
   4: /* $Header: Xdev.h,v 10.5 86/02/01 15:15:22 tony Rel $ */
   5: 
   6: /* Definitions for device-dependent interfaces */
   7: 
   8: typedef struct _device {
   9:     short id;       /* 1=VS100, 2=QVSS, 3=QDSS */
  10:     short width;        /* screen width */
  11:     short height;       /* screen height */
  12:     short planes;       /* number of bit planes */
  13:     unsigned short entries; /* number of usable color map entries */
  14:     vsCursor *mouse;    /* mouse position */
  15:     vsBox *mbox;        /* mouse motion box */
  16:     vsEventQueue *queue;    /* event queue header */
  17: } DEVICE;
  18: 
  19: typedef struct _clip {      /* component order optimized for WGA */
  20:     short left;
  21:     short top;
  22:     short width;
  23:     short height;
  24: } CLIP;
  25: 
  26: typedef struct _bitmap {
  27:     short width;        /* in pixels */
  28:     short height;       /* in pixels */
  29:     short refcnt;       /* reference count */
  30:     char kind;      /* private to device */
  31:     caddr_t data;       /* private to device */
  32: } BITMAP;
  33: 
  34: typedef struct _pixmap {
  35:     short width;        /* in pixels */
  36:     short height;       /* in pixels */
  37:     short refcnt;       /* reference count */
  38:     char tile;      /* 0: not a tile, 1: tile */
  39:     char kind;      /* private to device */
  40:     caddr_t data;       /* private to device */
  41: } PIXMAP;
  42: 
  43: typedef struct _font {
  44:     char *name;     /* file name */
  45:     short first;        /* first defined character */
  46:     short last;     /* last defined character */
  47:     short space;        /* space character */
  48:     short height;       /* in pixels */
  49:     short avg_width;    /* average of all defined characters */
  50:     short fixed;        /* 1: all characters are defined same width */
  51:     short base;     /* offset of descenders from bottom */
  52:     short refcnt;       /* reference count */
  53:     caddr_t data;       /* private to device */
  54: } FONT;
  55: 
  56: typedef struct _cursor {
  57:     short width;        /* in pixels */
  58:     short height;       /* in pixels */
  59:     short xoff;     /* tip, as offsets from upper left */
  60:     short yoff;
  61:     short xmin;     /* minimum position of tip */
  62:     short ymin;
  63:     short xmax;     /* maximum position of tip */
  64:     short ymax;
  65:     short refcnt;       /* reference count */
  66:     caddr_t data;       /* private to device */
  67: } CURSOR;
  68: 
  69: /* The minimum and maximum positions depend on the hardware and your desires
  70:  * as to what part of the cursor should remain on screen.  If the full
  71:  * cursor rectangle must always be on screen, then:
  72:  *	xmin = xoff
  73:  *	ymin = yoff
  74:  *	xmax = screen_width - (width - xoff)
  75:  *	ymax = screen_height - (height - yoff)
  76:  * If both the tip and the upper left corner must remain on screen, then:
  77:  *	xmin = xoff
  78:  *	ymin = yoff
  79:  *	xmax = screen_width - 1
  80:  *	ymax = screen_height - 1
  81:  * If only the tip must remain on screen, then:
  82:  *	xmin = 0
  83:  *	ymin = 0
  84:  *	xmax = screen_width - 1
  85:  *	ymax = screen_height - 1
  86:  * If only the upper left corner must remain on screen, then:
  87:  *	xmin = xoff
  88:  *	ymin = yoff
  89:  *	xmax = screen_width + xoff - 1
  90:  *	ymax = screen_height + yoff - 1
  91:  */

Defined struct's

_bitmap defined in line 26; never used
_clip defined in line 19; never used
_cursor defined in line 56; never used
_device defined in line 8; never used
_font defined in line 43; never used
_pixmap defined in line 34; never used

Defined typedef's

BITMAP defined in line 32; used 149 times

Usage of this include

Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 844
Valid CSS Valid XHTML 1.0 Strict