|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Weak checked numeric source over the existing scene-owned Property runtime. Copies own no scene/widget. All reads and writes are UI-affine; saved snapshots are independent. More...
#include <managed.hpp>
Public Member Functions | |
| NumericState ()=default | |
| Create an empty handle whose operations return CLOSED. | |
| std::expected< std::shared_ptr< const PropertyChange< NumericValue > >, ManagedError > | snapshot () const |
| std::expected< PropertyUpdate< NumericValue >, ManagedError > | set (double candidate) const |
| std::expected< PropertyUpdate< NumericValue >, ManagedError > | configure (double initial, NumericRange range) const |
Friends | |
| class | ManagedScene |
Weak checked numeric source over the existing scene-owned Property runtime. Copies own no scene/widget. All reads and writes are UI-affine; saved snapshots are independent.
| std::expected< PropertyUpdate< NumericValue >, ManagedError > portals::NumericState::configure | ( | double | initial, |
| NumericRange | range ) const |
| initial | Explicit new finite value in the complete new range; never clamped. |
| range | Ordered finite bounds and positive representable user increment. |
| std::expected< PropertyUpdate< NumericValue >, ManagedError > portals::NumericState::set | ( | double | candidate | ) | const |
| candidate | Finite in-range value, never rounded to the user step grid. |
| std::expected< std::shared_ptr< const PropertyChange< NumericValue > >, ManagedError > portals::NumericState::snapshot | ( | ) | const |