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

Copyable owning static description with one single-scene live binding identity. More...

#include <ui_style.hpp>

Public Member Functions

 LiveThemeStage (const LiveThemeStage &other) noexcept=default
LiveThemeStage & operator= (const LiveThemeStage &other) noexcept=default
 LiveThemeStage (const S &description, std::source_location origin)
LiveThemeRef< S > ref () const
template<style::ct::detail::Literal Name>
auto get (std::source_location origin=std::source_location::current()) const
template<style::ct::detail::Literal Name, class T>
std::expected< bool, ManagedError > set (T value, std::source_location origin=std::source_location::current()) const
template<class... C>
std::expected< bool, ManagedError > apply (C... changes) const

Friends

Scene & operator| (Scene &owner, const LiveThemeStage &stage)
Scene operator| (Scene &&input, const LiveThemeStage &stage)

Detailed Description

template<class S>
class portals::ui::LiveThemeStage< S >

Copyable owning static description with one single-scene live binding identity.

Template Parameters
SExisting validated static sheet type; no controller or UI ownership is retained by the stage. Failed first attachment stays unbound; same-scene reuse checks the original lease, another scene rejects. Cleanup permanently closes the identity; it never rebinds to another scene.

Constructor & Destructor Documentation

◆ LiveThemeStage() [1/2]

template<class S>
portals::ui::LiveThemeStage< S >::LiveThemeStage ( const LiveThemeStage< S > & other)
defaultnoexcept
Parameters
otherShared owning descriptor identity; rvalue transfer also preserves the source identity.

◆ LiveThemeStage() [2/2]

template<class S>
portals::ui::LiveThemeStage< S >::LiveThemeStage ( const S & description,
std::source_location origin )
inlineexplicit
Parameters
descriptionExisting owning static sheet copied before facade entry.
originStage registration site.

Member Function Documentation

◆ apply()

template<class S>
template<class... C>
std::expected< bool, ManagedError > portals::ui::LiveThemeStage< S >::apply ( C... changes) const
inline
Template Parameters
CExisting exact named update types.
Parameters
changesOne atomic candidate batch.
Returns
Same checked result as the weak ref.

◆ get()

template<class S>
auto portals::ui::LiveThemeStage< S >::get ( std::source_location origin = std::source_location::current()) const
inline
Template Parameters
NameExisting known parameter name.
Parameters
originRead call site retained in recoverable diagnostics.
Returns
Same checked value/error as the weak ref.

◆ operator=()

template<class S>
LiveThemeStage & portals::ui::LiveThemeStage< S >::operator= ( const LiveThemeStage< S > & other)
defaultnoexcept
Parameters
otherDescriptor identity to share without retaining a UI owner.
Returns
This stage after a nonallocating identity copy.

◆ ref()

template<class S>
LiveThemeRef< S > portals::ui::LiveThemeStage< S >::ref ( ) const
inline
Returns
Weak typed parameter observation, CLOSED before attachment or after cleanup.

◆ set()

template<class S>
template<style::ct::detail::Literal Name, class T>
std::expected< bool, ManagedError > portals::ui::LiveThemeStage< S >::set ( T value,
std::source_location origin = std::source_location::current() ) const
inline
Template Parameters
NameExisting known parameter name.
TExact scalar type.
Parameters
valueCandidate scalar.
originUpdate site.
Returns
Same checked atomic result as the weak ref.

◆ operator| [1/2]

template<class S>
Scene operator| ( Scene && input,
const LiveThemeStage< S > & stage )
friend
Parameters
inputConsumed idle facade, moved before stage dispatch.
stageShared owning descriptor.
Returns
Owning facade for temporary chains.

◆ operator| [2/2]

template<class S>
Scene & operator| ( Scene & owner,
const LiveThemeStage< S > & stage )
friend
Parameters
ownerStationary receiving facade.
stageShared owning descriptor identity.
Returns
Same facade after one checked binding registration.

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