]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/delgrend.tex
Introduced the ability to size a book control based on the currently selected page
[wxWidgets.git] / docs / latex / wx / delgrend.tex
CommitLineData
bc51e42e
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: delgrend.tex
3%% Purpose: wxDelegateRendererNative documentation
4%% Author: Vadim Zeitlin
5%% Modified by:
6%% Created: 11.08.03
7%% RCS-ID: $Id$
8%% Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
8795498c 9%% License: wxWindows license
bc51e42e
VZ
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxDelegateRendererNative}}\label{wxdelegaterenderernative}
13
14wxDelegateRendererNative allows reuse of renderers code by forwarding all the
15\helpref{wxRendererNative}{wxrenderernative} methods to the given object and
16thus allowing you to only modify some of its methods -- without having to
17reimplement all of them.
18
19Note that the ``normal'', inheritance-based approach, doesn't work with the
20renderers as it is impossible to derive from a class unknown at compile-time
21and the renderer is only chosen at run-time. So suppose that you want to only
22add something to the drawing of the tree control buttons but leave all the
23other methods unchanged -- the only way to do it, considering that the renderer
24class which you want to customize might not even be written yet when you write
25your code (it could be written later and loaded from a DLL during run-time), is
26by using this class.
27
28Except for the constructor, it has exactly the same methods as
29\helpref{wxRendererNative}{wxrenderernative} and their implementation is
30trivial: they are simply forwarded to the real renderer. Note that the ``real''
31renderer may, in turn, be a wxDelegateRendererNative as well and that there may
32be arbitrarily many levels like this -- but at the end of the chain there must
33be a real renderer which does the drawing.
34
35\wxheading{Derived from}
36
37\helpref{wxRendererNative}{wxrenderernative}
38
39\wxheading{Include files}
40
41<wx/renderer.h>
42
43
44\latexignore{\rtfignore{\wxheading{Members}}}
45
b236c10f 46\membersection{wxDelegateRendererNative::wxDelegateRendererNative}\label{wxdelegaterenderernativector}
bc51e42e
VZ
47
48\func{}{wxDelegateRendererNative}{\void}
49
50\func{}{wxDelegateRendererNative}{\param{wxRendererNative\& }{rendererNative}}
51
52The default constructor does the same thing as the other one except that it
53uses the \helpref{generic renderer}{wxrenderernativegetgeneric} instead of the
54user-specified \arg{rendererNative}.
55
56In any case, this sets up the delegate renderer object to follow all calls to
57the specified real renderer.
58
59Note that this object does \emph{not} take ownership of (i.e. won't delete)
60\arg{rendererNative}.
61
62
b236c10f 63\membersection{wxDelegateRendererNative::DrawXXX}\label{wxdelegaterenderernativedrawxxx}
bc51e42e
VZ
64
65\func{}{DrawXXX}{\param{}{$\ldots$}}
66
67This class also provides all the virtual methods of
68\helpref{wxRendererNative}{wxrenderernative}, please refer to that class
69documentation for the details.
70