UIInspector namespace

Functions

void Open(UIHost& host, PlatformWindowID inspectorWindow, PlatformWindowID inspected)
Mount the inspector in inspectorWindow, inspecting the document in inspected. Any thread.
void Close(UIHost& host)
Stop inspecting and unmount the inspector. Any thread.
auto IsOpen() -> bool
Whether it is mounted.
void Refresh()
Follow the inspected document: tree changes and picking. Encoder, once per frame, before documents update.
void Build(GGUI::UI& ui)
The inspector's document. Mounted by Open; exposed for tests.
auto Styles() -> const GGUI::StyleTable&
The inspector's styles. Lives for the whole process.
void InspectForTest(GGUI::UIContext* target)
Tests: inspect this document instead of a host's (nullptr: back to the host's).
void ShowTab(int tab)
Tests: show the Node (0), Style (1), or Tokens (2) tab.
auto Selected() -> GGUI::NodeHandle
The selected node, as of the last Refresh or click.

Variables

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