Checked registration bridge to the editor's existing managed-owned binding.
More...
#include <ui_event_access.hpp>
|
| 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) |
Checked registration bridge to the editor's existing managed-owned binding.
◆ 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
-
- Parameters
-
| scene | Existing scene in which the editor reference was published. |
| reference | Observing identity; no widget or scene ownership is retained. |
| callback | Owning callable transferred to the combined finite editor registry. |
| origin | Original 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: