]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/tracker.h
Add test for absence of events from wxSpinCtrlDouble ctor.
[wxWidgets.git] / interface / wx / tracker.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: tracker.h
e54c96f1 3// Purpose: interface of wxTrackable
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxTrackable
7c913512 10
7977b62a
BP
11 Add-on base class for a trackable object. This class maintains an internal
12 linked list of classes of type wxTrackerNode and calls OnObjectDestroy() on
13 them if this object is destroyed. The most common usage is by using the
14 wxWeakRef<T> class template which automates this. This class has no public
15 API. Its only use is by deriving another class from it to make it trackable.
7c913512 16
23324ae1
FM
17 @code
18 class MyClass: public Foo, public wxTrackable
19 {
7977b62a 20 // whatever
23324ae1 21 }
7c913512 22
7977b62a 23 typedef wxWeakRef<MyClass> MyClassRef;
23324ae1 24 @endcode
7c913512 25
23324ae1 26 @library{wxbase}
7977b62a 27 @category{smartpointers}
23324ae1 28*/
7c913512 29class wxTrackable
23324ae1
FM
30{
31public:
7c913512 32
23324ae1 33};
e54c96f1 34