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

Method drawMidiDropper

hi_scripting/scripting/api/ScriptingGraphics.cpp:4585–4607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4583
4584
4585void ScriptingObjects::ScriptedLookAndFeel::Laf::drawMidiDropper(Graphics& g_, Rectangle<float> area, const String& text, MidiFileDragAndDropper& d)
4586{
4587 if (functionDefined("drawMidiDropper"))
4588 {
4589 auto obj = new DynamicObject();
4590 writeId(obj, &d);
4591 obj->setProperty("area", ApiHelpers::getVarRectangle(area));
4592 obj->setProperty("hover", d.hover);
4593 obj->setProperty("active", d.isActive());
4594 obj->setProperty("externalDrag", d.externalDrag);
4595
4596 setColourOrBlack(obj, "bgColour", d, HiseColourScheme::ComponentBackgroundColour);
4597 setColourOrBlack(obj, "itemColour", d, HiseColourScheme::ComponentOutlineColourId);
4598 setColourOrBlack(obj, "textColour", d, HiseColourScheme::ComponentTextColourId);
4599
4600 obj->setProperty("text", text);
4601
4602 if (get()->callWithGraphics(g_, "drawMidiDropper", var(obj), &d))
4603 return;
4604 }
4605
4606 MidiFileDragAndDropper::LookAndFeelMethods::drawMidiDropper(g_, area, text, d);
4607}
4608
4609void ScriptingObjects::ScriptedLookAndFeel::Laf::drawHiseThumbnailBackground(Graphics& g_, HiseAudioThumbnail& th, bool areaIsEnabled, Rectangle<int> area)
4610{

Callers

nothing calls this directly

Calls 6

setColourOrBlackFunction · 0.85
varFunction · 0.85
callWithGraphicsMethod · 0.80
getFunction · 0.50
setPropertyMethod · 0.45
isActiveMethod · 0.45

Tested by

no test coverage detected