载入中...
搜索中...
未找到
EditorHostCapabilities.cpp
浏览该文件的文档.
Declarative editor-host control (provided by the ui module).
Definition EditorHost.h:17
void setHotReloadWatchCount(int count)
Set active project watch count reported by hotReloadStatus().
Definition EditorHostHotReload.cpp:235
std::string consumeEvents(const std::string &editorId)
Read and clear pending interaction events for one editor ("" = all).
Definition EditorHost.cpp:1285
std::string setEditorValue(const std::string &editorId, const std::string &widgetId, const std::string &jsonValue)
Sets the editor value.
Definition EditorHost.cpp:1257
std::string applyEditor(const std::string &json)
JSON object/string: {id,title,vm,x,y,width,height,theme,children[]}.
Definition EditorHost.cpp:671
std::string unloadEditor(const std::string &id)
Remove an editor from the session (files stay on disk).
Definition EditorHost.cpp:1393
std::string editorState(const std::string &id) const
Full state JSON: editors + values + (non-destructive) events.
Definition EditorHost.cpp:767
void frame()
Pump events + update/render hooks + present (no-op without window).
Definition EditorHost.cpp:1192
std::string hotReloadStatus() const
Watch count, reload counters and latest diagnostic as compact JSON.
Definition EditorHostHotReload.cpp:223
std::string openWindow(const std::string &title, int width, int height)
Opens window.
Definition EditorHost.cpp:602
std::string registerVM(const std::string &name, const std::string &source, const std::string &sourceName={})
Compile Squirrel source in the host VM, then register table name.
Definition EditorHost.cpp:1330
std::string widgetRect(const std::string &editorId, const std::string &widgetId) const
Last-frame widget rect JSON (for script drawing inside viewports).
Definition EditorHost.cpp:1309
std::string reloadResource(const std::string &path)
Reload mcp.nut, scripts under mcp, or editor VM and manifest files.
Definition EditorHostHotReload.cpp:160
std::string saveEditor(const std::string &id)
Write editors/<id>.editor.json + editors/<id>.vm.nut under gameRoot.
Definition EditorHost.cpp:1364
void start(ssq::VM &vm, const std::string &gameRoot={}, bool allowWindow=true)
Attach to the host VM. gameRoot is the project dir for editors/.
Definition EditorHost.cpp:582
void exposeScriptApi(ssq::VM &vm)
Expose eve.host table (registerVM/unregisterVM/widgetRect/...).
Definition EditorHost.cpp:1511
std::string runScript(const std::string &source, const std::string &sourceName={})
Compile and run Squirrel source in the host VM.
Definition EditorHost.cpp:1436
Definition Component.cpp:5
void registerEditorHostCapabilities()
Registers editor host capabilities.
Definition EditorHostCapabilities.cpp:79