Allocation-free UI execution publication; an empty scope suspends the caller's scene.
More...
#include <current_scene.hpp>
|
| | 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.
|
Allocation-free UI execution publication; an empty scope suspends the caller's scene.
◆ CurrentSceneScope()
| portals::ui::detail::CurrentSceneScope::CurrentSceneScope |
( |
std::weak_ptr< SceneAnchor > | scene = {} | ) |
|
|
inlineexplicitnoexcept |
- Parameters
-
| scene | Weak facade executing this synchronous boundary, or empty to mask attribution. |
◆ 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: