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