]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/clasinfo.tex
Fix "depreciated" to "deprecated".
[wxWidgets.git] / docs / latex / wx / clasinfo.tex
CommitLineData
a660d684
KB
1\section{\class{wxClassInfo}}\label{wxclassinfo}
2
3This class stores meta-information about classes. Instances of this class are
4not generally defined directly by an application, but indirectly through use
5of macros such as {\bf DECLARE\_DYNAMIC\_CLASS} and {\bf IMPLEMENT\_DYNAMIC\_CLASS}.
6
7\wxheading{Derived from}
8
9No parent class.
10
954b8ae6
JS
11\wxheading{Include files}
12
13<wx/object.h>
14
a660d684
KB
15\wxheading{See also}
16
2bb0cd28 17\helpref{Overview}{wxclassinfooverview}, \helpref{wxObject}{wxobject}
a660d684
KB
18
19\latexignore{\rtfignore{\wxheading{Members}}}
20
f510b7b2 21\membersection{wxClassInfo::wxClassInfo}\label{wxclassinfoctor}
a660d684 22
f6e9a818 23\func{}{wxClassInfo}{\param{const wxChar * }{className}, \param{const wxClassInfo * }{baseClass1}, \param{const wxClassInfo * }{baseClass2},
a660d684
KB
24 \param{int}{ size}, \param{wxObjectConstructorFn }{fn}}
25
26Constructs a wxClassInfo object. The supplied macros implicitly construct objects of this
27class, so there is no need to create such objects explicitly in an application.
28
3980000c 29\membersection{wxClassInfo::CreateObject}\label{wxclassinfocreateobject}
a660d684 30
ca3af337 31\constfunc{wxObject*}{CreateObject}{\void}
a660d684
KB
32
33Creates an object of the appropriate kind. Returns NULL if the class has not been declared
f6bcfd97 34dynamically creatable (typically, it is an abstract class).
a660d684 35
f510b7b2 36\membersection{wxClassInfo::FindClass}\label{wxclassinfofindclass}
a660d684 37
7bef714c 38\func{static wxClassInfo *}{FindClass}{\param{wxChar * }{name}}
a660d684
KB
39
40Finds the wxClassInfo object for a class of the given string name.
41
f510b7b2 42\membersection{wxClassInfo::GetBaseClassName1}\label{wxclassinfogetbaseclassname1}
a660d684 43
7bef714c 44\constfunc{wxChar *}{GetBaseClassName1}{\void}
a660d684
KB
45
46Returns the name of the first base class (NULL if none).
47
f510b7b2 48\membersection{wxClassInfo::GetBaseClassName2}\label{wxclassinfogetbaseclassname2}
a660d684 49
7bef714c 50\constfunc{wxChar *}{GetBaseClassName2}{\void}
a660d684
KB
51
52Returns the name of the second base class (NULL if none).
53
f510b7b2 54\membersection{wxClassInfo::GetClassName}\label{wxclassinfogetclassname}
a660d684 55
7bef714c 56\constfunc{wxChar *}{GetClassName}{\void}
a660d684
KB
57
58Returns the string form of the class name.
59
f510b7b2 60\membersection{wxClassInfo::GetSize}\label{wxclassinfogetsize}
a660d684
KB
61
62\constfunc{int}{GetSize}{\void}
63
64Returns the size of the class.
65
f510b7b2 66\membersection{wxClassInfo::InitializeClasses}\label{wxclassinfoinitializeclasses}
a660d684
KB
67
68\func{static void}{InitializeClasses}{\void}
69
70Initializes pointers in the wxClassInfo objects for fast execution
fc2171bd 71of IsKindOf. Called in base wxWidgets library initialization.
a660d684 72
ca3af337
JS
73\membersection{wxClassInfo::IsDynamic}\label{wxclassinfoisdynamic}
74
75\constfunc{bool}{IsDynamic}{\void}
76
77Returns true if this class info can create objects of the associated class.
78
a660d684
KB
79\membersection{wxClassInfo::IsKindOf}\label{wxclassinfoiskindof}
80
81\func{bool}{IsKindOf}{\param{wxClassInfo* }{info}}
82
cc81d32f 83Returns true if this class is a kind of (inherits from) the given class.
a660d684
KB
84
85