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

Construction-only settings for retained data presentation. More...

#include <data_presentation.hpp>

Public Member Functions

 ~DataStateConfig ()=default
 Release owning construction settings.

Public Attributes

bool showStatus {true}
 Mount a stable status strip; false creates no timer, labels or retry button.
std::int32_t statusRows {1}
 Positive fixed strip height in terminal rows, including READY.
DataContentPolicy contentPolicy
 REPLACE requires explicit independently owned work.
SchedulerTime spinnerInterval {100}
 Positive monotonic milliseconds between steps; no catch-up burst.
DataStateLabels labels
 Owning expressions, validated only when the strip is used.
std::function< std::expected< std::string, TextResourceError >(std::string_view)> resolver
 Owning mount-time i18n adapter; no automatic locale subscription.
ControlStyle messageStyle
 Manual message/indicator appearance beneath theme resolution.
ControlStyle retryStyle
 Manual retry appearance beneath theme resolution.
SizePolicy policy {DEFAULT_VIEWPORT_POLICY}
 Root layout constraints, validated by the existing solver.
std::function< std::expected< void, TreeError >()> retry
 Optional owning explicit action; never starts implicitly.

Detailed Description

Construction-only settings for retained data presentation.

Member Data Documentation

◆ contentPolicy

DataContentPolicy portals::DataStateConfig::contentPolicy
Initial value:
{
@ KEEP_BODY
Keep the body visible and prepared in every phase.
Definition data_presentation.hpp:64

REPLACE requires explicit independently owned work.


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