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

Cold per-Switch configuration; never retained by unrelated controls. More...

#include <ui_switch.hpp>

Public Attributes

bool readOnly {}
 Block user writes while retaining focus and programmatic bool access.
std::string offText {DEFAULT_SWITCH_OFF_TEXT}
 Owning same-width single-line decoration.
std::string onText {DEFAULT_SWITCH_ON_TEXT}
 Owning same-width single-line decoration.
KeyTextResolver resolver {}
 Optional caption resource resolver, called only during mount.

Detailed Description

Cold per-Switch configuration; never retained by unrelated controls.


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