JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
juce_NativeMessageBox.h
Go to the documentation of this file.
1 /*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
36{
37public:
38 #if JUCE_MODAL_LOOPS_PERMITTED
52 const String& title,
53 const String& message,
54 Component* associatedComponent = nullptr);
55
66 static int JUCE_CALLTYPE show (const MessageBoxOptions& options);
67 #endif
68
84 static void JUCE_CALLTYPE showAsync (const MessageBoxOptions& options,
86
98 static void JUCE_CALLTYPE showAsync (const MessageBoxOptions& options,
99 std::function<void (int)> callback);
100
122 const String& title,
123 const String& message,
124 Component* associatedComponent = nullptr,
125 ModalComponentManager::Callback* callback = nullptr);
126
159 const String& title,
160 const String& message,
162 Component* associatedComponent = nullptr,
163 ModalComponentManager::Callback* callback = nullptr);
164 #else
165 Component* associatedComponent,
167 #endif
168
205 const String& title,
206 const String& message,
208 Component* associatedComponent = nullptr,
209 ModalComponentManager::Callback* callback = nullptr);
210 #else
211 Component* associatedComponent,
213 #endif
214
249 static int JUCE_CALLTYPE showYesNoBox (MessageBoxIconType iconType,
250 const String& title,
251 const String& message,
253 Component* associatedComponent = nullptr,
254 ModalComponentManager::Callback* callback = nullptr);
255 #else
256 Component* associatedComponent,
258 #endif
259
295 std::function<void (int)> callback);
296
297private:
298 NativeMessageBox() = delete;
300};
301
302} // namespace juce
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.
The JUCE String class!
Definition juce_String.h:53
#define JUCE_DECLARE_NON_COPYABLE(className)
This is a shorthand macro for deleting a class's copy constructor and copy assignment operator.
#define JUCE_MODAL_LOOPS_PERMITTED
Some operating environments don't provide a modal loop mechanism, so this flag can be used to disable...
#define JUCE_CALLTYPE
This macro defines the C calling convention used as the standard for JUCE calls.
JUCE Namespace.
MessageBoxIconType
The type of icon to show in the dialog box.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88