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

Method get

src/app/script/api/dialog_script.cpp:160–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 ScriptObject* get(const std::string& id) {
161 auto it = m_widgets.find(id);
162 return it != m_widgets.end() ? it->second.get() : nullptr;
163 }
164
165 ScriptObject* add(const std::string& type, const std::string& id) {
166 auto dialog = this->dialog();

Callers 9

clearEventHooksMethod · 0.45
scanScriptMethod · 0.45
initEngineMethod · 0.45
addPaletteMethod · 0.45
loadPaletteMethod · 0.45
LayerScriptObjectMethod · 0.45
getPNGDataFunction · 0.45
AppScriptObjectMethod · 0.45
documentationMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected