Contents Up Previous Next

wxClassInfo

Overview

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 DECLARE_DYNAMIC_CLASS and IMPLEMENT_DYNAMIC_CLASS.

wxClassInfo::wxClassInfo
wxClassInfo::CreateObject
wxClassInfo::FindClass
wxClassInfo::GetBaseClassName1
wxClassInfo::GetBaseClassName2
wxClassInfo::GetClassName
wxClassInfo::GetSize
wxClassInfo::InitializeClasses
wxClassInfo::IsKindOf


wxClassInfo::wxClassInfo

void wxClassInfo(char *className, char *baseClass1, char *baseClass2, int size, wxObjectConstructorFn fn)

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.


wxClassInfo::CreateObject

wxObject * CreateObject(void)

Creates an object of the appropriate kind. Returns NULL if the class has not been declared dynamically createable (typically, it's an abstract class).


wxClassInfo::FindClass

static wxClassInfo * FindClass(char *name)

Finds the wxClassInfo object for a class of the given string name.


wxClassInfo::GetBaseClassName1

char * GetBaseClassName1(void)

Returns the name of the first base class (NULL if none).


wxClassInfo::GetBaseClassName2

char * GetBaseClassName2(void)

Returns the name of the second base class (NULL if none).


wxClassInfo::GetClassName

char * GetClassName(void)

Returns the string form of the class name.


wxClassInfo::GetSize

int GetSize(void)

Returns the size of the class.


wxClassInfo::InitializeClasses

static void InitializeClasses(void)

Initializes pointers in the wxClassInfo objects for fast execution of IsKindOf. Called in base wxWindows library initialization.


wxClassInfo::IsKindOf

Bool IsKindOf(wxClassInfo *info)

Returns TRUE if this class is a kind of (inherits from) the given class.