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

Shared owning descriptor identity, retaining only weak UI binding observations. More...

#include <ui_style.hpp>

Inheritance diagram for portals::ui::detail::LiveDescriptor< S >:
portals::ui::detail::LiveDescriptor< S >portals::ui::detail::LiveDescriptor< S > portals::ui::detail::LiveFactory

Public Member Functions

std::expected< std::shared_ptr< LiveBinding >, ManagedError > create (const std::shared_ptr< SceneAnchor > &receiving) override
 LiveDescriptor (const S &value)

Public Attributes

const S description
 Immutable owning static sheet, independent of caller storage.
const std::thread::id owner = std::this_thread::get_id()
 Immutable descriptor affinity.
std::weak_ptr< LiveController< S > > binding
 Published only after successful attachment.
std::weak_ptr< SceneAnchor > anchor
 Original single receiving facade identity.
bool bound {}
 Permanent first-success marker; cleanup never permits rebinding.

Detailed Description

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

Shared owning descriptor identity, retaining only weak UI binding observations.

Template Parameters
SExisting validated static stylesheet type, copied before receiving facade entry.

Constructor & Destructor Documentation

◆ LiveDescriptor()

template<class S>
portals::ui::detail::LiveDescriptor< S >::LiveDescriptor ( const S & value)
inlineexplicit
Parameters
valueExisting validated owning static stylesheet copied before any UI binding.

Member Function Documentation

◆ create()

template<class S>
std::expected< std::shared_ptr< LiveBinding >, ManagedError > portals::ui::detail::LiveDescriptor< S >::create ( const std::shared_ptr< SceneAnchor > & receiving)
inlineoverridevirtual
Parameters
receivingReceiving facade identity, checked before controller publication.
Returns
Existing binding for reuse, a new owning binding, or an exact admission error.

Implements portals::ui::detail::LiveFactory.


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