| 3719 | } |
| 3720 | |
| 3721 | void 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 | |
| 3751 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawFilterGridLines(Graphics &g_, FilterGraph& fg, const Path& gridPath) |
| 3752 | { |
nothing calls this directly
no test coverage detected