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