UIConsole namespace

Functions

void Open(UIHost& host, PlatformWindowID window)
Mount the console in window. Any thread.
void Close(UIHost& host)
Unmount the console. Any thread.
auto IsOpen() -> bool
Whether it is mounted.
auto Window() -> PlatformWindowID
The window it is mounted in; 0 while closed.
void Refresh()
Pick up new log lines. Encoder, once per frame, before documents update.
void Build(GGUI::UI& ui)
The console's document. Mounted by Open; exposed for tests.
auto Styles() -> const GGUI::StyleTable&
The console's styles. Lives for the whole process.
auto LogLines() -> GGUI::GGLineSource
The logger's recent lines, as the log view takes them.
auto Commands() -> GGUI::GGCommandSource
TnxConsole's commands, as the command line takes them.

Variables

uint32_t WindowTag constexpr
Tag on the console's window request, to recognise the WindowOpened that answers it.