home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / pascal / rehack / event / mouse.hpp < prev   
Encoding:
C/C++ Source or Header  |  1993-06-27  |  1.3 KB  |  56 lines

  1. #ifndef _MOUSE_HPP
  2. #define _MOUSE_HPP
  3.  
  4. // ------------------------------------------------------------------
  5. // File:        MOUSE.HPP
  6. // Path:        ...\REHACK\EVENT\MOUSE.HPP
  7. // Version:        0.01
  8. // Author:        Pat Reilly
  9. // CIS Id:        71333,2764
  10. // Created On:    6/26/93
  11. // Modified On:
  12. // Description:    Mouse class for REHACK. This is just included because I
  13. //        designed this so I could test the window and event queue classes.
  14. //        See MOUSE.TXT for more details.
  15. // Tabs:        4
  16. // ------------------------------------------------------------------
  17.  
  18. #ifndef _EVENT_HPP
  19. #include "..\EVENT\EVENT.HPP"
  20. #endif
  21.  
  22. class Mouse
  23. {
  24. public:
  25.  
  26.     virtual ~Mouse();
  27.  
  28.     static bool isPresent();
  29.     static bool install();
  30.     static void remove();
  31.     static void setBounds(const Rect&);
  32.     static void show();
  33.     static void hide();
  34.     static void moveTo(const Point&);
  35.     static void setCursor(const Point&, void*);
  36.     static void setDblClickInterval(word);
  37.  
  38.     static void getStatus(PosDeviceEvent&);
  39.  
  40. protected:
  41.  
  42.     static void huge callbackFunction();
  43.     static bool checkFor();
  44.  
  45.     static bool  checked;
  46.     static bool  present;
  47.     static bool  installed;
  48.     static Event curEvent;
  49.     static word  dblClickInterval;
  50.     static dword lastLBDown;
  51.     static dword lastRBDown;
  52.     static dword lastCBDown;
  53. };
  54.  
  55. #endif    // __MOUSE_HPP
  56.