Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::LiveController< S > Struct Template Referencefinal

Scene-owned actual existing controller with weak publication only. More...

#include <ui_style.hpp>

Inheritance diagram for portals::ui::detail::LiveController< S >:
portals::ui::detail::LiveController< S >portals::ui::detail::LiveController< S > portals::ui::detail::LiveBinding

Public Member Functions

 LiveController (std::shared_ptr< LiveDescriptor< S > > value)
std::expected< bool, ManagedError > attach (ManagedScene &scene, const std::shared_ptr< SceneAnchor > &anchor) override

Public Attributes

std::shared_ptr< LiveDescriptor< S > > descriptor
 Owns the descriptor, never an additional UI owner.
style::ct::LiveTheme< S > controller
 Existing theme controller and authority lease.
std::shared_ptr< RefTarget > events = std::make_shared<RefTarget>()
 Preallocated weak collector observation.

Detailed Description

template<class S>
struct portals::ui::detail::LiveController< S >

Scene-owned actual existing controller with weak publication only.

Template Parameters
SExisting validated static stylesheet type.

Constructor & Destructor Documentation

◆ LiveController()

template<class S>
portals::ui::detail::LiveController< S >::LiveController ( std::shared_ptr< LiveDescriptor< S > > value)
inlineexplicit
Parameters
valueShared owning descriptor; no scene or theme is attached during construction.

Member Function Documentation

◆ attach()

template<class S>
std::expected< bool, ManagedError > portals::ui::detail::LiveController< S >::attach ( ManagedScene & scene,
const std::shared_ptr< SceneAnchor > & anchor )
inlineoverridevirtual

Parameters
sceneExisting managed owner.
anchorReceiving facade identity; publication is weak and occurs only on successful attach.
Returns
True for first bind, false for checked reuse, or exact failure. Controller/publication candidates are allocated before installing the theme.

Implements portals::ui::detail::LiveBinding.


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