38 #if JUCE_MODAL_LOOPS_PERMITTED
54 Component* associatedComponent =
nullptr);
124 Component* associatedComponent =
nullptr,
162 Component* associatedComponent =
nullptr,
208 Component* associatedComponent =
nullptr,
253 Component* associatedComponent =
nullptr,
The base class for all JUCE user-interface objects.
Class used to create a set of options to pass to the AlertWindow and NativeMessageBox methods for sho...
Receives callbacks when a modal component is dismissed.
This class contains some static methods for showing native alert windows.
static int JUCE_CALLTYPE showYesNoBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Shows a dialog box with two buttons.
static void JUCE_CALLTYPE showMessageBoxAsync(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent=nullptr, ModalComponentManager::Callback *callback=nullptr)
Shows a dialog box that just has a message and a single 'ok' button to close it.
static bool JUCE_CALLTYPE showOkCancelBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Shows a dialog box with two buttons.
static ScopedMessageBox showScopedAsync(const MessageBoxOptions &options, std::function< void(int)> callback)
Shows a dialog box using the specified options.
static int JUCE_CALLTYPE showYesNoCancelBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Shows a dialog box with three buttons.
static void JUCE_CALLTYPE showAsync(const MessageBoxOptions &options, ModalComponentManager::Callback *callback)
Shows a dialog box using the specified options.
Objects of this type can be used to programmatically close message boxes.
MessageBoxIconType
The type of icon to show in the dialog box.