Checked registration bridge to the checkbox's sole managed binding.
More...
#include <ui_event_access.hpp>
|
| template<class T, class Callback> |
| static std::expected< void, ManagedError > | attach (ManagedScene &scene, const Ref< T > &reference, Callback callback, std::source_location origin) |
Checked registration bridge to the checkbox's sole managed binding.
◆ attach()
template<class T, class Callback>
| std::expected< void, ManagedError > portals::ui::detail::ChangeAccess::attach |
( |
ManagedScene & | scene, |
|
|
const Ref< T > & | reference, |
|
|
Callback | callback, |
|
|
std::source_location | origin ) |
|
inlinestatic |
- Template Parameters
-
| T | Checkbox view type. |
| Callback | Owning value or receipt action. |
- Parameters
-
| scene | Existing receiving owner. |
| reference | Observing checkbox identity. |
| callback | Action transferred after affinity admission. |
| origin | Original registration site. |
- Returns
- Exact checked liveness, affinity, backing-model or registration failure.
The documentation for this struct was generated from the following file: