Checked adapter to the managed-owned click chain; never owns a widget or scene.
More...
#include <ui_event_access.hpp>
Checked adapter to the managed-owned click chain; never owns a widget or scene.
◆ attach()
template<class Callback>
| std::expected< void, ManagedError > portals::ui::detail::ClickAccess::attach |
( |
ManagedScene & | scene, |
|
|
const Ref< Button > & | reference, |
|
|
Callback | callback, |
|
|
std::source_location | origin ) |
|
inlinestatic |
- Template Parameters
-
| Callback | Owning no-argument or ClickParams callback with a managed action result. |
- Parameters
-
| scene | Existing owner in which the reference must have been published. |
| reference | Observing button identity, read only after immutable affinity admission. |
| callback | Owning callable transferred into the bounded managed registry. |
| origin | Original registration site retained for callback failures. |
- Returns
- Success or exact affinity, identity, registration or allocation error.
The documentation for this struct was generated from the following file: