|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Internal bridge for checked access to managed scene and recipe state. More...
#include <ui_recipe_access.hpp>
Static Public Member Functions | |
| static void | beginMount (ManagedScene &scene) noexcept |
| static void | endMount (ManagedScene &scene) noexcept |
| static std::weak_ptr< const void > | lifetime (ManagedScene &scene) |
| template<class T> | |
| static std::expected< Node< T >, ManagedError > | mount (Description< T > &&description, ManagedScene &scene, Node< Widget > parent, MountContext &context) |
| Mount a root or child inside the same transaction. | |
| template<class T> | |
| static bool | needsGridContext (const Description< T > &description) |
| static Description< Widget > | deferControlValidation (Description< Widget > description) |
| template<class T> | |
| static bool | defersControlValidation (const Description< T > &description) |
| template<class T, class Factory> | |
| static Description< T > | describe (Factory factory) |
| Wrap a checked managed factory without exposing recipe construction publicly. | |
| template<class T> | |
| static Description< T > | intrinsicStyle (Description< T > description, StyleTarget identity) |
| template<class T> | |
| static void | preparedControl (Description< T > &description, std::uint32_t alreadyMaterialized=0) |
| Mark resource-resolved settings without budgeting the same fields twice. | |
| template<class T> | |
| static void | preparedControlPresence (Description< T > &description, ControlPropertyPresence alreadyMaterialized) |
| Mark all resource-resolved fields without truncating the canonical vocabulary. | |
| static void | preparedDialogHeading (Description< Label > &description, const TextValue &title) |
| template<class T> | |
| static void | preparedThemeSelectorCaption (Description< T > &description, const TextValue &caption) |
| static Description< Dialog > | themeSelectorControl (Description< Dialog > description) |
| static Description< Dialog > | themeCatalogControl (Description< Dialog > description) |
| template<class T> | |
| static bool | themeCatalogRecipient (const Description< T > &description) noexcept |
| static Description< Dialog > | messageControl (Description< Dialog > description) |
| static Description< Overlay > | notificationControl (Description< Overlay > description) |
| template<class T> | |
| static std::expected< void, ManagedError > | messageSource (Description< T > &description, const ControlSettings &settings, ControlPropertyPresence materialized, ControlFactoryKind kind=ControlFactoryKind::MESSAGE_BINDING) |
| static Description< Dialog > | internalDialog (Description< Dialog > description, const TextValue *prechargedTitle=nullptr) |
| template<class T> | |
| static Description< T > | configuredControl (Description< T > description, std::string_view type, bool inherit=true) |
| Attach a builtin configuration identity to an owning recipe. | |
| template<class T> | |
| static Description< T > | controlArguments (Description< T > description, ControlSettings arguments) |
| Retain explicit constructor properties above inherited defaults. | |
| template<class T> | |
| static Description< T > | failed (ManagedError failure) |
| template<class T> | |
| static void | numericSettings (Description< T > &description, ControlSettings patch) |
| template<class Parent, class Child> | |
| static void | layoutChild (Description< Parent > &parent, Description< Child > &child, bool structural=false) |
| template<class... Children> | |
| static std::shared_ptr< RecipeLayout > | captureLayouts (Children &...children) |
| template<class T> | |
| static Description< T > | withLayout (Description< T > description, std::shared_ptr< RecipeLayout > layout) |
| template<class Child> | |
| static void | gridChild (Description< Grid > &parent, Child &&child, std::optional< GridRegion > region={}) |
| static void | gridSection (Description< Grid > &parent, GridSection section) |
| static std::expected< void, ManagedError > | gridOptions (ManagedScene &scene, Node< Grid > node, const GridOptions &options) |
| template<class T, class Callback> | |
| static Description< T > | controlSetup (Description< T > description, Callback callback) |
| Attach binding setup after node creation within the mount transaction. | |
| static void | switchSettings (Description< Switch > &description, ControlSettings patch) |
| static Description< Border > | borderControl (BorderOptions options, ControlStyle style) |
| static Description< Border > | framedControl (FrameOptions options, ControlStyle style) |
| template<class T> | |
| static void | frameSettings (Description< T > &description, const ControlSettings &settings) |
| Stage precharged frame settings on the exact typed source recipe. | |
| template<class T> | |
| static std::expected< void, ManagedError > | messageBody (Description< T > &description, Description< Widget > body) |
| Attach an owning custom body to a resultful dialog recipe. | |
| static Description< Overlay > | overlayControl (OverlayOptions options, SizePolicy policy) |
| static std::expected< void, ManagedError > | applyScrollbarSkin (ManagedScene &scene, Node< Widget > node, const ControlSettings &settings) |
| static Description< ScrollArea > | scrollAreaControl (ScrollAreaOptions options, std::shared_ptr< ScrollController > controller, ControlStyle style) |
| static Description< ScrollBar > | scrollBarControl (std::shared_ptr< ScrollController > controller, ScrollAxis axis, ScrollBarOptions options, ControlStyle style, bool writer) |
| template<class T> | |
| static constexpr std::string_view | controlType () |
| Identify builtin recipe types without allocating runtime metadata. | |
| static ControlSettings | mergeControlSettings (ControlSettings base, const ControlSettings &patch) |
| template<class T> requires IsChart<T>::value | |
| static void | chartSettings (Description< T > &description, ControlSettings patch) |
| static std::expected< void, ManagedError > | finalizeStyleIdentity (ManagedScene &scene, Node< Widget > node, const StyleTarget &identity) |
| template<class Content, class Initial> | |
| static Description< DataStateView > | dataState (Initial initial, Description< Content > content, DataStateConfig config, bool automatic) |
| Build the shared checked data-presentation recipe for public overloads. | |
| template<class Factory> | |
| static Description< Widget > | transaction (Factory factory) |
| template<class T> | |
| static Description< Widget > | erase (Description< T > description) |
| Erase only the observer type while preserving one mount transaction. | |
| static Description< Widget > | forwardOuter (Description< Widget > description) |
| static std::expected< void, ManagedError > | resize (ManagedScene &scene, Node< SizedWidget > node, SizeChange change) |
| template<class T> | |
| static void | sizingSettings (Description< T > &description, const RecipeSizing &sizing) |
| Stage sizing. | |
| static std::expected< void, ManagedError > | finishSizing (ManagedScene &scene, Node< SizedWidget > source, Node< SizedWidget > target, const RecipeSizing *sizing) |
| Commit final cold bounds and transparent frame preferences in one checked update. | |
| static std::expected< void, ManagedError > | instanceState (ManagedScene &scene, Node< Widget > node, std::optional< bool > visible, std::optional< bool > enabled) |
| Apply final local instance flags through the existing managed mount boundary. | |
| static std::expected< void, ManagedError > | check (ManagedScene &scene, Node< Widget > node) |
| Verify a created node remains accessible before publishing references. | |
| static std::expected< Node< OverlayHost >, ManagedError > | layerHost (ManagedScene &scene, Node< Widget > root) |
| static std::expected< void, ManagedError > | checkLayer (ManagedScene &scene, Node< Widget > node) |
Internal bridge for checked access to managed scene and recipe state.
|
inlinestatic |
| scene | Owning UI scene. |
| node | Newly constructed scroll control. |
| settings | Effective sparse owning configuration. |
|
inlinestaticnoexcept |
| scene | Owner of the nested mount transaction entered on this thread. |
|
inlinestatic |
| options | Existing owning native frame options. |
| style | Existing owning manual appearances. |
|
static |
| Children | Consuming description types inspected before their constructor captures are transferred. |
| children | Ordinary child recipes, without invoking their factories. |
|
inlinestatic |
| T | Exact native Chart specialization. |
| description | Factory result before erasure. |
| patch | Chart-only scalar patch; old text metadata and services are excluded by the caller. Stages the same sparse merge and local provenance as native modifiers. |
|
inlinestatic |
Verify a created node remains accessible before publishing references.
| scene | Existing managed owner, borrowed for this check. |
| node | Observing identity whose tree scope is validated. |
|
static |
|
static |
Attach a builtin configuration identity to an owning recipe.
| T | Concrete widget subtype retained by the recipe. |
| description | Single-use recipe receiving configuration metadata. |
| type | Canonical builtin name copied into the recipe. |
| inherit | Whether omitted constructor properties inherit context defaults. |
|
static |
Retain explicit constructor properties above inherited defaults.
| T | Concrete widget subtype retained by the recipe. |
| description | Single-use recipe receiving constructor metadata. |
| arguments | Owning sparse properties supplied by the factory call. |
|
static |
Attach binding setup after node creation within the mount transaction.
| T | Concrete widget subtype retained by the recipe. |
| Callback | Synchronous checked setup callable for scene, node and settings. |
| description | Single-use recipe retaining normal failure cleanup. |
| callback | Owning setup callable retained until mount. |
|
inlinestaticconstexpr |
Identify builtin recipe types without allocating runtime metadata.
| T | Concrete widget subtype to classify. |
|
static |
Build the shared checked data-presentation recipe for public overloads.
| Content | Retained body widget type. |
| Initial | Owning presentation value or same-scene managed source. |
| initial | Initial value or source retained by the consuming recipe. |
| content | Single-use body recipe mounted in the same transaction. |
| config | Owning construction-only labels, styles and retry action. |
| automatic | Read the virtual body's prepared status when true. |
|
inlinestatic |
| description | Root resource transaction validating its effective graph after local declarations. |
|
static |
| description | Root recipe borrowed before any factory effects. |
|
static |
Wrap a checked managed factory without exposing recipe construction publicly.
| T | Widget subtype returned by the factory. |
| Factory | Owning callable returning expected<Node<T>, ManagedError> for scene and parent. |
| factory | Capture retained until the consuming mount; construction may throw. |
|
inlinestaticnoexcept |
| scene | Owner whose complete transaction, including Ref publication, has ended. |
|
static |
Erase only the observer type while preserving one mount transaction.
| T | Concrete public widget type produced by the existing recipe. |
| description | Owning typed recipe consumed once. |
|
static |
| T | Receiving widget type. |
| failure | Complete original prerequisite failure. |
|
inlinestatic |
| scene | Existing UI owner; checked before reading mutable metadata. |
| node | Live managed node whose latest target is retained during preparation. |
| identity | Owned natural type/ancestors retained by the mounting recipe. |
|
inlinestatic |
Commit final cold bounds and transparent frame preferences in one checked update.
| scene | UI-affine mount owner. |
| source | Concrete sized content. |
| target | Outer frame when present, otherwise source itself. |
| sizing | Optional final sparse instance geometry; borrowed only for this call. |
|
inlinestatic |
| description | Consuming composite recipe whose factory forwards an inner mount's layout root. |
|
inlinestatic |
| options | Owning advanced appearance, validated before constructing descendants. |
| style | Manual owning appearances beneath the existing stylesheet resolver. |
|
static |
Stage precharged frame settings on the exact typed source recipe.
| description | Recipe retaining its ordinary source identity and callbacks on T. |
| settings | Owning sparse frame patch and diagnostic provenance copied before erasure. |
|
static |
| Child | Consuming real child recipe. |
| parent | Receiving standard grid recipe. |
| child | Single-use real child. |
| region | Present only for a structural section. |
|
inlinestatic |
| scene | Live managed owner. |
| node | Declarative grid receiving complete identities. |
| options | Resolved settings borrowed during checked replacement. |
|
inlinestatic |
| parent | Receiving standard grid recipe. |
| section | Consumed header/body group, without a Widget. |
|
inlinestatic |
Apply final local instance flags through the existing managed mount boundary.
| scene | Borrowed managed owner of the current transaction. |
| node | Created target; ancestor flags retain their existing tree semantics. |
| visible | Optional final local visibility. |
| enabled | Optional final local enabled state. |
|
inlinestatic |
|
static |
| T | Concrete widget created by the recipe. |
| description | Owning recipe receiving intrinsic style names. |
| identity | Owning natural type and required ancestors, finalized after setup modifiers. |
|
static |
| scene | Existing owner with a completely mounted explicit or automatic host. |
| root | Exact recipe root which must be that owner's registered host. |
|
static |
| Parent | Parent widget type. |
| Child | Child widget type. |
| parent | Receiving cold recipe. |
| child | Consumed child recipe, inspected before transfer. |
| structural | Retain every child relationship, including default placements. |
|
inlinestatic |
| scene | Borrowed managed owner; observed only during UI-affine publication. |
|
inlinestatic |
| base | Owning lower-priority constructor arguments. |
| patch | Final explicit sparse instance properties. |
|
static |
Attach an owning custom body to a resultful dialog recipe.
| description | Message-bound recipe retaining its source identity. |
| body | Cold content mounted once under the managed message owner. |
|
inlinestatic |
| description | Owning native message recipe. |
|
static |
| T | Retained widget type. |
| description | Owning native recipient recipe. |
| settings | Effective owning resource inputs. |
| materialized | Already reserved leaves. |
| kind | Required semantic capability; actual catalogs also satisfy view requirements. |
|
static |
Mount a root or child inside the same transaction.
| T | Public Widget subtype constructed by the recipe. |
| description | Owning recipe consumed by this call, including on failure. |
| scene | Existing UI-affine owner of all mounted nodes. |
| parent | Live managed parent receiving the new child. |
| context | Borrowed transaction retaining observations and deferred ref publication. |
|
static |
| T | Root widget type. |
| description | Unmounted root borrowed for bounded opt-in detection. |
|
inlinestatic |
| description | Owning center/body recipe. |
|
static |
| T | Slider view type. |
| description | Receiving cold recipe. |
| patch | Present resource numeric/input leaves with their original provenance. Preserve factory settings for every absent resource leaf. |
|
inlinestatic |
|
static |
Mark resource-resolved settings without budgeting the same fields twice.
| T | Concrete widget subtype retained by the recipe. |
| description | Owning recipe updated before mounting. |
| alreadyMaterialized | Presence mask already included in the resource mount budget. |
|
static |
Mark all resource-resolved fields without truncating the canonical vocabulary.
| T | Concrete widget subtype retained by the recipe. |
| description | Owning recipe updated before mounting. |
| alreadyMaterialized | Complete presence set already included in the resource mount budget. |
|
inlinestatic |
| description | Native derived heading, whose source title was already charged. |
| title | Owning source expression copied into presence metadata for this cold recipe. Keep inherited Label defaults checked/charged while excluding the materialized caption leaf. |
|
static |
|
inlinestatic |
| scene | Existing managed owner receiving a checked policy update. |
| node | Live sized target created by this mount transaction. |
| change | Owning operation; other axes and unrelated bounds are preserved. |
|
inlinestatic |
| options | Actual owning placement/input/frame options. |
| controller | Optional owning shared values; an empty area controller keeps native default creation. |
| style | Owning manual appearances beneath the existing theme. |
|
inlinestatic |
| controller | Optional only for a standalone writer; a projection requires an owning shared controller. |
| axis | Actual receiving projection axis. |
| options | Actual receiving input/paint options. |
| style | Owning manual appearances. |
| writer | Existing native standalone geometry-writer role; false preserves the shared projection role. |
|
static |
Stage sizing.
| description | Cold recipe. |
| sizing | Copied owning overlay. |
|
inlinestatic |
| description | Typed factory recipe. |
| patch | Present Switch resource leaves and their origins. Preserve all other factory settings; explicit resource false values are overrides. |
|
inlinestatic |
| description | Owning native catalog recipe. |
|
staticnoexcept |
| T | Retained widget type. |
| description | Recipe inspected without mutation. |
|
inlinestatic |
| description | Owning native view recipe. |
|
static |
| Factory | Owning checked callable accepting scene, parent and the shared mount context. |
| factory | Internal adapter performing a complete existing recipe transaction. |
|
static |
| T | Parent widget type. |
| description | Cold composition retaining normal transaction behavior. |
| layout | Previously captured owning layout metadata. |