|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Owning UI-only request builder; borrowed callback captures remain the caller's responsibility. More...
#include <toast.hpp>
Public Member Functions | |
| ToastMessage (TextValue text, ToastOptions options={}) | |
| ToastMessage && | info () && |
| ToastMessage && | success () && |
| ToastMessage && | warning () && |
| ToastMessage && | error () && |
| template<class Callback> requires detail::ToastAction<Callback> | |
| ToastMessage && | action (TextValue label, Callback callback) && |
| template<class Callback> requires detail::ToastAction<Callback> | |
| ToastMessage && | action (std::string_view label, Callback callback) && |
Friends | |
| struct | detail::NotificationAccess |
| class | portals::ManagedScene |
Owning UI-only request builder; borrowed callback captures remain the caller's responsibility.
|
inlineexplicit |
| text | Owning message expression. |
| options | Owning request policy, checked at adoption. |
|
inline |
| Callback | Same action contract as the owning-text overload. |
| label | Borrowed bytes copied immediately. |
| callback | Owning UI action. |
|
inline |
| Callback | Copyable callable accepting const ToastActionEvent& or no argument, returning void or expected<void,TreeError>. |
| label | Owning nonempty action caption. |
| callback | UI-owned callable; never transferred to workers. |
|
inline |
|
inline |
|
inline |
|
inline |