49 : mComponent(pComponent), mPanel(pPanel), mScreen(pScreen), mButton(nButton) {
58 void *
operator new(
size_t nSize) {
59 return PoolMemAlloc(
static_cast<int>(nSize),
"UIComponentSelectMsg", 0);
67 void operator delete(
void *pBlock) {
101 return "UIComponentSelectMsg";
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
UIComponent * GetComponent() const
Definition uicomponentselectmsg.h:114
void PrintExtra(PrnStream &stream) const override
Write the names of the component, the panel, and the screen.
const char * GetName() const override
Report this message's class name.
Definition uicomponentselectmsg.h:100
UIComponentSelectMsg(UIComponent *pComponent, UIPanel *pPanel, UIScreen *pScreen, int nButton)
Construct the message.
Definition uicomponentselectmsg.h:48
~UIComponentSelectMsg() override=default
Destroy the object.
UIPanel * GetPanel() const
Definition uicomponentselectmsg.h:119
int Type() override
Report this message's registered identity.
Definition uicomponentselectmsg.h:89
Message * Clone() override
Produce a heap copy of this message.
Definition uicomponentselectmsg.h:78
UIScreen * GetScreen() const
Definition uicomponentselectmsg.h:124
int GetButton() const
Definition uicomponentselectmsg.h:129
One control of a front-end panel, such as a label, a button, or a list.
Definition uicomponent.h:21
Group of components drawn from one .rnd file, which a screen shows.
Definition uipanel.h:35
One front-end screen, a set of panels shown together with one panel holding the focus.
Definition uiscreen.h:35
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.
int g_nUIComponentSelectMsgType
Identity that UIComponentSelectMsg::Type() reports.