载入中...
搜索中...
未找到
WorkspacePresentationBindings.h
浏览该文件的文档.
30 return script::projectStatusResult(vm, Status::success(), self->presentation().snapshot(source));
34 [vm](ScriptEditor* self, const std::string& path, ssq::Object input, bool staged) -> ssq::Table {
40 vm, staged ? controller.stage(source, PropertyPath(path), toEditorValue(std::move(value).takeValue()))
51 cls.addFunc("presentationCancel", [](ScriptEditor* self) -> void { self->presentation().cancel(); });
The single Squirrel projection for common Result, Status and Value.
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
Dotted property path (layout.size) compared and persisted as text.
Definition EditingIds.h:78
Definition ActionPreviewController.cpp:6
void exposeWorkspacePresentation(ssq::Class &cls, HSQUIRRELVM vm)
Install the same presentation projection on each domain's owned script editor. @ownership Script edit...
Definition WorkspacePresentationBindings.h:14
EditorValue toEditorValue(const eve::Value &value)
Compatibility spelling for conversion into the authoring value tree.
Definition EditorProperty.h:29
const char * previewPhaseName(PreviewPhase phase) noexcept
Stable UI label for lifecycle observations (not a persisted format). @ownership Borrowed static strin...
Definition PreviewState.h:19
ssq::Table projectStatusResult(HSQUIRRELVM vm, const Status &status)
Project a checked native status that carries no payload.
Definition SquirrelBinding.cpp:524
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:540
Result< Value > valueFromSquirrel(HSQUIRRELVM vm, SQInteger index, const SquirrelValueOptions &options)
Convert one Squirrel value into the canonical owning Value tree.
Definition SquirrelBinding.cpp:412