MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / createAlertWindow

Method createAlertWindow

Source/Lua/JuceClasses/LComponents.cpp:703–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703AlertWindow* LookAndFeelBase::createAlertWindow(const String &title, const String &message, const String &button1, const String &button2, const String &button3, AlertWindow::AlertIconType iconType, int numButtons, Component* component)
704{
705 using namespace luabind;
706
707 if (methods.contains("createAlertWindow"))
708 {
709 try
710 {
711 AlertWindow *wnd = call_function<AlertWindow*>(
712 methods["createAlertWindow"], title, message, button1, button2, button3, iconType, numButtons, component
713 );
714
715 if (wnd != nullptr)
716 {
717 return (wnd);
718 }
719
720 return (LookAndFeel_V2::createAlertWindow(title, message, button1, button2, button3, iconType, numButtons, component));
721 }
722 catch (luabind::error &e)
723 {
724 _WRN(object_cast <std::string> (object(luabind::from_stack(e.state(), -1))));
725 return (LookAndFeel_V2::createAlertWindow(title, message, button1, button2, button3, iconType, numButtons, component));
726 }
727 }
728 else
729 {
730 return (LookAndFeel_V2::createAlertWindow(title, message, button1, button2, button3, iconType, numButtons, component));
731 }
732}
733
734void LookAndFeelBase::drawAlertBox(Graphics &g, AlertWindow &window, const Rectangle<int> &textArea, TextLayout &layout)
735{

Callers 1

gatherSnapshotDataMethod · 0.45

Calls 4

from_stackClass · 0.85
stateMethod · 0.80
objectClass · 0.50
containsMethod · 0.45

Tested by

no test coverage detected