MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / sprite

Method sprite

src/app/script/api/sprite_script.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 doc::Sprite* sprite() {
100 auto sprite = handle<doc::Object, doc::Sprite>();
101 if (!sprite)
102 throw script::ObjectDestroyedException{};
103 return sprite;
104 }
105
106 app::Document* doc() {
107 return static_cast<app::Document*>(sprite()->document());

Callers 2

DocumentScriptObjectMethod · 0.45
AppScriptObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected