XMenuInt.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Copyright Massachusetts Institute of Technology 1985 */
  2. #include "copyright.h"
  3. /*
  4. * XMenu: MIT Project Athena, X Window system menu package
  5. *
  6. * XMenuInternal.h - Internal menu system include file for the
  7. * MIT Project Athena XMenu X window system
  8. * menu package.
  9. *
  10. * Author: Tony Della Fera, DEC
  11. * October, 1985
  12. */
  13. #ifndef _XMenuInternal_h_
  14. #define _XMenuInternal_h_
  15. /* Avoid warnings about redefining NULL by including <stdio.h> first;
  16. the other file which wants to define it (<stddef.h> on Ultrix
  17. systems) can deal if NULL is already defined, but <stdio.h> can't. */
  18. #include <stdio.h>
  19. #include <X11/Xlib.h>
  20. #include "X10.h"
  21. #include "XMenu.h"
  22. #define min(x, y) ((x) <= (y) ? (x) : (y))
  23. #define max(x, y) ((x) >= (y) ? (x) : (y))
  24. #define abs(a) ((a) < 0 ? -(a) : (a))
  25. #define _X_FAILURE -1
  26. #define _SUCCESS 1
  27. #define _FAILURE -1
  28. /*
  29. * XMenu internal event handler variable.
  30. */
  31. extern int (*_XMEventHandler)();
  32. #ifndef Pixel
  33. #define Pixel unsigned long
  34. #endif
  35. /*
  36. * Internal routine declarations.
  37. */
  38. int _XMWinQueInit(); /* No value actually returned. */
  39. int _XMWinQueAddPane();
  40. int _XMWinQueAddSelection();
  41. int _XMWinQueFlush();
  42. XMPane *_XMGetPanePtr();
  43. XMSelect *_XMGetSelectionPtr();
  44. int _XMRecomputeGlobals(); /* No value actually returned. */
  45. int _XMRecomputePane();
  46. int _XMRecomputeSelection();
  47. int _XMTransToOrigin(); /* No value actually returned. */
  48. int _XMRefreshPane(); /* No value actually returned. */
  49. int _XMRefreshSelections(); /* No value actually returned. */
  50. int _XMHighlightSelection(); /* No value actually returned. */
  51. #endif
  52. /* Don't add stuff after this #endif */
  53. /* arch-tag: 00640af1-9386-48b5-a4be-35620b8cd3aa
  54. (do not change this comment) */