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

Numeric draft assignment observation. The saved result distinguishes draft acceptance from publication. get() reads the valid visible numeric draft. Copies retain observations without retaining the scene. More...

#include <ui_ref.hpp>

Public Member Functions

 SpinBoxNumericProperty (const SpinBoxNumericProperty &other)=default
 SpinBoxNumericProperty (SpinBoxNumericProperty &&other)=default
std::expected< double, ManagedError > get () const
std::expected< SpinBoxResult, ManagedError > result () const
SpinBoxNumericProperty set (double value, std::source_location origin=std::source_location::current())
SpinBoxNumericProperty operator= (double value)
SpinBoxNumericProperty operator= (const SpinBoxNumericProperty &other)

Friends

template<class>
class Ref

Detailed Description

Numeric draft assignment observation. The saved result distinguishes draft acceptance from publication. get() reads the valid visible numeric draft. Copies retain observations without retaining the scene.

Constructor & Destructor Documentation

◆ SpinBoxNumericProperty() [1/2]

portals::ui::SpinBoxNumericProperty::SpinBoxNumericProperty ( const SpinBoxNumericProperty & other)
default
Parameters
otherObservation copied without reading the editor or source.

◆ SpinBoxNumericProperty() [2/2]

portals::ui::SpinBoxNumericProperty::SpinBoxNumericProperty ( SpinBoxNumericProperty && other)
default
Parameters
otherObservation transferred without reading the editor or source.

Member Function Documentation

◆ get()

std::expected< double, ManagedError > portals::ui::SpinBoxNumericProperty::get ( ) const
Returns
Valid visible numeric draft, typed numeric rejection, or exact checked access error.

◆ operator=() [1/2]

SpinBoxNumericProperty portals::ui::SpinBoxNumericProperty::operator= ( const SpinBoxNumericProperty & other)
Parameters
otherNumeric source read once.
Returns
Independent assignment observation.

◆ operator=() [2/2]

SpinBoxNumericProperty portals::ui::SpinBoxNumericProperty::operator= ( double value)
Parameters
valueFinite replacement.
Returns
Independent assignment observation.

◆ result()

std::expected< SpinBoxResult, ManagedError > portals::ui::SpinBoxNumericProperty::result ( ) const
Returns
Original editing result and optional numeric commit; a fresh proxy returns INVALID_ARGUMENT.

◆ set()

SpinBoxNumericProperty portals::ui::SpinBoxNumericProperty::set ( double value,
std::source_location origin = std::source_location::current() )
Parameters
valueFinite in-range replacement, following EditMode.
originAssignment site.
Returns
Independent draft/commit observation; errors are automatically collected.

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