]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/cocoa/trackingrectmanager.h
Remove some old redundant code
[wxWidgets.git] / include / wx / cocoa / trackingrectmanager.h
... / ...
CommitLineData
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
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
16#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect")
17
18class wxCocoaTrackingRectManager
19{
20 wxDECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager);
21public:
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();
31protected:
32 wxWindow *m_window;
33 bool m_isTrackingRectActive;
34 NSInteger m_trackingRectTag;
35 NSRect m_trackingRectInWindowCoordinates;
36private:
37 wxCocoaTrackingRectManager();
38};
39
40#endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__