MCPcopy Create free account
hub / github.com/christophhart/HISE / registerFunction

Method registerFunction

hi_scripting/scripting/api/ScriptingGraphics.cpp:2420–2427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2418}
2419
2420void ScriptingObjects::ScriptedLookAndFeel::registerFunction(var functionName, var function)
2421{
2422 if (HiseJavascriptEngine::isJavascriptFunction(function))
2423 {
2424 addOptimizableFunction(function);
2425 functions.getDynamicObject()->setProperty(Identifier(functionName.toString()), function);
2426 }
2427}
2428
2429void ScriptingObjects::ScriptedLookAndFeel::setGlobalFont(const String& fontName, float fontSize)
2430{

Callers 2

Calls 3

setPropertyMethod · 0.45
getDynamicObjectMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected