LMMS
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
51 static void JUCE_CALLTYPE showMessageBox (MessageBoxIconType iconType,
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,
126
159 const String& title,
160 const String& message,
162 Component* associatedComponent = nullptr,
164 #else
165 Component* associatedComponent,
167 #endif
168
205 const String& title,
206 const String& message,
208 Component* associatedComponent = 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,
255 #else
256 Component* associatedComponent,
258 #endif
259
260private:
263};
264
265} // namespace juce
static void message(int level, const char *fmt,...)
Definition adplugdb.cpp:120
Definition juce_Component.h:36
Definition juce_MessageBoxOptions.h:63
Definition juce_ModalComponentManager.h:56
static int JUCE_CALLTYPE showYesNoBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Definition juce_linux_Windowing.cpp:919
static void JUCE_CALLTYPE showMessageBoxAsync(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent=nullptr, ModalComponentManager::Callback *callback=nullptr)
Definition juce_linux_Windowing.cpp:894
static bool JUCE_CALLTYPE showOkCancelBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Definition juce_linux_Windowing.cpp:902
static int JUCE_CALLTYPE showYesNoCancelBox(MessageBoxIconType iconType, const String &title, const String &message, Component *associatedComponent, ModalComponentManager::Callback *callback)
Definition juce_linux_Windowing.cpp:910
static void JUCE_CALLTYPE showAsync(const MessageBoxOptions &options, ModalComponentManager::Callback *callback)
Definition juce_linux_Windowing.cpp:928
Definition juce_String.h:53
static const char * title
Definition pugl.h:1747
#define JUCE_DECLARE_NON_COPYABLE(className)
#define JUCE_MODAL_LOOPS_PERMITTED
#define JUCE_CALLTYPE
Definition carla_juce.cpp:31
MessageBoxIconType
Definition juce_MessageBoxOptions.h:31
RECT const char void(* callback)(const char *droppath))) SWELL_API_DEFINE(BOOL
Definition swell-functions.h:1004