home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / c / intuitionpp / ipp / imessage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-05  |  1.3 KB  |  64 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. ///////////////////////////////////////////////////////////////////////////////
  3. ///////////////////                                        ////////////////////
  4. ///////////////////           file : imessage.h            ////////////////////
  5. ///////////////////                                        ////////////////////
  6. ///////////////////////////////////////////////////////////////////////////////
  7. ///////////////////////////////////////////////////////////////////////////////
  8. //
  9. //    Class IMessage :
  10. //
  11. //        - Encapsulation of IntuiMessage for C++
  12. //
  13. //
  14. //    Class IEvent :
  15. //
  16. //        - Simple event handling for 'MsgWindow'
  17. //
  18.  
  19.  
  20. #ifndef __IMESSAGE__
  21. #define __IMESSAGE__
  22.  
  23. #include <intuition/intuition.h>
  24.  
  25. class IMessage
  26. {
  27. public:
  28.     IMessage();
  29.     ~IMessage();
  30.  
  31.     void clear();
  32.     ULONG iclass;
  33.     ULONG icode;
  34.     ULONG iqualifier;
  35.     void * iaddress;
  36.     int imousex;
  37.     int imousey;
  38.     ULONG iseconds;
  39.     ULONG imicros;
  40. };
  41.  
  42. class IEvent
  43. {
  44. protected:
  45.     void nothing();
  46. public:
  47.     IEvent();
  48.     ~IEvent();
  49.  
  50.     void clear();
  51.     ULONG eclass;
  52.     ULONG ecode;
  53.     ULONG equalifier;
  54.     void *eitem;
  55.     void (*ecallback)(IMessage *);
  56.     IEvent *nextevent;
  57. };
  58.  
  59. #define NOMESSAGE    IDCMP_NOMESSAGE
  60. #define IDCMP_NOMESSAGE        0x00000000
  61.  
  62. #endif //__IMESSAGE__
  63.  
  64.