Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::RecipeState< T > Struct Template Reference

Unmounted recipe storage, consumed and destroyed during mount. More...

#include <recipe_state.hpp>

Classes

struct  FrameRecipe
 Optional cold decoration; never retained by mounted callbacks or widgets. More...

Public Types

using Factory
 Owning constructor adapter using the existing checked managed mount.
using Child
 Owning child recipe adapter sharing the parent's transaction bookkeeping.

Public Attributes

std::unique_ptr< ManagedError > prerequisiteFailure
 Cold prerequisite error, checked before layout/control/frame work.
Factory create
 Constructs exactly one managed node.
std::vector< Setup< T > > setup = std::vector<Setup<T>>(0)
 Customization actions in modifier order.
std::vector< Child > children = std::vector<Child>(0)
 Consuming child adapters in insertion order.
std::vector< NodeRef< T > > references = std::vector<NodeRef<T>>(0)
 Observing slots reserved for this node.
std::shared_ptr< detail::RecipeLayout > layout
 Optional cold relationship metadata; never mounted state.
std::unique_ptr< FrameRecipe > frame
 Allocated only for an explicitly framed recipe.
std::unique_ptr< RecipeSizing > sizing
 Final cold bounds; absent on the legacy sizing path.
bool forwardsOuter {}
 Type-erased factory forwards its inner mount's actual layout root.
bool focusScope {}
 Register before setup/children; scene owns its token.
bool focusDefault {}
 Set the nearest registered scope's default before children.
std::optional< bool > visible
 Final mount-only local visibility; absent keeps tree defaults.
std::optional< bool > enabled
 Final mount-only local enabled state; no runtime state source.
std::optional< std::string > id
 Compact recipe identity preserved by later style modifiers.
std::shared_ptr< detail::RefTarget > anchor
 Cold same-attempt body anchor, without widget ownership.
DialogPlacement placement {DialogPlacement::BELOW_START}
 Configured anchor preference.
bool anchorRequested {}
 Distinguish an absent modifier from an empty moved observing slot.
std::optional< StyleTarget > intrinsicStyle
 Owning natural type names, finalized after ordinary setup.
std::shared_ptr< detail::SemanticConstruction > semanticConstruction
 Actual native capability, cold owning data only.
bool themeCatalogSettingsRequested {}
 Requires the actual owning catalog constructor.
bool themeSelectorSettingsRequested {}
 Explicit view stage requires the actual native selector recipe.
bool notificationSettingsRequested {}
 Explicit notification group requires the actual native center recipe.
bool messageSettingsRequested {}
 Explicit message group must never be ignored on ordinary Dialog.
bool controlPrepared {}
 Resource settings were validated and materialized before construction.
bool inheritPreparedDefaults {}
 Only derived source-title headings inherit unrelated Label defaults.
bool deferredControlValidation {}
 Root resource parser validates after CONFIG, before document effects.
detail::ControlPropertyPresence materializedSettings {}
 Resource properties already reserved in the aggregate leaf budget.
std::optional< std::string > controlType
 Supported concrete factory; absent on arbitrary custom widgets.
std::optional< std::string > controlVariant
 Requested runtime name, checked against the concrete type.
ControlSettings controlPatch
 Owning final sparse instance overrides.
ControlSettings controlArguments
 Explicit positional literals, below the final sparse patch.
bool settingsRequested {}
 Reject unsupported custom recipes rather than silently ignoring a patch.
bool inheritControlSettings {true}
 Explicit legacy full configuration bypasses context defaults.
std::unique_ptr< ResolvedControl > resolvedControl
 Mount-only owning settings, absent on the builtin fast path.
portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >(ManagedScene &, Node< T >, const ControlSettings &)> controlSetup
 Standard binding, after root tracking and before ordinary user setup.

Detailed Description

template<class T>
struct portals::ui::detail::RecipeState< T >

Unmounted recipe storage, consumed and destroyed during mount.

Template Parameters
TConcrete observed widget type; callback signatures remain typed.

Member Typedef Documentation

◆ Child

template<class T>
using portals::ui::detail::RecipeState< T >::Child
Initial value:
portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>(ManagedScene &, Node<Widget>,
Additive lifecycle owner over one existing Application subtree. UI affine and nonmovable....
Definition managed.hpp:530
Copyable typed observer; never owns or exposes an unchecked widget pointer.
Definition widget.hpp:92
Stack-owned transaction bookkeeping, discarded after one description mount.
Definition ui_recipe_context.hpp:554

Owning child recipe adapter sharing the parent's transaction bookkeeping.

◆ Factory

template<class T>
using portals::ui::detail::RecipeState< T >::Factory
Initial value:
portals::detail::MoveOnlyFunction<std::expected<Node<T>, ManagedError>(ManagedScene &, Node<Widget>,
Original error plus independent runner/restoration and cleanup failures.
Definition managed_diagnostics.hpp:62

Owning constructor adapter using the existing checked managed mount.


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