#include "MercuryObject.h"#include <map>Go to the source code of this file.
Classes | |
| struct | CopperKeypress |
| Structure describing CuUI keyboard event. More... | |
| struct | CopperMouseEvent |
| Structure describing CuUI mouse event. More... | |
| struct | CSTMessagePair |
| Plain text broadcast message pair. More... | |
| class | CopperWindow |
| Generic UI window (CuUI). More... | |
Defines | |
| #define | REGISTER_COPPER_CLASS(className) |
Typedefs | |
| typedef CopperWindow *(*) | NewCopperFunction (const MString &sClassName) |
Functions | |
| void | RegisterCopperWindow (const MString &sClassName, NewCopperFunction pfn) |
| CopperWindow * | GetCopperByClass (const MString &sClassName, const MString &sWindowName) |
Variables | |
| std::map< MString, NewCopperFunction > * | ToMakeWindows |
| #define REGISTER_COPPER_CLASS | ( | className | ) |
Value:
static CopperWindow* Create##className( const MString &sName ) \ { CopperWindow *pRet = new className( /*sName*/ ); return pRet; } \ struct Register##className { \ Register##className() { RegisterCopperWindow( #className,Create##className); } \ }; \ static Register##className register_##className;
Definition at line 90 of file CopperWindow.h.
| typedef CopperWindow*(*) NewCopperFunction(const MString &sClassName) |
Definition at line 87 of file CopperWindow.h.
| CopperWindow* GetCopperByClass | ( | const MString & | sClassName, | |
| const MString & | sWindowName | |||
| ) |
Definition at line 128 of file CopperWindow.cpp.
| void RegisterCopperWindow | ( | const MString & | sClassName, | |
| NewCopperFunction | pfn | |||
| ) |
Definition at line 134 of file CopperWindow.cpp.
| std::map< MString, NewCopperFunction >* ToMakeWindows |
Definition at line 4 of file CopperWindow.cpp.