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

Method drawFilterPath

hi_scripting/scripting/api/ScriptingGraphics.cpp:3721–3749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3719}
3720
3721void ScriptingObjects::ScriptedLookAndFeel::Laf::drawFilterPath(Graphics& g_, FilterGraph& fg, const Path& p)
3722{
3723 if (functionDefined("drawFilterPath"))
3724 {
3725 auto obj = new DynamicObject();
3726
3727 writeId(obj, &fg);
3728 obj->setProperty("area", ApiHelpers::getVarRectangle(fg.getLocalBounds().toFloat()));
3729
3730 auto sp = new ScriptingObjects::PathObject(get()->getScriptProcessor());
3731
3732 var keeper(sp);
3733 sp->getPath() = p;
3734 obj->setProperty("path", keeper);
3735
3736 obj->setProperty("pathArea", ApiHelpers::getVarRectangle(p.getBounds()));
3737
3738 setColourOrBlack(obj, "bgColour", fg, FilterGraph::ColourIds::bgColour);
3739 setColourOrBlack(obj, "itemColour1", fg, FilterGraph::ColourIds::lineColour);
3740 setColourOrBlack(obj, "itemColour2", fg, FilterGraph::ColourIds::fillColour);
3741 setColourOrBlack(obj, "itemColour3", fg, FilterGraph::ColourIds::gridColour);
3742 setColourOrBlack(obj, "textColour", fg, FilterGraph::ColourIds::textColour);
3743
3744 if (get()->callWithGraphics(g_, "drawFilterPath", var(obj), &fg))
3745 return;
3746 }
3747
3748 FilterGraph::LookAndFeelMethods::drawFilterPath(g_, fg, p);
3749}
3750
3751void ScriptingObjects::ScriptedLookAndFeel::Laf::drawFilterGridLines(Graphics &g_, FilterGraph& fg, const Path& gridPath)
3752{

Callers

nothing calls this directly

Calls 10

setColourOrBlackFunction · 0.85
varFunction · 0.85
getLocalBoundsMethod · 0.80
callWithGraphicsMethod · 0.80
getFunction · 0.50
setPropertyMethod · 0.45
toFloatMethod · 0.45
getScriptProcessorMethod · 0.45
getPathMethod · 0.45
getBoundsMethod · 0.45

Tested by

no test coverage detected