CopperWindow.h File Reference

#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)
CopperWindowGetCopperByClass (const MString &sClassName, const MString &sWindowName)

Variables

std::map< MString, NewCopperFunction > * ToMakeWindows


Define Documentation

#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 Documentation

typedef CopperWindow*(*) NewCopperFunction(const MString &sClassName)

Definition at line 87 of file CopperWindow.h.


Function Documentation

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.


Variable Documentation

std::map< MString, NewCopperFunction >* ToMakeWindows

Definition at line 4 of file CopperWindow.cpp.


Hosted by SourceForge.net Logo