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

Private bridge reusing managed lifetime, affinity and mutation boundaries. More...

#include <style_static.hpp>

Static Public Member Functions

static std::weak_ptr< const void > lifetime (ManagedScene &scene)
static std::thread::id owner (ManagedScene &scene)
static std::expected< void, ManagedError > boundary (ManagedScene &scene)
static bool pending (ManagedScene &scene) noexcept
static portals::detail::StyleThemeLease lease (ManagedScene &scene)
static std::expected< void, ManagedError > checkLease (ManagedScene &scene, portals::detail::StyleThemeLease lease)
static auto attachTheme (ManagedScene &scene, const StyleSheet &sheet, portals::detail::StyleThemeLease lease)
static auto applyTheme (ManagedScene &scene, const StyleSheet &sheet, portals::detail::StyleThemeLease lease)

Detailed Description

Private bridge reusing managed lifetime, affinity and mutation boundaries.

Member Function Documentation

◆ applyTheme()

auto portals::style::ct::detail::Access::applyTheme ( ManagedScene & scene,
const StyleSheet & sheet,
portals::detail::StyleThemeLease lease )
inlinestatic
Parameters
sceneLive scene.
sheetMaterialized replacement.
leaseCurrent controller authority; no handoff occurs.
Returns
Original atomic installation result.

◆ attachTheme()

auto portals::style::ct::detail::Access::attachTheme ( ManagedScene & scene,
const StyleSheet & sheet,
portals::detail::StyleThemeLease lease )
inlinestatic
Parameters
sceneLive scene.
sheetMaterialized declarations.
leasePreallocation authority checked again before installation.
Returns
Newly acquired authority or original atomic failure.

◆ boundary()

std::expected< void, ManagedError > portals::style::ct::detail::Access::boundary ( ManagedScene & scene)
inlinestatic
Parameters
sceneExisting owner, borrowed only after affinity and lifetime admission.
Returns
Original STYLE boundary result, including close, preparation, reporting and tree frame checks.

◆ checkLease()

std::expected< void, ManagedError > portals::style::ct::detail::Access::checkLease ( ManagedScene & scene,
portals::detail::StyleThemeLease lease )
inlinestatic
Parameters
sceneLive admitted scene.
leaseCaptured theme authority, checked even for equal updates.
Returns
STYLE error if authority was revoked.

◆ lease()

portals::detail::StyleThemeLease portals::style::ct::detail::Access::lease ( ManagedScene & scene)
inlinestatic
Parameters
sceneAdmitted scene, borrowed without retaining its lifetime.
Returns
Current mode/epoch and reserved theme authority.

◆ lifetime()

std::weak_ptr< const void > portals::style::ct::detail::Access::lifetime ( ManagedScene & scene)
inlinestatic
Parameters
sceneExisting managed owner.
Returns
Its existing weak lifetime token; never extends scene lifetime.

◆ owner()

std::thread::id portals::style::ct::detail::Access::owner ( ManagedScene & scene)
inlinestatic
Parameters
sceneExisting managed owner.
Returns
Immutable UI identity checked before observer dereference.

◆ pending()

bool portals::style::ct::detail::Access::pending ( ManagedScene & scene)
inlinestaticnoexcept
Parameters
sceneLive scene admitted by the controller boundary.
Returns
Whether equal layered values must also publish deferred metadata.

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