1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/trackingrectmanager.h
3 // Purpose: wxCocoaTrackingRectManager
4 // Notes: Source in window.mm
5 // Author: David Elliott <dfe@cox.net>
9 // Copyright: (c) 2007 Software 2000 Ltd.
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_TRACKINGRECTMANAGER_H__
13 #define __WX_COCOA_TRACKINGRECTMANAGER_H__
15 #include <CoreFoundation/CFRunLoop.h>
17 #define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect")
19 class wxCocoaTrackingRectManager
21 wxDECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager
);
23 wxCocoaTrackingRectManager(wxWindow
*window
);
24 void ClearTrackingRect();
25 void BuildTrackingRect();
26 void RebuildTrackingRectIfNeeded();
27 void RebuildTrackingRect();
28 bool IsOwnerOfEvent(NSEvent
*anEvent
);
29 ~wxCocoaTrackingRectManager();
30 void BeginSynthesizingEvents();
31 void StopSynthesizingEvents();
34 bool m_isTrackingRectActive
;
35 NSInteger m_trackingRectTag
;
36 NSRect m_trackingRectInWindowCoordinates
;
38 wxCocoaTrackingRectManager();
41 #endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__