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 DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager
)
23 wxCocoaTrackingRectManager(wxWindow
*window
);
24 void ClearTrackingRect();
25 void BuildTrackingRect();
26 void RebuildTrackingRect();
27 bool IsOwnerOfEvent(NSEvent
*anEvent
);
28 ~wxCocoaTrackingRectManager();
29 void BeginSynthesizingEvents();
30 void StopSynthesizingEvents();
33 bool m_isTrackingRectActive
;
34 int m_trackingRectTag
;
36 wxCocoaTrackingRectManager();
39 #endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__