wavelength 1.0.0
Loading...
Searching...
No Matches
chattextentry.h
Go to the documentation of this file.
1#pragma once
2
4#include "script/dataarray.h"
5#include "ui/uitextentry.h"
6
13class ChatTextEntry : public UITextEntry {
14public:
21 ~ChatTextEntry() override = default;
22
31 ChatTextEntry(DataArray *pData, const char *pszPanel);
32
45 static UIComponent *New(DataArray *pData, const char *pszPanel) {
46 return new ChatTextEntry(pData, pszPanel);
47 }
48
57 bool DispatchPriv(Message *pMsg) override;
58
68};
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create an entry from its script description.
Definition chattextentry.h:45
bool DispatchPriv(Message *pMsg) override
Handle a keyboard key, or pass any other message to UITextEntry.
~ChatTextEntry() override=default
Destroy the object.
bool HandleKeyboardKey(KeyboardKeyMsg *pMsg)
Replace the text with the text of a function key, then pass the key to UITextEntry.
ChatTextEntry(DataArray *pData, const char *pszPanel)
Construct the entry from its script description.
Reference-counted array of script data nodes.
Definition dataarray.h:20
Message the keyboard poll sends when a key of a USB keyboard is pressed.
Definition keyboardkeymsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37
UITextEntry(DataArray *pData, const char *pszPanel)
Construct a text entry from its script description.