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

Method drawAlertBox

hi_scripting/scripting/api/ScriptingGraphics.cpp:3615–3631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3613}
3614
3615void ScriptingObjects::ScriptedLookAndFeel::Laf::drawAlertBox(Graphics& g_, AlertWindow& w, const Rectangle<int>& ta, TextLayout& tl)
3616{
3617 if (functionDefined("drawAlertWindow"))
3618 {
3619 auto obj = new DynamicObject();
3620
3621 obj->setProperty("area", ApiHelpers::getVarRectangle(w.getLocalBounds().toFloat()));
3622 obj->setProperty("title", w.getName());
3623
3624 addParentFloatingTile(w, obj);
3625
3626 if (get()->callWithGraphics(g_, "drawAlertWindow", var(obj), &w))
3627 return;
3628 }
3629
3630 GlobalHiseLookAndFeel::drawAlertBox(g_, w, ta, tl);
3631}
3632
3633void ScriptingObjects::ScriptedLookAndFeel::Laf::getIdealPopupMenuItemSize(const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight)
3634{

Callers

nothing calls this directly

Calls 7

varFunction · 0.85
getLocalBoundsMethod · 0.80
callWithGraphicsMethod · 0.80
getNameMethod · 0.65
getFunction · 0.50
setPropertyMethod · 0.45
toFloatMethod · 0.45

Tested by

no test coverage detected