ASPiK SDK
ialertbox.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "fwd.h"
8 #include "../../lib/cstring.h"
9 #include "interface.h"
10 #include <functional>
11 
12 //------------------------------------------------------------------------
13 namespace VSTGUI {
14 namespace Standalone {
15 
16 //------------------------------------------------------------------------
21 enum class AlertResult
22 {
23  DefaultButton,
24  SecondButton,
25  ThirdButton,
26  Error,
27 };
28 
29 //------------------------------------------------------------------------
35 {
36  UTF8String headline;
37  UTF8String description;
38  UTF8String defaultButton {"OK"};
39  UTF8String secondButton;
40  UTF8String thirdButton;
41 };
42 
43 //------------------------------------------------------------------------
49 {
50  using Callback = std::function<void (AlertResult)>;
51 
52  WindowPtr window;
53  Callback callback;
54 };
55 
56 //------------------------------------------------------------------------
57 } // Standalone
58 } // VSTGUI
Definition: customcontrols.cpp:8
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56
AlertResult
Definition: ialertbox.h:21
Definition: ialertbox.h:34