| 3799 | } |
| 3800 | |
| 3801 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawOscilloscopePath(Graphics& g_, RingBufferComponentBase& ac, const Path& p) |
| 3802 | { |
| 3803 | if (functionDefined("drawAnalyserPath")) |
| 3804 | { |
| 3805 | auto obj = new DynamicObject(); |
| 3806 | auto c = dynamic_cast<Component*>(&ac); |
| 3807 | writeId(obj, c); |
| 3808 | obj->setProperty("area", ApiHelpers::getVarRectangle(c->getLocalBounds().toFloat())); |
| 3809 | auto sp = new ScriptingObjects::PathObject(get()->getScriptProcessor()); |
| 3810 | |
| 3811 | |
| 3812 | var keeper(sp); |
| 3813 | sp->getPath() = p; |
| 3814 | obj->setProperty("path", keeper); |
| 3815 | obj->setProperty("pathArea", ApiHelpers::getVarRectangle(p.getBounds())); |
| 3816 | |
| 3817 | setColourOrBlack(obj, "bgColour", *c, RingBufferComponentBase::ColourId::bgColour); |
| 3818 | setColourOrBlack(obj, "itemColour1", *c, RingBufferComponentBase::ColourId::fillColour); |
| 3819 | setColourOrBlack(obj, "itemColour2", *c, RingBufferComponentBase::ColourId::lineColour); |
| 3820 | |
| 3821 | if (get()->callWithGraphics(g_, "drawAnalyserPath", var(obj), c)) |
| 3822 | return; |
| 3823 | } |
| 3824 | |
| 3825 | RingBufferComponentBase::LookAndFeelMethods::drawOscilloscopePath(g_, ac, p); |
| 3826 | } |
| 3827 | |
| 3828 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawGonioMeterDots(Graphics& g_, RingBufferComponentBase& ac, const RectangleList<float>& dots, int index) |
| 3829 | { |
nothing calls this directly
no test coverage detected