Weak numeric property facade with an owning saved operation observation. Mutation returns a new observation and leaves this proxy's previous saved result unchanged. Errors use the existing scene collector. Copies own neither the widget nor its scene. Copying a proxy/result can allocate in existing diagnostic storage; no implicit numeric conversion exists.
More...
#include <ui_ref.hpp>
|
|
template<class> |
| class | Ref |
Weak numeric property facade with an owning saved operation observation. Mutation returns a new observation and leaves this proxy's previous saved result unchanged. Errors use the existing scene collector. Copies own neither the widget nor its scene. Copying a proxy/result can allocate in existing diagnostic storage; no implicit numeric conversion exists.
◆ NumericProperty() [1/2]
| portals::ui::NumericProperty::NumericProperty |
( |
const NumericProperty & | other | ) |
|
|
default |
- Parameters
-
| other | Observation copied without reading or changing a numeric source. |
◆ NumericProperty() [2/2]
| portals::ui::NumericProperty::NumericProperty |
( |
NumericProperty && | other | ) |
|
|
default |
- Parameters
-
| other | Observation transferred without reading or changing a numeric source. |
◆ get()
| std::expected< double, ManagedError > portals::ui::NumericProperty::get |
( |
| ) |
const |
- Returns
- Current checked double or exact owner/thread/frame/model error; no diagnostic is reported.
◆ operator=() [1/2]
- Parameters
-
| other | Source property read exactly once before writing this target's numeric value. |
- Returns
- New owning assignment observation; this proxy's saved result stays unchanged. No binding or bounds are copied.
◆ operator=() [2/2]
- Parameters
-
| value | Replacement copied during this UI-affine call. |
- Returns
- New owning exact operation observation; this proxy's saved result stays unchanged. Errors are automatically collected.
◆ result()
- Returns
- Exact operation saved in this observation; a fresh proxy returns INVALID_ARGUMENT without reporting. Later mutations through this proxy return new observations and do not replace this saved result.
◆ set()
| NumericProperty portals::ui::NumericProperty::set |
( |
double | value, |
|
|
std::source_location | origin = std::source_location::current() ) |
- Parameters
-
| value | Finite in-range replacement; never clamped or user-step snapped. |
| origin | Assignment site retained by the existing collector on failure. |
- Returns
- New owning operation observation; this proxy's saved result stays unchanged. Equal values return the exact no-op receipt.
The documentation for this class was generated from the following file: