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

Method layer

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

Source from the content-addressed store, hash-verified

124 }
125
126 script::ScriptObject* layer(int i) {
127 return getEngine()->getScriptObject(sprite()->indexToLayer(doc::LayerIndex(i)));
128 }
129
130 void resize(int w, int h) {
131 app::DocumentApi api(doc(), transaction());

Callers

nothing calls this directly

Calls 3

LayerIndexClass · 0.85
getScriptObjectMethod · 0.80
indexToLayerMethod · 0.80

Tested by

no test coverage detected