]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/tracker.h
Applied #15226 with modifications: wxRichTextCtrl: Implement setting properties with...
[wxWidgets.git] / interface / wx / tracker.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tracker.h
3 // Purpose: interface of wxTrackable
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7
8 /**
9 @class wxTrackable
10
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.
16
17 @code
18 class MyClass: public Foo, public wxTrackable
19 {
20 // whatever
21 }
22
23 typedef wxWeakRef<MyClass> MyClassRef;
24 @endcode
25
26 @library{wxbase}
27 @category{smartpointers}
28 */
29 class wxTrackable
30 {
31 public:
32
33 };
34