| 4583 | |
| 4584 | |
| 4585 | void 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 | |
| 4609 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawHiseThumbnailBackground(Graphics& g_, HiseAudioThumbnail& th, bool areaIsEnabled, Rectangle<int> area) |
| 4610 | { |
nothing calls this directly
no test coverage detected