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

Method raiseEvent

src/app/script/app_scripting.cpp:177–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 void AppScripting::raiseEvent(const std::string& fileName, const std::vector<script::Value> &event) {
178 TaskManager::instance().delayed([=]{
179 if ((engine && fileName == previousFileName) || evalFile(fileName)) {
180 engine->raiseEvent(event);
181 }
182 });
183 }
184
185 bool AppScripting::eval(const std::string& code) {
186 initEngine();

Callers 1

evalFileMethod · 0.45

Calls 2

instanceFunction · 0.85
delayedMethod · 0.80

Tested by

no test coverage detected