Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::CurrentSceneScope Class Reference

Allocation-free UI execution publication; an empty scope suspends the caller's scene. More...

#include <current_scene.hpp>

Public Member Functions

 CurrentSceneScope (std::weak_ptr< SceneAnchor > scene={}) noexcept
 CurrentSceneScope (const CurrentSceneScope &)=delete
 A linked stack publication cannot be copied.
CurrentSceneScope & operator= (const CurrentSceneScope &)=delete
 A linked stack publication cannot be reassigned.
 ~CurrentSceneScope ()
 Restore the previous publication before returning to the caller.

Static Public Member Functions

static std::weak_ptr< SceneAnchor > snapshot () noexcept

Detailed Description

Allocation-free UI execution publication; an empty scope suspends the caller's scene.

Constructor & Destructor Documentation

◆ CurrentSceneScope()

portals::ui::detail::CurrentSceneScope::CurrentSceneScope ( std::weak_ptr< SceneAnchor > scene = {})
inlineexplicitnoexcept
Parameters
sceneWeak facade executing this synchronous boundary, or empty to mask attribution.

Member Function Documentation

◆ snapshot()

std::weak_ptr< SceneAnchor > portals::ui::detail::CurrentSceneScope::snapshot ( )
inlinestaticnoexcept
Returns
One weak snapshot of this thread's entered facade; never a previous completed scene.

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