Initial release

This commit is contained in:
civ
2026-08-16 18:24:52 +07:00
commit 876886a39a
13244 changed files with 2353959 additions and 0 deletions
@@ -0,0 +1,58 @@
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#pragma once
#include "fwd.h"
#include "../../lib/cstring.h"
#include "interface.h"
#include <functional>
//------------------------------------------------------------------------
namespace VSTGUI {
namespace Standalone {
//------------------------------------------------------------------------
/** Alert result
*
* @ingroup standalone
*/
enum class AlertResult
{
DefaultButton,
SecondButton,
ThirdButton,
Error,
};
//------------------------------------------------------------------------
/** Alertbox configuration
*
* @ingroup standalone
*/
struct AlertBoxConfig
{
UTF8String headline;
UTF8String description;
UTF8String defaultButton {"OK"};
UTF8String secondButton;
UTF8String thirdButton;
};
//------------------------------------------------------------------------
/** Alertbox for window configuration
*
* @ingroup standalone
*/
struct AlertBoxForWindowConfig : AlertBoxConfig
{
using Callback = std::function<void (AlertResult)>;
WindowPtr window;
Callback callback;
};
//------------------------------------------------------------------------
} // Standalone
} // VSTGUI