File: wx42.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (99 lines) | stat: -rw-r--r-- 3,666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<HTML>
<head><title>wxClassInfo</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxclassinfo"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx41.htm#wxchoice"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx43.htm#wxclientdc"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxClassInfo</H2>
<P>
This class stores meta-information about classes. Instances of this class are
not generally defined directly by an application, but indirectly through use
of macros such as <B>DECLARE_DYNAMIC_CLASS</B> and <B>IMPLEMENT_DYNAMIC_CLASS</B>.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
No parent class.<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/object.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx304.htm#wxclassinfooverview">Overview</A>, <A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxclassinfoconstr">wxClassInfo::wxClassInfo</A><BR>
<A HREF="#topic78">wxClassInfo::CreateObject</A><BR>
<A HREF="#topic79">wxClassInfo::FindClass</A><BR>
<A HREF="#topic80">wxClassInfo::GetBaseClassName1</A><BR>
<A HREF="#topic81">wxClassInfo::GetBaseClassName2</A><BR>
<A HREF="#topic82">wxClassInfo::GetClassName</A><BR>
<A HREF="#topic83">wxClassInfo::GetSize</A><BR>
<A HREF="#topic84">wxClassInfo::InitializeClasses</A><BR>
<A HREF="#wxclassinfoiskindof">wxClassInfo::IsKindOf</A><BR>
<P>

<HR>
<A NAME="wxclassinfoconstr"></A>
<H3>wxClassInfo::wxClassInfo</H3>
<P>
<B></B> <B>wxClassInfo</B>(<B>char* </B><I>className</I>, <B>char* </B><I>baseClass1</I>, <B>char* </B><I>baseClass2</I>,
 <B>int</B><I> size</I>, <B>wxObjectConstructorFn </B><I>fn</I>)<P>
Constructs a wxClassInfo object. The supplied macros implicitly construct objects of this
class, so there is no need to create such objects explicitly in an application.<P>

<HR>
<A NAME="topic78"></A>
<H3>wxClassInfo::CreateObject</H3>
<P>
<B>wxObject*</B> <B>CreateObject</B>()<P>
Creates an object of the appropriate kind. Returns NULL if the class has not been declared
dynamically createable (typically, it's an abstract class).<P>

<HR>
<A NAME="topic79"></A>
<H3>wxClassInfo::FindClass</H3>
<P>
<B>static wxClassInfo *</B> <B>FindClass</B>(<B>char* </B><I>name</I>)<P>
Finds the wxClassInfo object for a class of the given string name.<P>

<HR>
<A NAME="topic80"></A>
<H3>wxClassInfo::GetBaseClassName1</H3>
<P>
<B>char*</B> <B>GetBaseClassName1</B>() <B>const</B><P>
Returns the name of the first base class (NULL if none).<P>

<HR>
<A NAME="topic81"></A>
<H3>wxClassInfo::GetBaseClassName2</H3>
<P>
<B>char*</B> <B>GetBaseClassName2</B>() <B>const</B><P>
Returns the name of the second base class (NULL if none).<P>

<HR>
<A NAME="topic82"></A>
<H3>wxClassInfo::GetClassName</H3>
<P>
<B>char *</B> <B>GetClassName</B>() <B>const</B><P>
Returns the string form of the class name.<P>

<HR>
<A NAME="topic83"></A>
<H3>wxClassInfo::GetSize</H3>
<P>
<B>int</B> <B>GetSize</B>() <B>const</B><P>
Returns the size of the class.<P>

<HR>
<A NAME="topic84"></A>
<H3>wxClassInfo::InitializeClasses</H3>
<P>
<B>static void</B> <B>InitializeClasses</B>()<P>
Initializes pointers in the wxClassInfo objects for fast execution
of IsKindOf. Called in base wxWindows library initialization.<P>

<HR>
<A NAME="wxclassinfoiskindof"></A>
<H3>wxClassInfo::IsKindOf</H3>
<P>
<B>bool</B> <B>IsKindOf</B>(<B>wxClassInfo* </B><I>info</I>)<P>
Returns TRUE if this class is a kind of (inherits from) the given class.<P>


</BODY></HTML>