You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#if !defined(Q_MOC_RUN)
|
|
#include <AzQtComponents/AzQtComponentsAPI.h>
|
|
#include <AzCore/Memory/SystemAllocator.h>
|
|
#include <AzCore/std/chrono/chrono.h>
|
|
#include <QString>
|
|
#endif
|
|
|
|
namespace AzQtComponents
|
|
{
|
|
enum class ToastType
|
|
{
|
|
Information,
|
|
Warning,
|
|
Error,
|
|
Custom
|
|
};
|
|
|
|
class AZ_QT_COMPONENTS_API ToastConfiguration
|
|
{
|
|
public:
|
|
ToastConfiguration(ToastType toastType, const QString& title, const QString& description);
|
|
|
|
bool m_closeOnClick = true;
|
|
|
|
ToastType m_toastType = ToastType::Information;
|
|
|
|
QString m_title;
|
|
QString m_description;
|
|
QString m_customIconImage;
|
|
uint32_t m_borderRadius = 0;
|
|
|
|
AZ_PUSH_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
|
AZStd::chrono::milliseconds m_duration = AZStd::chrono::milliseconds(5000);
|
|
AZStd::chrono::milliseconds m_fadeDuration = AZStd::chrono::milliseconds(250);
|
|
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
|
};
|
|
} // namespace AzQtComponents
|