shapeconst.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /************************************************************
  2. Copyright 1989, 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. ********************************************************/
  20. #ifndef _SHAPECONST_H_
  21. #define _SHAPECONST_H_
  22. /*
  23. * Protocol requests constants and alignment values
  24. * These would really be in SHAPE's X.h and Xproto.h equivalents
  25. */
  26. #define SHAPENAME "SHAPE"
  27. #define SHAPE_MAJOR_VERSION 1 /* current version numbers */
  28. #define SHAPE_MINOR_VERSION 1
  29. #define ShapeSet 0
  30. #define ShapeUnion 1
  31. #define ShapeIntersect 2
  32. #define ShapeSubtract 3
  33. #define ShapeInvert 4
  34. #define ShapeBounding 0
  35. #define ShapeClip 1
  36. #define ShapeInput 2
  37. #define ShapeNotifyMask (1L << 0)
  38. #define ShapeNotify 0
  39. #define ShapeNumberEvents (ShapeNotify + 1)
  40. #endif /* _SHAPECONST_H_ */