pixmapstr.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /***********************************************************
  2. Copyright 1987, 1998 The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included in
  9. all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  14. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. Except as contained in this notice, the name of The Open Group shall not be
  17. used in advertising or otherwise to promote the sale, use or other dealings
  18. in this Software without prior written authorization from The Open Group.
  19. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  20. All Rights Reserved
  21. Permission to use, copy, modify, and distribute this software and its
  22. documentation for any purpose and without fee is hereby granted,
  23. provided that the above copyright notice appear in all copies and that
  24. both that copyright notice and this permission notice appear in
  25. supporting documentation, and that the name of Digital not be
  26. used in advertising or publicity pertaining to distribution of the
  27. software without specific, written prior permission.
  28. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  29. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  30. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  31. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  32. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  33. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  34. SOFTWARE.
  35. ******************************************************************/
  36. #ifndef PIXMAPSTRUCT_H
  37. #define PIXMAPSTRUCT_H
  38. #include <X11/Xarch.h>
  39. #include "pixmap.h"
  40. #include "screenint.h"
  41. #include "regionstr.h"
  42. /*
  43. * The padN members are unfortunate ABI BC. See fdo bug #6924.
  44. */
  45. typedef struct _Drawable {
  46. unsigned char type; /* DRAWABLE_<type> */
  47. unsigned char class; /* specific to type */
  48. unsigned char depth;
  49. unsigned char bitsPerPixel;
  50. #if defined(_XSERVER64)
  51. XID pad0;
  52. #endif
  53. XID id; /* resource id */
  54. #if defined(_XSERVER64)
  55. XID pad1;
  56. #endif
  57. short x; /* window: screen absolute, pixmap: 0 */
  58. short y; /* window: screen absolute, pixmap: 0 */
  59. unsigned short width;
  60. unsigned short height;
  61. ScreenPtr pScreen;
  62. unsigned long serialNumber;
  63. } DrawableRec;
  64. /*
  65. * PIXMAP -- device dependent
  66. */
  67. typedef struct _Pixmap {
  68. DrawableRec drawable;
  69. int refcnt;
  70. int devKind;
  71. DevUnion devPrivate;
  72. DevUnion *devPrivates; /* real devPrivates like gcs & windows */
  73. } PixmapRec;
  74. #endif /* PIXMAPSTRUCT_H */