33#ifndef DVD_GUI_CONSOLE_H_
34#define DVD_GUI_CONSOLE_H_
41 class FormattedListboxTextItem;
50class GUIConsoleCommandParser;
constexpr size_t CEGUI_MAX_INPUT_HISTORY
GUIConsole implementation, CEGUI based, as in the practical tutorial series.
std::unique_ptr< GUIConsoleCommandParser > _cmdParser
pointer to the command parser instance used
void RegisterHandlers()
Register our handler functions.
bool Handle_TextSubmitted(const CEGUI::EventArgs &e)
Handle when we press Enter after typing.
bool isVisible() const
Return true if console is visible, false if is hidden.
CEGUI::Editbox * _editBox
pointer to the editBox to reduce typing and casting
size_t _consoleCallbackIndex
I16 _inputHistoryIndex
Used to cycle through history.
void printText(const Console::OutputEntry &entry)
Add text to the console Window. Uses a text buffer if the console isn't ready for display yet.
void createCEGUIWindow()
The function which will load in the CEGUI Window and register event handlers.
bool Handle_TextInput(const CEGUI::EventArgs &e)
A key is pressed in the console input editbox.
moodycamel::ConcurrentQueue< Console::OutputEntry > _outputBuffer
Console::EntryType _lastMsgType
void setVisible(bool visible)
Hide or show the console.
CEGUI::Listbox * _outputWindow
std::deque< CEGUI::String > _inputHistory
Used to manage the input history.
void update(U64 deltaTimeUS)
CEGUI::Window * _consoleWindow
This will be a pointer to the ConsoleRoot Window.
CEGUI::String _inputBuffer
bool _init
used to check if the console is ready
void OutputText(const Console::OutputEntry &text) const
Graphical User Interface.
PlatformContext & context() noexcept
constexpr Optick::Category::Type GUI
Handle console commands that start with a forward slash.
Project const SceneEntry & entry