]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/trackable.tex
Added wxRect::Intersect() documentation (patch 1868322 from Laurent Humbertclaude).
[wxWidgets.git] / docs / latex / wx / trackable.tex
1
2 \section{\class{wxTrackableBase}}\label{wxtrackablebase}
3
4 Add-on base class for a trackable object. This class maintains
5 an internal linked list of classes of type wxTrackerNode and
6 calls OnObjectDestroy() on them if this object is destroyed.
7 The most common usage is by using the \helpref{wxWeakRef<T>}{wxweakref}
8 class template which automates this. This class has no public
9 API. Its only use is by deriving another class from it to
10 make it trackable.
11
12 \begin{verbatim}
13 class MyClass: public Foo, public TrackableBase
14 {
15 // whatever
16 }
17
18 typedef wxWeakRef<MyClass> MyClassRef;
19 \end{verbatim}
20
21 \wxheading{Derived from}
22
23 No base class
24
25 \wxheading{Include files}
26
27 <tracker.h>
28
29 \wxheading{Data structures}
30
31
32 \section{\class{wxTrackable}}\label{wxtrackable}
33
34 The only difference to \helpref{wxTrackableBase}{wxtrackablebase} is
35 that this class adds a virtual table to enable dynamic\_cast query for
36 wxTrackable.
37
38 \wxheading{Derived from}
39
40 \helpref{wxTrackableBase}{wxtrackablebase}
41
42 \wxheading{Include files}
43
44 <tracker.h>
45
46 \wxheading{Data structures}
47
48