]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/clasinfo.tex
remove C++ comment
[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
a7af285d
VZ
15\wxheading{Library}
16
17\helpref{wxBase}{librarieslist}
18
a660d684
KB
19\wxheading{See also}
20
2bb0cd28 21\helpref{Overview}{wxclassinfooverview}, \helpref{wxObject}{wxobject}
a660d684
KB
22
23\latexignore{\rtfignore{\wxheading{Members}}}
24
f510b7b2 25\membersection{wxClassInfo::wxClassInfo}\label{wxclassinfoctor}
a660d684 26
f6e9a818 27\func{}{wxClassInfo}{\param{const wxChar * }{className}, \param{const wxClassInfo * }{baseClass1}, \param{const wxClassInfo * }{baseClass2},
a660d684
KB
28 \param{int}{ size}, \param{wxObjectConstructorFn }{fn}}
29
30Constructs a wxClassInfo object. The supplied macros implicitly construct objects of this
31class, so there is no need to create such objects explicitly in an application.
32
3980000c 33\membersection{wxClassInfo::CreateObject}\label{wxclassinfocreateobject}
a660d684 34
ca3af337 35\constfunc{wxObject*}{CreateObject}{\void}
a660d684
KB
36
37Creates an object of the appropriate kind. Returns NULL if the class has not been declared
f6bcfd97 38dynamically creatable (typically, it is an abstract class).
a660d684 39
f510b7b2 40\membersection{wxClassInfo::FindClass}\label{wxclassinfofindclass}
a660d684 41
7bef714c 42\func{static wxClassInfo *}{FindClass}{\param{wxChar * }{name}}
a660d684
KB
43
44Finds the wxClassInfo object for a class of the given string name.
45
f510b7b2 46\membersection{wxClassInfo::GetBaseClassName1}\label{wxclassinfogetbaseclassname1}
a660d684 47
7bef714c 48\constfunc{wxChar *}{GetBaseClassName1}{\void}
a660d684
KB
49
50Returns the name of the first base class (NULL if none).
51
f510b7b2 52\membersection{wxClassInfo::GetBaseClassName2}\label{wxclassinfogetbaseclassname2}
a660d684 53
7bef714c 54\constfunc{wxChar *}{GetBaseClassName2}{\void}
a660d684
KB
55
56Returns the name of the second base class (NULL if none).
57
f510b7b2 58\membersection{wxClassInfo::GetClassName}\label{wxclassinfogetclassname}
a660d684 59
7bef714c 60\constfunc{wxChar *}{GetClassName}{\void}
a660d684
KB
61
62Returns the string form of the class name.
63
f510b7b2 64\membersection{wxClassInfo::GetSize}\label{wxclassinfogetsize}
a660d684
KB
65
66\constfunc{int}{GetSize}{\void}
67
68Returns the size of the class.
69
f510b7b2 70\membersection{wxClassInfo::InitializeClasses}\label{wxclassinfoinitializeclasses}
a660d684
KB
71
72\func{static void}{InitializeClasses}{\void}
73
74Initializes pointers in the wxClassInfo objects for fast execution
fc2171bd 75of IsKindOf. Called in base wxWidgets library initialization.
a660d684 76
ca3af337
JS
77\membersection{wxClassInfo::IsDynamic}\label{wxclassinfoisdynamic}
78
79\constfunc{bool}{IsDynamic}{\void}
80
81Returns true if this class info can create objects of the associated class.
82
a660d684
KB
83\membersection{wxClassInfo::IsKindOf}\label{wxclassinfoiskindof}
84
85\func{bool}{IsKindOf}{\param{wxClassInfo* }{info}}
86
cc81d32f 87Returns true if this class is a kind of (inherits from) the given class.
a660d684
KB
88
89