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

Checked adapter to the managed-owned click chain; never owns a widget or scene. More...

#include <ui_event_access.hpp>

Static Public Member Functions

template<class Callback>
static std::expected< void, ManagedError > attach (ManagedScene &scene, const Ref< Button > &reference, Callback callback, std::source_location origin)

Detailed Description

Checked adapter to the managed-owned click chain; never owns a widget or scene.

Member Function Documentation

◆ 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
CallbackOwning no-argument or ClickParams callback with a managed action result.
Parameters
sceneExisting owner in which the reference must have been published.
referenceObserving button identity, read only after immutable affinity admission.
callbackOwning callable transferred into the bounded managed registry.
originOriginal 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: