home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / DropTransP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.5 KB  |  110 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: DropTransP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:38:32 $ */
  9. /*
  10. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11.  
  12. #ifndef _XmDropTransferP_h
  13. #define _XmDropTransferP_h
  14.  
  15. #include <Xm/DropTrans.h>
  16. #include <Xm/XmP.h>
  17.  
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /*  DropTransfer class structure  */
  24.  
  25. #ifdef _NO_PROTO
  26. typedef Widget (*XmDropTransferStartTransferProc)();
  27. typedef void (*XmDropTransferAddTransferProc)();
  28. #else
  29. typedef Widget (*XmDropTransferStartTransferProc)(Widget,
  30.     ArgList, Cardinal);
  31. typedef void (*XmDropTransferAddTransferProc)(Widget,
  32.     XmDropTransferEntry, Cardinal);
  33. #endif
  34.  
  35. typedef struct _XmDropTransferClassPart
  36. {
  37.     XmDropTransferStartTransferProc    start_drop_transfer;
  38.     XmDropTransferAddTransferProc    add_drop_transfer;
  39.     XtPointer extension;
  40. } XmDropTransferClassPart;
  41.  
  42. /*  Full class record declaration */
  43.  
  44. typedef struct _XmDropTransferClassRec
  45. {
  46.    ObjectClassPart        object_class;
  47.    XmDropTransferClassPart dropTransfer_class;
  48. } XmDropTransferClassRec;
  49.  
  50. externalref XmDropTransferClassRec xmDropTransferClassRec;
  51.  
  52.  
  53. typedef struct _XmDropTransferListRec {
  54.     XmDropTransferEntry    transfer_list;
  55.     Cardinal        num_transfers;
  56. } XmDropTransferListRec, * XmDropTransferList;
  57.  
  58.  
  59. /*  The DropTransfer instance record  */
  60.  
  61. typedef struct _XmDropTransferPart
  62. {
  63.     XmDropTransferEntry        drop_transfers;
  64.     Cardinal            num_drop_transfers;
  65.     Atom            selection;
  66.     Widget            dragContext;
  67.     Time            timestamp;
  68.     Boolean            incremental;
  69.     Window            source_window;
  70.     unsigned int        tag;
  71.     XtSelectionCallbackProc     transfer_callback;
  72.     unsigned char        transfer_status;
  73.  
  74.     Atom             motif_drop_atom;
  75.     
  76.     XmDropTransferList        drop_transfer_lists;
  77.     Cardinal            num_drop_transfer_lists;
  78.     Cardinal            cur_drop_transfer_list;
  79.     Cardinal            cur_xfer;
  80.     Atom *            cur_targets;
  81.     XtPointer *            cur_client_data;
  82. } XmDropTransferPart;
  83.  
  84. /*  Full instance record declaration  */
  85.  
  86. typedef struct _XmDropTransferRec
  87. {
  88.     ObjectPart    object;
  89.     XmDropTransferPart dropTransfer;
  90. } XmDropTransferRec;
  91.  
  92.  
  93. /********    Private Function Declarations    ********/
  94. #ifdef _NO_PROTO
  95.  
  96.  
  97. #else
  98.  
  99.  
  100. #endif /* _NO_PROTO */
  101. /********    End Private Function Declarations    ********/
  102.  
  103.  
  104. #if defined(__cplusplus) || defined(c_plusplus)
  105. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  106. #endif
  107.  
  108. #endif /* _XmDropTransferP_h */
  109. /* DON'T ADD ANYTHING AFTER THIS #endif */
  110.