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

Checked registration bridge to the editor's existing managed-owned binding. More...

#include <ui_event_access.hpp>

Static Public Member Functions

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

Detailed Description

Checked registration bridge to the editor's existing managed-owned binding.

Member Function Documentation

◆ attach()

template<class Event, class Callback, class T>
std::expected< void, ManagedError > portals::ui::detail::EditorEventAccess::attach ( ManagedScene & scene,
const Ref< T > & reference,
Callback callback,
std::source_location origin )
inlinestatic
Template Parameters
EventTextEditedEvent or EditingFinishedEvent.
TEditor or Slider view supplied by the public family-checked stage.
CallbackOwning managed action receiving the event or no arguments.
Parameters
sceneExisting scene in which the editor reference was published.
referenceObserving identity; no widget or scene ownership is retained.
callbackOwning callable transferred to the combined finite editor registry.
originOriginal registration site retained in failure diagnostics.
Returns
Exact affinity, identity, budget or checked allocation error.

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