home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / dec / ws / ws.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-08  |  2.6 KB  |  85 lines

  1. /***********************************************************
  2. Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
  3. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its 
  8. documentation for any purpose and without fee is hereby granted, 
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in 
  11. supporting documentation, and that the names of Digital or MIT not be
  12. used in advertising or publicity pertaining to distribution of the
  13. software without specific, written prior permission.  
  14.  
  15. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  16. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  17. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  18. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  20. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21. SOFTWARE.
  22.  
  23. ******************************************************************/
  24. /* $XConsortium: ws.h,v 1.2 91/07/08 11:16:30 keith Exp $ */
  25.  
  26. #define NOMAPYET        (ColormapPtr) 1
  27.  
  28. #define  ARG_DPIX    (1 << 0)
  29. #define  ARG_DPIY    (1 << 1)
  30. #define  ARG_DPI    (1 << 2)
  31. #define  ARG_BLACKVALUE    (1 << 3)
  32. #define  ARG_WHITEVALUE    (1 << 4)
  33. #define     ARG_CLASS    (1 << 5)
  34. #define     ARG_EDGE_L    (1 << 6)
  35. #define     ARG_EDGE_R    (1 << 7)
  36. #define     ARG_EDGE_T    (1 << 8)
  37. #define     ARG_EDGE_B    (1 << 9)
  38. #define  ARG_MONITOR    (1 << 10)
  39.  
  40. typedef struct  {
  41.     int flags;
  42.     int dpix;
  43.     int dpiy;
  44.     int dpi;
  45.     int class;
  46.     char  *blackValue;
  47.     char  *whiteValue;
  48.     int edge_left;
  49.     int edge_right;
  50.     int edge_top;
  51.     int edge_bottom;
  52.     ws_monitor monitor;
  53. } ScreenArgsRec;
  54.  
  55. typedef struct {
  56.     unsigned int        currentmask;     /* saved plane mask */
  57.     BoxPtr            cursorConstraint;
  58.     ws_screen_descriptor    *screenDesc;
  59.     ColormapPtr        pInstalledMap;
  60.     ScreenArgsRec         *args;
  61.     Bool            (*CloseScreen)();
  62. } wsScreenPrivate;
  63.  
  64. typedef struct {
  65.     char *moduleID;    /* graphic module ID */
  66.     Bool (*createProc)();    /* create procedure for this hardware type */
  67. } wsAcceleratorTypes;
  68.  
  69. extern void wsStoreColors();
  70. extern void wsInstallColormap();
  71. extern void wsUninstallColormap();
  72. extern int wsListInstalledColormaps();
  73. extern int wsScreenPrivateIndex;
  74. extern Bool wsSaveScreen();
  75. extern int dpix, dpiy, dpi;
  76.  
  77. extern ScreenArgsRec screenArgs[];
  78.  
  79. extern ScreenPtr wsScreens[];
  80. extern int class;
  81. extern int fdPM;   /* this is the file descriptor for screen so
  82.             can do IOCTL to colormap */
  83. extern int ws_cpu;
  84.  
  85.