|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
UI-affine owner of the editor source and nonfocusable arrow actions. More...
#include <spin_box.hpp>
Public Member Functions | |
| ~SpinBoxBinding () | |
| Disconnect future input/data delivery; admitted callbacks retain their owners. | |
| SpinBoxBinding (SpinBoxBinding &&other) noexcept | |
| SpinBoxBinding & | operator= (SpinBoxBinding &&other) noexcept |
| SpinBoxBinding (const SpinBoxBinding &)=delete | |
| SpinBoxBinding & | operator= (const SpinBoxBinding &)=delete |
| std::expected< void, TreeError > | sync (Node< Widget > focused) |
| std::expected< SpinBoxResult, TreeError > | setValue (double value) |
Friends | |
| class | ManagedScene |
| std::expected< SpinBoxBinding, TreeError > | bindSpinBox (WidgetTree &tree, EventRouter &router, Node< LineEdit > editor, Node< Button > decrease, Node< Button > increase, std::shared_ptr< Property< NumericValue > > model, std::uint64_t pageSteps, std::function< void(SpinBoxResult)> result, LineEditEvents events={}) |
| Bind pre-mounted editor/decrement/increment children of one SpinBox. | |
UI-affine owner of the editor source and nonfocusable arrow actions.
|
noexcept |
| other | Token transferred on UI outside frames. |
|
noexcept |
| other | Token replacing this binding on UI outside frames. |
| std::expected< SpinBoxResult, TreeError > portals::SpinBoxBinding::setValue | ( | double | value | ) |
| value | Finite in-range replacement, following the editor's EditMode. |
| focused | Current router focus. |
|
friend |
Bind pre-mounted editor/decrement/increment children of one SpinBox.
| tree | Borrowed UI tree outliving the binding. |
| router | Borrowed matching router. |
| editor | The single ordinary editor. |
| decrease | Nonfocusable plain decrement button. |
| increase | Nonfocusable plain increment button. |
| model | Required authoritative numeric source. |
| pageSteps | Positive number of increments per PageUp/PageDown. |
| result | Required owning result observer; callbacks may remove nodes or destroy the binding. |
| events | Existing typed text and confirmation observations. |