Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::NotificationOptions Struct Reference

Fixed host budgets and explicit localization; no borrowed option spans. More...

#include <toast.hpp>

Public Member Functions

 ~NotificationOptions ()=default
 Retain ordinary fallible copies of owning resolver storage.

Public Attributes

std::size_t capacity {32}
 Positive total budget including selected records.
std::size_t maxVisible {3}
 Logical selection cap in [1, capacity].
ToastPlacement placement {ToastPlacement::BOTTOM_END}
 Corner for retained row placement.
std::int32_t maximumWidth {48}
 Positive width cap in terminal cells.
std::int32_t margin {1}
 Nonnegative viewport inset, clamped at tiny extents.
std::int32_t gap {1}
 Nonnegative row separation, clamped to the viewport.
ToastOverflowPolicy overflow
 Never evict visible, persistent or running actions.
bool refreshDeduplicated {}
 Refresh only an existing, previously presented transient deadline.
bool reducedMotion {}
 Retain static indicators while disabling alternation.
TextLimits textLimits {16384, 4096, 16384, 32768}
 Full resolved message validation caps.
std::size_t actionLabelBytes {256}
 Positive action-label byte cap.
std::size_t dedupKeyBytes {128}
 Positive deduplication-key byte cap.
std::size_t maxPaintCells {16384}
 Positive per-card allocated paint-area cap.
std::function< std::expected< std::string, TextResourceError >(std::string_view)> textResolver
 UI-only explicit owning resolver.

Detailed Description

Fixed host budgets and explicit localization; no borrowed option spans.

Member Data Documentation

◆ overflow

ToastOverflowPolicy portals::NotificationOptions::overflow
Initial value:
{
@ DROP_OLDEST_PENDING
Evict the oldest eligible queued transient, otherwise drop the new request.
Definition toast.hpp:45

Never evict visible, persistent or running actions.


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