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 class wxCocoaTrackingRectManager
19 DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager
)
21 wxCocoaTrackingRectManager(wxWindow
*window
);
22 void ClearTrackingRect();
23 void BuildTrackingRect();
24 void RebuildTrackingRect();
25 bool IsOwnerOfEvent(NSEvent
*anEvent
);
26 ~wxCocoaTrackingRectManager();
27 void BeginSynthesizingEvents();
28 void StopSynthesizingEvents();
31 bool m_isTrackingRectActive
;
32 int m_trackingRectTag
;
33 CFRunLoopObserverRef m_runLoopObserver
;
35 wxCocoaTrackingRectManager();
38 #endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__