|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Internal bridge from consuming recipes to one stable facade owner. More...
#include <ui_scene.hpp>
Static Public Member Functions | |
| static std::weak_ptr< SceneAnchor > | callbackContext (ManagedScene &owner) noexcept |
| static std::expected< void, ManagedError > | requireBackground (ManagedScene &owner) |
| static std::expected< void, ManagedError > | admitActivity (ManagedScene &owner, std::shared_ptr< SceneActivity > activity) |
| static std::expected< void, ManagedError > | factoryResultChecked (const Scene &owner) |
| static std::size_t | applyFactoryCleanup (Scene &owner, const FactoryCleanup &cleanup, std::source_location origin) |
| static bool | deliverFactoryReport (Scene &owner, const SceneReport &report, std::shared_ptr< SceneReportHandler > sink) |
| static int | runApp (Scene &owner, const RunAppOptions &options, std::shared_ptr< SceneReportHandler > sink, std::source_location origin, std::size_t droppedErrors) |
| static std::expected< void, ManagedError > | attachThemeSelector (ManagedScene &owner, const std::optional< ManagedError > *setupFailure=nullptr) |
| static Application & | application (ManagedScene &owner) noexcept |
| static std::expected< StyleRoleRegistration, ManagedError > | registerPreparedRoles (ManagedScene &owner, Node< Widget > node, std::initializer_list< std::string_view > names) |
| Register SDK-owned parts only after style metadata has been flushed. | |
| static std::expected< StyleRoleRegistration, ManagedError > | replaceDocumentRoles (ManagedScene &owner, Node< Widget > node, const StyleRoleRegistration ®istration, std::initializer_list< std::string_view > names) |
| static void | beforeClose (ManagedScene &owner, void *context, std::expected< void, ManagedError >(*callback)(void *)) noexcept |
| static void | retainCloseFailure (ManagedScene &owner) |
| static void | currentOwner (ManagedScene &owner, std::weak_ptr< SceneAnchor > anchor) noexcept |
| static SceneRef | currentRef () noexcept |
| static CurrentSceneScope | currentScope (Scene &owner) noexcept |
| static SetupFailureScope | setupScope (Scene &owner) noexcept |
| static bool | shortReported (const ManagedScene &owner, const ManagedError &failure) noexcept |
| template<SceneConfiguration Callback> | |
| static void | onClick (Scene &owner, Callback &callback, std::source_location origin) |
| template<SceneConfiguration Callback> | |
| static void | onEditing (Scene &owner, Callback &callback, std::source_location origin) |
| template<SceneConfiguration Callback> | |
| static void | onLayout (Scene &owner, Callback &callback, std::source_location origin) |
| static void | live (Scene &owner, std::shared_ptr< LiveFactory > factory, std::source_location origin) |
| static void | setupFailure (Scene &owner, ManagedError failure, std::source_location origin) |
| static void | theme (Scene &owner, const StyleSheet &sheet, std::source_location origin) |
| static void | styleLayer (Scene &owner, StyleTier tier, const std::string &name, const StyleSheet &sheet, std::source_location origin) |
| template<detail::SceneConfiguration Callback> | |
| static void | configure (Scene &owner, Callback &callback, std::source_location origin) |
| template<class Callback> requires portals::detail::ManagedAction<Callback, KeyEvent> | |
| static void | onKey (Scene &owner, KeyEvent chord, Callback &callback, std::source_location origin) |
| template<class Callback> requires portals::detail::ManagedAction<Callback, KeyEvent> | |
| static void | onSelection (Scene &owner, const KeySelection &selection, Callback &callback, std::source_location origin) |
| template<class Callback> requires portals::detail::ManagedAction<Callback, KeyEvent> | |
| static void | onShortcut (Scene &owner, std::expected< Shortcut, ShortcutError > &shortcut, Callback &callback, ShortcutBehavior behavior, ShortcutOptions options, std::source_location origin) |
| template<class Callback> requires portals::detail::ManagedAction<Callback, KeyEvent> | |
| static void | onShortcut (Scene &owner, std::expected< std::shared_ptr< Shortcut >, ShortcutError > &shortcut, Callback &callback, ShortcutBehavior behavior, ShortcutOptions options, std::source_location origin) |
| static bool | notifyingRunFailure (const ManagedScene &owner) noexcept |
| static bool | primaryRecorded (const ManagedScene &owner) noexcept |
| static bool | runFailureNotified (const ManagedScene &owner) noexcept |
| static std::pair< std::size_t, std::size_t > | reportCounts (const ManagedScene &owner) noexcept |
| static Scene | create (portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >(ManagedScene &)> recipe, SceneOptions options, std::source_location origin) |
Internal bridge from consuming recipes to one stable facade owner.
|
inlinestatic |
| owner | Existing UI-affine managed owner. |
| activity | Weakly retained active-cycle work, bounded by the existing node budget. |
|
inlinestaticnoexcept |
| owner | UI-admitted managed owner borrowed by an internal synchronous bridge. |
|
inlinestatic |
| owner | Stationary returned facade, whose primary error is preserved through cleanup. |
| cleanup | First exact abandoned-local cleanup failure and bounded overflow. |
| origin | Upper invocation site. |
|
inlinestatic |
| owner | Prepared managed owner whose configurations have completed. |
| setupFailure | Optional stable facade failure slot, borrowed only through this synchronous call. The initial factory may latch it through the existing setup collector; it is never retained by the view. |
|
inlinestaticnoexcept |
| owner | Managed owner whose close entry must first stop facade-owned external work. |
| context | Stable facade State, outliving its managed owner. |
| callback | UI-only checked shutdown bridge, consumed before first close attempt. |
|
inlinestaticnoexcept |
| owner | Live managed owner. |
|
inlinestatic |
| Callback | Configuration action accepted by the facade. |
| owner | Existing facade receiving its stored stage callback. |
| callback | Stage storage transferred inside the checked implementation. |
| origin | Stage registration call site. |
|
inlinestatic |
| recipe | Owning once-only mount action, constructed before entry. |
| options | Existing runtime and finite facade policies. |
| origin | Scene construction call site. |
|
inlinestaticnoexcept |
| owner | Existing managed owner attached to the stationary facade. |
| anchor | Weak identity shared with Ref observation, revoked by facade cleanup. |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
| owner | Stationary facade whose user code is executing on its UI thread. |
|
inlinestatic |
| owner | Rejected returned facade, already given its existing close attempt. |
| report | Complete owning rejection diagnostic, borrowed only through guarded delivery. |
| sink | Optional pinned explicit override; empty preserves an available configured Scene sink. |
|
inlinestatic |
| owner | Returned owning facade, admitted only when cold or prepared but not yet completed. |
|
inlinestatic |
| owner | Stationary facade retaining an existing concrete live controller. |
| factory | Owning descriptor factory, invoked under facade admission before attaching a controller. |
| origin | Stage registration site. |
|
inlinestaticnoexcept |
| owner | Managed owner currently invoking its observer on UI. |
|
inlinestatic |
| Callback | Owning checked click registration against the existing managed scene. |
| owner | Facade receiving the deferred or runtime registration. |
| callback | Owning configuration, transferred only after UI admission. |
| origin | Original pipe registration site retained in diagnostics. |
|
inlinestatic |
| Callback | Owning checked editor event registration against the existing scene. |
| owner | Facade receiving the deferred or runtime registration. |
| callback | Configuration transferred only after UI admission. |
| origin | Original pipe registration site retained in diagnostics. |
|
inlinestatic |
| Callback | Existing compact key action accepted by the facade. |
| owner | Existing facade receiving its stored stage callback. |
| chord | Existing exact admitted chord. |
| callback | Stage storage transferred inside the checked implementation. |
| origin | Stage registration call site. |
|
inlinestatic |
| Callback | Owning checked layout registration against the existing managed scene. |
| owner | Facade receiving the deferred or runtime registration. |
| callback | Owning configuration transferred only after UI admission. |
| origin | Original registration site retained in diagnostics. |
|
inlinestatic |
| Callback | Existing owning compact action. |
| owner | Facade receiving checked selected registration. |
| selection | Immutable owning alternatives and exact action set. |
| callback | Stored callback transferred only inside the configuration catch. |
| origin | Original onKey registration call site. |
|
inlinestatic |
| Callback | Existing owning compact key action. |
| owner | Facade receiving the stored registration. |
| shortcut | Owned parsed alternatives or allocation-free syntax error. |
| callback | Stored action transferred after admission. |
| behavior | Explicit repeat policy. |
| options | Original finite parser budgets. |
| origin | Original stage registration call site. |
|
inlinestatic |
| Callback | Existing owning compact key action. |
| owner | Facade receiving checked pending stage storage. |
| shortcut | Shared owning transfer receipt or allocation-free syntax error. |
| callback | Stored action transferred after admission. |
| behavior | Explicit repeat policy. |
| options | Original finite parser budgets. |
| origin | Original stage registration call site. |
|
inlinestaticnoexcept |
| owner | Managed owner retaining its first admitted full-error primary. |
|
inlinestatic |
Register SDK-owned parts only after style metadata has been flushed.
| owner | UI owner inside its prepared-layout activity phase. |
| node | Checked managed recipient. |
| names | Borrowed names copied by the existing engine. |
|
inlinestatic |
| owner | UI owner outside callbacks. |
| node | Live viewer. |
| registration | Existing role participation. |
| names | Replacement names copied by the engine. |
|
inlinestaticnoexcept |
| owner | Closed managed owner; no mutable storage or diagnostic borrow escapes. |
|
inlinestatic |
| owner | UI-affine managed owner before entering its application session. |
|
inlinestatic |
| owner | Managed collector retaining an exact shutdown error independently of an earlier primary. Repeated calls do not duplicate the diagnostic; no widget or callback reference escapes. |
|
inlinestatic |
| owner | Stationary facade retained through synchronous final reporting. |
| options | Borrowed upper transport and cancellation policies. |
| sink | Owning upper sink prepared before factory invocation; empty preserves the configured Scene sink. |
| origin | Upper runner invocation site. |
| droppedErrors | Overflow from abandoned local factory cleanup, retained in the final report. |
|
inlinestaticnoexcept |
| owner | Existing managed scene whose completed run returned a failure. |
|
inlinestatic |
| owner | Facade retaining the first typed setup failure. |
| failure | Exact checked setup cause. |
| origin | Setup invocation site. |
|
inlinestaticnoexcept |
| owner | Stationary facade executing checked setup on its owning thread. |
|
inlinestaticnoexcept |
| owner | Live collector whose identity must match the returned error's internal receipt. |
| failure | Copied exact short result; equal freshly constructed causes have no receipt. |
|
inlinestatic |
| owner | Existing facade receiving the checked configuration. |
| tier | APPLICATION or USER cascade tier. |
| name | Owning stage name, copied at the checked boundary. |
| sheet | Owning stage rules, copied at the checked boundary. |
| origin | Stage registration call site. |
|
inlinestatic |
| owner | Existing facade receiving its stored pipe theme. |
| sheet | Owning stage storage borrowed only for the checked copy. |
| origin | Stage registration call site. |