These macros are defined in wxWindows.
CLASSINFO
WXDEBUG_NEW
DECLARE_ABSTRACT_CLASS
DECLARE_APP
DECLARE_CLASS
DECLARE_DYNAMIC_CLASS
IMPLEMENT_ABSTRACT_CLASS
IMPLEMENT_ABSTRACT_CLASS2
IMPLEMENT_APP
IMPLEMENT_CLASS
IMPLEMENT_CLASS2
IMPLEMENT_DYNAMIC_CLASS
IMPLEMENT_DYNAMIC_CLASS2
WXTRACE
WXTRACELEVEL
wxClassInfo * CLASSINFO(className)
Returns a pointer to the wxClassInfo object associated with this class.
Include files
<wx/object.h>
WXDEBUG_NEW(arg)
This is defined in debug mode to be call the redefined new operator with filename and line number arguments. The definition is:
#define WXDEBUG_NEW new(__FILE__,__LINE__)In non-debug mode, this is defined as the normal new operator.
Include files
<wx/object.h>
DECLARE_ABSTRACT_CLASS(className)
Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically. The same as DECLARE_CLASS.
Example:
class wxCommand: public wxObject { DECLARE_ABSTRACT_CLASS(wxCommand) private: ... public: ... };Include files
<wx/object.h>
DECLARE_APP(className)
This is used in headers to create a forward declaration of the wxGetApp function implemented by IMPLEMENT_APP. It creates the declaration className& wxGetApp(void).
Example:
DECLARE_APP(MyApp)Include files
<wx/app.h>
DECLARE_CLASS(className)
Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically. The same as DECLARE_ABSTRACT_CLASS.
Include files
<wx/object.h>
DECLARE_DYNAMIC_CLASS(className)
Used inside a class declaration to declare that the objects of this class should be dynamically createable from run-time type information.
Example:
class wxFrame: public wxWindow { DECLARE_DYNAMIC_CLASS(wxFrame) private: const wxString\& frameTitle; public: ... };Include files
<wx/object.h>
IMPLEMENT_ABSTRACT_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information. The same as IMPLEMENT_CLASS.
Example:
IMPLEMENT_ABSTRACT_CLASS(wxCommand, wxObject) wxCommand::wxCommand(void) { ... }Include files
<wx/object.h>
IMPLEMENT_ABSTRACT_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes. The same as IMPLEMENT_CLASS2.
Include files
<wx/object.h>
IMPLEMENT_APP(className)
This is used in the application class implementation file to make the application class known to wxWindows for dynamic construction. You use this instead of
Old form:
MyApp myApp;New form:
IMPLEMENT_APP(MyApp)See also DECLARE_APP.
Include files
<wx/app.h>
IMPLEMENT_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information. The same as IMPLEMENT_ABSTRACT_CLASS.
Include files
<wx/object.h>
IMPLEMENT_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes. The same as IMPLEMENT_ABSTRACT_CLASS2.
Include files
<wx/object.h>
IMPLEMENT_DYNAMIC_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically.
Example:
IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxWindow) wxFrame::wxFrame(void) { ... }Include files
<wx/object.h>
IMPLEMENT_DYNAMIC_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically. Use this for classes derived from two base classes.
Include files
<wx/object.h>
WXTRACE(formatString, ...)
Calls wxTrace with printf-style variable argument syntax. Output is directed to the current output stream (see wxDebugContext).
This macro is now obsolete, replaced by Log functions.
Include files
<wx/memory.h>
WXTRACELEVEL(level, formatString, ...)
Calls wxTraceLevel with printf-style variable argument syntax. Output is directed to the current output stream (see wxDebugContext). The first argument should be the level at which this information is appropriate. It will only be output if the level returned by wxDebugContext::GetLevel is equal to or greater than this value.
This function is now obsolete, replaced by Log functions.
Include files
<wx/memory.h>