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

UI-only owning input/subscription registration; destroy before its borrowed tree/router. More...

#include <radio_group.hpp>

Public Member Functions

 ~RadioGroupBinding ()
 Disconnect this registration on its creating UI thread.
 RadioGroupBinding (RadioGroupBinding &&other) noexcept
RadioGroupBinding & operator= (RadioGroupBinding &&other) noexcept
 RadioGroupBinding (const RadioGroupBinding &)=delete
 Registrations have one owner.
RadioGroupBinding & operator= (const RadioGroupBinding &)=delete
 Copying cannot duplicate a live input registration.
std::expected< void, TreeError > sync ()
std::expected< RadioGroupValue, TreeError > value () const
RadioGroupResult select (std::optional< RowId > id)

Friends

std::expected< RadioGroupBinding, TreeError > bindRadioGroup (WidgetTree &tree, EventRouter &router, Node< RadioGroup > node, std::shared_ptr< Property< RadioGroupValue > > model, std::function< void(RadioGroupResult)> changed)

Detailed Description

UI-only owning input/subscription registration; destroy before its borrowed tree/router.

Constructor & Destructor Documentation

◆ RadioGroupBinding()

portals::RadioGroupBinding::RadioGroupBinding ( RadioGroupBinding && other)
noexcept
Parameters
otherRegistration transferred without changing its source or live node identity.

Member Function Documentation

◆ operator=()

RadioGroupBinding & portals::RadioGroupBinding::operator= ( RadioGroupBinding && other)
noexcept
Parameters
otherComplete replacement installed before retiring old captures.
Returns
This registration.

◆ select()

RadioGroupResult portals::RadioGroupBinding::select ( std::optional< RowId > id)
Parameters
idExisting ID or no selection.
Returns
Exact programmatic receipt; no user callback.

◆ sync()

std::expected< void, TreeError > portals::RadioGroupBinding::sync ( )
Returns
Synchronize latest authoritative snapshot or original tree failure.

◆ value()

std::expected< RadioGroupValue, TreeError > portals::RadioGroupBinding::value ( ) const
Returns
Exact current owning model value or CLOSED/WRONG_THREAD.

◆ bindRadioGroup

std::expected< RadioGroupBinding, TreeError > bindRadioGroup ( WidgetTree & tree,
EventRouter & router,
Node< RadioGroup > node,
std::shared_ptr< Property< RadioGroupValue > > model,
std::function< void(RadioGroupResult)> changed )
friend
Parameters
treeBorrowed live UI tree.
routerExisting router, no additional runtime.
nodeLive group without another binding.
modelAuthoritative coherent state.
changedRequired callback receiving the exact commit/delivery receipt, including failures.
Returns
Owning registration or original admission/allocation/tree error. Failed admission leaves no registration.

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