1 \section{\class{wxClassInfo
}}\label{wxclassinfo
}
3 This class stores meta-information about classes. Instances of this class are
4 not generally defined directly by an application, but indirectly through use
5 of macros such as
{\bf DECLARE
\_DYNAMIC\_CLASS} and
{\bf IMPLEMENT
\_DYNAMIC\_CLASS}.
7 \wxheading{Derived from
}
11 \wxheading{Include files
}
17 \helpref{wxBase
}{librarieslist
}
21 \helpref{Overview
}{wxclassinfooverview
},
\helpref{wxObject
}{wxobject
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxClassInfo::wxClassInfo
}\label{wxclassinfoctor
}
27 \func{}{wxClassInfo
}{\param{const wxChar *
}{className
},
\param{const wxClassInfo *
}{baseClass1
},
\param{const wxClassInfo *
}{baseClass2
},
28 \param{int
}{ size
},
\param{wxObjectConstructorFn
}{fn
}}
30 Constructs a wxClassInfo object. The supplied macros implicitly construct objects of this
31 class, so there is no need to create such objects explicitly in an application.
33 \membersection{wxClassInfo::CreateObject
}\label{wxclassinfocreateobject
}
35 \constfunc{wxObject*
}{CreateObject
}{\void}
37 Creates an object of the appropriate kind. Returns NULL if the class has not been declared
38 dynamically creatable (typically, it is an abstract class).
40 \membersection{wxClassInfo::FindClass
}\label{wxclassinfofindclass
}
42 \func{static wxClassInfo *
}{FindClass
}{\param{wxChar *
}{name
}}
44 Finds the wxClassInfo object for a class of the given string name.
46 \membersection{wxClassInfo::GetBaseClassName1
}\label{wxclassinfogetbaseclassname1
}
48 \constfunc{wxChar *
}{GetBaseClassName1
}{\void}
50 Returns the name of the first base class (NULL if none).
52 \membersection{wxClassInfo::GetBaseClassName2
}\label{wxclassinfogetbaseclassname2
}
54 \constfunc{wxChar *
}{GetBaseClassName2
}{\void}
56 Returns the name of the second base class (NULL if none).
58 \membersection{wxClassInfo::GetClassName
}\label{wxclassinfogetclassname
}
60 \constfunc{wxChar *
}{GetClassName
}{\void}
62 Returns the string form of the class name.
64 \membersection{wxClassInfo::GetSize
}\label{wxclassinfogetsize
}
66 \constfunc{int
}{GetSize
}{\void}
68 Returns the size of the class.
70 \membersection{wxClassInfo::InitializeClasses
}\label{wxclassinfoinitializeclasses
}
72 \func{static void
}{InitializeClasses
}{\void}
74 Initializes pointers in the wxClassInfo objects for fast execution
75 of IsKindOf. Called in base wxWidgets library initialization.
77 \membersection{wxClassInfo::IsDynamic
}\label{wxclassinfoisdynamic
}
79 \constfunc{bool
}{IsDynamic
}{\void}
81 Returns true if this class info can create objects of the associated class.
83 \membersection{wxClassInfo::IsKindOf
}\label{wxclassinfoiskindof
}
85 \func{bool
}{IsKindOf
}{\param{wxClassInfo*
}{info
}}
87 Returns true if this class is a kind of (inherits from) the given class.