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

Owning cold caption and eligibility for ordinary radio model creation; no hand-written ID required. More...

#include <radio_group.hpp>

Public Member Functions

 RadioOption (std::string_view caption, bool enabled=true, bool visible=true)
 RadioOption (TextValue caption, bool enabled=true, bool visible=true)
 ~RadioOption ()=default
 Release the cold owning expression; copies retain ordinary fallible value semantics.

Public Attributes

TextValue text
 Literal or resource key, resolved with the receiving scene policy.
bool enabled {true}
 User input eligibility; selection is preserved when disabled.
bool visible {true}
 Whether the option occupies a row.

Detailed Description

Owning cold caption and eligibility for ordinary radio model creation; no hand-written ID required.

Constructor & Destructor Documentation

◆ RadioOption() [1/2]

portals::RadioOption::RadioOption ( std::string_view caption,
bool enabled = true,
bool visible = true )
inline
Parameters
captionOwning literal bytes.
enabledInput eligibility.
visibleRow visibility.

◆ RadioOption() [2/2]

portals::RadioOption::RadioOption ( TextValue caption,
bool enabled = true,
bool visible = true )
inline
Parameters
captionOwning literal/resource expression.
enabledEligibility.
visibleRow visibility.

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