home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / include / pixmapstr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-09  |  2.0 KB  |  58 lines

  1. /* $XConsortium: pixmapstr.h,v 5.0 89/06/09 15:00:35 keith Exp $ */
  2. /***********************************************************
  3. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  4. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Digital or MIT not be
  13. used in advertising or publicity pertaining to distribution of the
  14. software without specific, written prior permission.  
  15.  
  16. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  18. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22. SOFTWARE.
  23.  
  24. ******************************************************************/
  25.  
  26. #ifndef PIXMAPSTRUCT_H
  27. #define PIXMAPSTRUCT_H
  28. #include "pixmap.h"
  29. #include "screenint.h"
  30. #include "miscstruct.h"
  31.  
  32. typedef struct _Drawable {
  33.     unsigned char    type;    /* DRAWABLE_<type> */
  34.     unsigned char    class;    /* specific to type */
  35.     unsigned char    depth;
  36.     unsigned char    bitsPerPixel;
  37.     unsigned long    id;    /* resource id */
  38.     short        x;    /* window: screen absolute, pixmap: 0 */
  39.     short        y;    /* window: screen absolute, pixmap: 0 */
  40.     unsigned short    width;
  41.     unsigned short    height;
  42.     ScreenPtr        pScreen;
  43.     unsigned long    serialNumber;
  44. } DrawableRec;
  45.  
  46. /*
  47.  * PIXMAP -- device dependent 
  48.  */
  49.  
  50. typedef struct _Pixmap {
  51.     DrawableRec        drawable;
  52.     int            refcnt;
  53.     int            devKind;
  54.     DevUnion        devPrivate;
  55. } PixmapRec;
  56.  
  57. #endif /* PIXMAPSTRUCT_H */
  58.