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

Weak facade observation, stable across Scene moves and revoked before capture cleanup. Copies never retain a facade, application, managed owner, or widget. More...

#include <ui_scene.hpp>

Public Member Functions

 SceneRef ()=default
 Construct an empty observer; operations return CLOSED.
std::expected< void, ManagedError > quit (std::source_location origin=std::source_location::current()) const

Friends

class Scene
struct detail::SceneAccess
struct QuitAction

Detailed Description

Weak facade observation, stable across Scene moves and revoked before capture cleanup. Copies never retain a facade, application, managed owner, or widget.

Member Function Documentation

◆ quit()

std::expected< void, ManagedError > portals::ui::SceneRef::quit ( std::source_location origin = std::source_location::current()) const
Parameters
originChecked stop-request site.
Returns
Success or exact RUN failure; affinity precedes weak/raw access. Before preparation only stop intent is recorded. This checked method never reports an error.

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