|
| Server & | getDefaultServer () |
| | The global instance of the MCP server.
|
| uint64_t | idOf (const Object *obj) |
| | Pointer -> id (as a JSON number). Matches the ##<id> suffix in ImGui labels for the same object.
|
| Expected< std::shared_ptr< Object > > | resolveId (uint64_t id) |
| Color | parseColor (const nlohmann::json &j, std::string_view field) |
| | Color from [r, g, b] or [r, g, b, a] floats in [0, 1].
|
| std::runtime_error | busyError (std::string_view what) |
| | The error for a main thread that did not respond within cMainThreadTimeout
|
| void | runOnMainThread (const std::function< void()> &func) |
| | CommandLoop::runCommandFromGUIThread, but throws busyError if the main thread does not start func in time
|
| std::string | waitFramesAfterInput (const std::function< void()> &after={}) |
| nlohmann::json | inputResult (std::string busy) |
| | The result of a tool that sends an input: {}, or {busy: <message>} from waitFramesAfterInput
|