/Xext/panoramiX.h

https://github.com/dmitriy103/androix-xserver · C Header · 78 lines · 35 code · 12 blank · 31 comment · 4 complexity · 8bf926c160ef1790a6581c8f541a1ca9 MD5 · raw file

  1. /*****************************************************************
  2. Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software.
  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
  13. DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
  14. BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
  15. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
  16. IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  17. Except as contained in this notice, the name of Digital Equipment Corporation
  18. shall not be used in advertising or otherwise to promote the sale, use or other
  19. dealings in this Software without prior written authorization from Digital
  20. Equipment Corporation.
  21. ******************************************************************/
  22. /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
  23. /*
  24. * PanoramiX definitions
  25. */
  26. #ifdef HAVE_DIX_CONFIG_H
  27. #include <dix-config.h>
  28. #endif
  29. #ifndef _PANORAMIX_H_
  30. #define _PANORAMIX_H_
  31. #define _PANORAMIX_SERVER
  32. #include <X11/extensions/panoramiXproto.h>
  33. #undef _PANORAMIX_SERVER
  34. #include "gcstruct.h"
  35. typedef struct _PanoramiXInfo {
  36. XID id ;
  37. } PanoramiXInfo;
  38. typedef struct {
  39. PanoramiXInfo info[MAXSCREENS];
  40. RESTYPE type;
  41. union {
  42. struct {
  43. char visibility;
  44. char class;
  45. char root;
  46. } win;
  47. struct {
  48. Bool shared;
  49. } pix;
  50. struct {
  51. Bool root;
  52. } pict;
  53. char raw_data[4];
  54. } u;
  55. } PanoramiXRes;
  56. #define FOR_NSCREENS_FORWARD(j) for(j = 0; j < PanoramiXNumScreens; j++)
  57. #define FOR_NSCREENS_BACKWARD(j) for(j = PanoramiXNumScreens - 1; j >= 0; j--)
  58. #define FOR_NSCREENS(j) FOR_NSCREENS_FORWARD(j)
  59. #define IS_SHARED_PIXMAP(r) (((r)->type == XRT_PIXMAP) && (r)->u.pix.shared)
  60. #endif /* _PANORAMIX_H_ */