SavvyUI C++ UI Library
Loading...
Searching...
No Matches
ToastFactory Class Reference

A utility class providing static methods to show common toast messages. More...

#include <ToastFactory.h>

Static Public Member Functions

static void showError (Component *parent, const wstring &errorMessage, const wstring &title=L"")
 Shows an error message toast.
static void showWarning (Component *parent, const wstring &warningMessage, const wstring &title=L"")
 Shows a warning message toast.
static void showInfo (Component *parent, const wstring &infoMessage, const wstring &title=L"")
 Shows an informational message toast.
static void showSuccess (Component *parent, const wstring &successMessage, const wstring &title=L"")
 Shows a success message toast.

Detailed Description

A utility class providing static methods to show common toast messages.

This factory class offers convenient static methods to display error, warning, info, and success messages.

Member Function Documentation

◆ showError()

void ToastFactory::showError ( Component * parent,
const wstring & errorMessage,
const wstring & title = L"" )
static

Shows an error message toast.

Parameters
hParentHandle to the parent window.
errorMessageThe error message to display.
titleOptional toast title. Defaults to an empty string.

◆ showInfo()

void ToastFactory::showInfo ( Component * parent,
const wstring & infoMessage,
const wstring & title = L"" )
static

Shows an informational message toast.

Parameters
hParentHandle to the parent window.
infoMessageThe informational message to display.
titleOptional toast title. Defaults to an empty string.

◆ showSuccess()

void ToastFactory::showSuccess ( Component * parent,
const wstring & successMessage,
const wstring & title = L"" )
static

Shows a success message toast.

Parameters
hParentHandle to the parent window.
successMessageThe success message to display.
titleOptional toast title. Defaults to an empty string.

◆ showWarning()

void ToastFactory::showWarning ( Component * parent,
const wstring & warningMessage,
const wstring & title = L"" )
static

Shows a warning message toast.

Parameters
hParentHandle to the parent window.
warningMessageThe warning message to display.
titleOptional toast title. Defaults to an empty string.

The documentation for this class was generated from the following file: