]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/trackable.tex
no changes, just come cleanup and more comments
[wxWidgets.git] / docs / latex / wx / trackable.tex
CommitLineData
cc6ceca7 1\section{\class{wxTrackable}}\label{wxtrackable}
a6acecec
RR
2
3Add-on base class for a trackable object. This class maintains
4an internal linked list of classes of type wxTrackerNode and
5calls OnObjectDestroy() on them if this object is destroyed.
6The most common usage is by using the \helpref{wxWeakRef<T>}{wxweakref}
7class template which automates this. This class has no public
8API. Its only use is by deriving another class from it to
9make it trackable.
10
11\begin{verbatim}
cc6ceca7 12class MyClass: public Foo, public wxTrackable
a6acecec
RR
13{
14 // whatever
15}
16
17typedef wxWeakRef<MyClass> MyClassRef;
18\end{verbatim}
19
20\wxheading{Derived from}
21
22No base class
23
24\wxheading{Include files}
25
26<tracker.h>
27
28\wxheading{Data structures}
29