]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/trackingrectmanager.h
set eol-style
[wxWidgets.git] / include / wx / cocoa / trackingrectmanager.h
CommitLineData
7c5a378f
DE
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// RCS-ID: $Id$
9// Copyright: (c) 2007 Software 2000 Ltd.
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12#ifndef __WX_COCOA_TRACKINGRECTMANAGER_H__
13#define __WX_COCOA_TRACKINGRECTMANAGER_H__
14
15#include <CoreFoundation/CFRunLoop.h>
16
17class wxCocoaTrackingRectManager
18{
19 DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager)
20public:
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();
29protected:
30 wxWindow *m_window;
31 bool m_isTrackingRectActive;
32 int m_trackingRectTag;
33 CFRunLoopObserverRef m_runLoopObserver;
34private:
35 wxCocoaTrackingRectManager();
36};
37
38#endif // ndef __WX_COCOA_TRACKINGRECTMANAGER_H__