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

Checked adapter to managed-owned layout observations; never owns a widget or scene. More...

#include <ui_event_access.hpp>

Static Public Member Functions

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

Detailed Description

Checked adapter to managed-owned layout observations; never owns a widget or scene.

Member Function Documentation

◆ attach()

template<class T, class Callback>
std::expected< void, ManagedError > portals::ui::detail::LayoutAccess::attach ( ManagedScene & scene,
const Ref< T > & reference,
Callback callback,
std::source_location origin )
inlinestatic
Template Parameters
TObserved widget type.
CallbackOwning compact geometry action.
Parameters
sceneExisting receiving managed owner.
referenceImmutable-affinity checked observing reference.
callbackAction transferred after scene identity admission.
originOriginal registration site.
Returns
Success or exact checked admission/registration failure.

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