]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/rendver.tex
update by Paco Riviere
[wxWidgets.git] / docs / latex / wx / rendver.tex
CommitLineData
bc51e42e
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: rendver.tex
3%% Purpose: wxRendererVersion 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>
9%% License: wxWindows license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxRendererVersion}}\label{wxrendererversion}
13
14This simple struct represents the \helpref{wxRendererNative}{wxrenderernative}
15interface version and is only used as the return value of
16\helpref{wxRendererNative::GetVersion}{wxrenderernativegetversion}.
17
18The version has two components: the version itself and the age. If the main
19program and the renderer have different versions they are never compatible with
20each other because the version is only changed when an existing virtual
21function is modified or removed. The age, on the other hand, is incremented
22each time a new virtual method is added and so, at least for the compilers
23using a common C++ object model, the calling program is compatible with any
24renderer which has the age greater or equal to its age. This verification is
25done by \helpref{IsCompatible}{wxrenderernativeiscompatible} method.
26
27
28\wxheading{Derived from}
29
30No base class
31
32\wxheading{Include files}
33
34<wx/renderer.h>
35
36
37\latexignore{\rtfignore{\wxheading{Members}}}
38
39\membersection{wxRendererVersion::IsCompatible}\label{wxrenderernativeiscompatible}
40
41\func{static bool}{IsCompatible}{\param{const wxRendererVersion\& }{ver}}
42
43Checks if the main program is compatible with the renderer having the version
44\arg{ver}, returns \true if it is and \false otherwise.
45
46This method is used by
47\helpref{wxRendererNative::Load}{wxrenderernativeload} to determine whether a
48renderer can be used.
49
50
51\membersection{wxRendererVersion::version}
52
53\member{const int}{version}
54
55The version component.
56
57
58\membersection{wxRendererVersion::age}
59
60\member{const int}{age}
61
62The age component.
63