home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / Display.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  1.5 KB  |  72 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: Display.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:36:20 $ */
  9. /*
  10. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11.  
  12. #ifndef _XmDisplay_h
  13. #define _XmDisplay_h
  14.  
  15. #include <Xm/Xm.h>
  16. #include <X11/Shell.h>
  17. #include <Xm/DragC.h>
  18. #include <Xm/DropSMgr.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. #ifndef XmIsDisplay
  25. #define XmIsDisplay(w) (XtIsSubclass(w, xmDisplayClass))
  26. #endif /* XmIsXmDisplay */
  27.  
  28. enum {
  29.     XmDRAG_NONE,
  30.     XmDRAG_DROP_ONLY,
  31.     XmDRAG_PREFER_PREREGISTER,
  32.     XmDRAG_PREREGISTER,
  33.     XmDRAG_PREFER_DYNAMIC,
  34.     XmDRAG_DYNAMIC,
  35.     XmDRAG_PREFER_RECEIVER
  36. };
  37.  
  38. /* Class record constants */
  39.  
  40. typedef struct _XmDisplayRec *XmDisplay;
  41. typedef struct _XmDisplayClassRec *XmDisplayClass;
  42. externalref     WidgetClass xmDisplayClass;
  43.  
  44. #define XmGetDisplay(w) XmGetXmDisplay(XtDisplayOfObject(w))
  45.  
  46.  
  47. /********    Public Function Declarations    ********/
  48. #ifdef _NO_PROTO
  49.  
  50. extern Widget XmGetDragContext() ;
  51. extern Widget XmGetXmDisplay() ;
  52.  
  53. #else
  54.  
  55. extern Widget XmGetDragContext( 
  56.                         Widget w,
  57.                         Time time) ;
  58. extern Widget XmGetXmDisplay( 
  59.                         Display *display) ;
  60.  
  61. #endif /* _NO_PROTO */
  62. /********    End Public Function Declarations    ********/
  63.  
  64.  
  65. #ifdef __cplusplus
  66. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  67. #endif
  68.  
  69. #endif /* _XmDisplay_h */
  70.  
  71.  
  72.