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

Method drawFilterDragHandle

hi_scripting/scripting/api/ScriptingGraphics.cpp:3663–3694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3661}
3662
3663void ScriptingObjects::ScriptedLookAndFeel::Laf::drawFilterDragHandle(Graphics& g_, FilterDragOverlay& o, int index, Rectangle<float> handleBounds, const FilterDragOverlay::DragData& d)
3664{
3665 if (functionDefined("drawFilterDragHandle"))
3666 {
3667 auto obj = new DynamicObject();
3668
3669 writeId(obj, &o);
3670
3671 obj->setProperty("area", ApiHelpers::getVarRectangle(o.getLocalBounds().toFloat()));
3672 obj->setProperty("index", index);
3673 obj->setProperty("handle", ApiHelpers::getVarRectangle(handleBounds));
3674 obj->setProperty("selected", d.selected);
3675 obj->setProperty("enabled", d.enabled);
3676 obj->setProperty("drag", d.dragging);
3677 obj->setProperty("hover", d.hover);
3678 obj->setProperty("frequency", d.frequency);
3679 obj->setProperty("Q", d.q);
3680 obj->setProperty("gain", d.gain);
3681 obj->setProperty("type", d.type);
3682
3683 setColourOrBlack(obj, "bgColour", o, FilterGraph::ColourIds::bgColour);
3684 setColourOrBlack(obj, "itemColour1", o, FilterGraph::ColourIds::lineColour);
3685 setColourOrBlack(obj, "itemColour2", o, FilterGraph::ColourIds::fillColour);
3686 setColourOrBlack(obj, "itemColour3", o, FilterGraph::ColourIds::gridColour);
3687 setColourOrBlack(obj, "textColour", o, FilterGraph::ColourIds::textColour);
3688
3689 if (get()->callWithGraphics(g_, "drawFilterDragHandle", var(obj), &o))
3690 return;
3691 }
3692
3693 FilterDragOverlay::LookAndFeelMethods::drawFilterDragHandle(g_, o, index, handleBounds, d);
3694}
3695
3696
3697

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected