Coherent immutable resident options and optional selection; copies share all row storage. No mutable aliases escape. Empty construction represents no options and no selection. Selection changes reuse the prepared row/index projection; retained values outlive the UI.
More...
#include <radio_group.hpp>
|
|
class | RadioGroup |
|
class | ManagedScene |
|
class | RadioGroupBinding |
Coherent immutable resident options and optional selection; copies share all row storage. No mutable aliases escape. Empty construction represents no options and no selection. Selection changes reuse the prepared row/index projection; retained values outlive the UI.
◆ firstEligible()
| std::optional< RowId > portals::RadioGroupValue::firstEligible |
( |
| ) |
const |
|
noexcept |
- Returns
- First enabled visible ID, or no selection.
◆ from()
- Parameters
-
| rows | Owning stable IDs and validated captions with one common width policy. |
| selected | Existing full ID, including disabled/hidden rows, or no selection. |
- Returns
- Prepared value or INVALID_ARGUMENT/INVALID_GEOMETRY/NO_MEMORY.
◆ operator==()
| bool portals::RadioGroupValue::operator== |
( |
const RadioGroupValue & | other | ) |
const |
- Parameters
-
| other | Independent owning value. |
- Returns
- Equal ordered rows and selection; shared sources compare cheaply.
◆ rows()
- Returns
- Borrowed immutable rows, valid while this value remains alive.
◆ selectedId()
| std::optional< RowId > portals::RadioGroupValue::selectedId |
( |
| ) |
const |
|
noexcept |
- Returns
- Optional stable identity, independent of position and caption.
◆ selectedText()
| std::string_view portals::RadioGroupValue::selectedText |
( |
| ) |
const |
|
noexcept |
- Returns
- Selected caption bytes borrowed from this value; empty when unselected.
◆ withSelection()
- Parameters
-
| selected | Existing full ID or no selection. |
- Returns
- Cheap coherent replacement or INVALID_ARGUMENT.
The documentation for this class was generated from the following file: