SavvyUI C++ UI Library
Loading...
Searching...
No Matches
ToastFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4#include "ToolTip.h"
5
14{
15 static ToolTip _toast;
16
17 static void createToast(Component *parent);
18
19public:
27 static void showError(Component *parent, const wstring& errorMessage, const wstring& title = L"");
28
36 static void showWarning(Component *parent, const wstring& warningMessage, const wstring& title = L"");
37
45 static void showInfo(Component *parent, const wstring& infoMessage, const wstring& title = L"");
46
54 static void showSuccess(Component *parent, const wstring& successMessage, const wstring& title = L"");
55};
56
Base class for all UI components providing window creation, event handling, and listener management.
Definition Component.h:32
A utility class providing static methods to show common toast messages.
Definition ToastFactory.h:14
static void showInfo(Component *parent, const wstring &infoMessage, const wstring &title=L"")
Shows an informational message toast.
static void showWarning(Component *parent, const wstring &warningMessage, const wstring &title=L"")
Shows a warning message toast.
static void showError(Component *parent, const wstring &errorMessage, const wstring &title=L"")
Shows an error message toast.
static void showSuccess(Component *parent, const wstring &successMessage, const wstring &title=L"")
Shows a success message toast.
A UI component for displaying tooltips. USAGE:
Definition ToolTip.h:15