]>
Commit | Line | Data |
---|---|---|
7c5a378f DE |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/trackingrectmanager.h | |
3 | // Purpose: wxCocoaTrackingRectManager | |
4 | // Notes: Source in window.mm | |
5 | // Author: David Elliott <dfe@cox.net> | |
6 | // Modified by: | |
7 | // Created: 2007/05/02 | |
7c5a378f DE |
8 | // Copyright: (c) 2007 Software 2000 Ltd. |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | #ifndef __WX_COCOA_TRACKINGRECTMANAGER_H__ | |
12 | #define __WX_COCOA_TRACKINGRECTMANAGER_H__ | |
13 | ||
14 | #include <CoreFoundation/CFRunLoop.h> | |
15 | ||
8ea3a63e DE |
16 | #define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect") |
17 | ||
7c5a378f DE |
18 | class wxCocoaTrackingRectManager |
19 | { | |
c0c133e1 | 20 | wxDECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager); |
7c5a378f DE |
21 | public: |
22 | wxCocoaTrackingRectManager(wxWindow *window); | |
23 | void ClearTrackingRect(); | |
24 | void BuildTrackingRect(); | |
ea29564c | 25 | void RebuildTrackingRectIfNeeded(); |
7c5a378f DE |
26 | void RebuildTrackingRect(); |
27 | bool IsOwnerOfEvent(NSEvent *anEvent); | |
28 | ~wxCocoaTrackingRectManager(); | |
29 | void BeginSynthesizingEvents(); | |
30 | void StopSynthesizingEvents(); | |
31 | protected: | |
32 | wxWindow *m_window; | |
33 | bool m_isTrackingRectActive; | |
29fbbf89 | 34 | NSInteger m_trackingRectTag; |
ea29564c | 35 | NSRect m_trackingRectInWindowCoordinates; |
7c5a378f DE |
36 | private: |
37 | wxCocoaTrackingRectManager(); | |
38 | }; | |
39 | ||
40 | #endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__ |