| 701 | } |
| 702 | |
| 703 | AlertWindow* 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 | |
| 734 | void LookAndFeelBase::drawAlertBox(Graphics &g, AlertWindow &window, const Rectangle<int> &textArea, TextLayout &layout) |
| 735 | { |
no test coverage detected