]>
git.saurik.com Git - wxWidgets.git/blob - interface/tracker.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxTrackable class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 Add-on base class for a trackable object. This class maintains
14 an internal linked list of classes of type wxTrackerNode and
15 calls OnObjectDestroy() on them if this object is destroyed.
16 The most common usage is by using the wxWeakRefT
17 class template which automates this. This class has no public
18 API. Its only use is by deriving another class from it to
22 class MyClass: public Foo, public wxTrackable
27 typedef wxWeakRefMyClass MyClassRef;