5#include <portals/detail/control_context.hpp>
6#include <portals/detail/move_only_function.hpp>
7#include <portals/detail/recipe_sizing.hpp>
8#include <portals/ui_ref.hpp>
14namespace portals::ui {
21using Setup = portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>(ManagedScene &, Node<T>)>;
42 std::unique_ptr<ControlSettings>
source;
51 std::unique_ptr<ManagedError>
54 std::vector<Setup<T>>
setup = std::vector<Setup<T>>(0);
55 std::vector<Child>
children = std::vector<Child>(0);
56 std::vector<NodeRef<T>>
references = std::vector<NodeRef<T>>(0);
57 std::shared_ptr<detail::RecipeLayout>
layout;
58 std::unique_ptr<FrameRecipe>
frame;
59 std::unique_ptr<RecipeSizing>
sizing;
65 std::optional<std::string>
id;
66 std::shared_ptr<detail::RefTarget>
anchor;
70 std::shared_ptr<detail::SemanticConstruction>
79 detail::ControlPropertyPresence
88 portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>(
ManagedScene &,
Node<T>,
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
DialogPlacement
Preferred panel position within the owning host.
Definition dialog.hpp:21
@ BELOW_START
Prefer below the body anchor, aligned to its leading edge.
Definition dialog.hpp:23
Owning advanced frame settings; legacy BorderOptions remains a literal value type.
Definition primitives.hpp:62
Original error plus independent runner/restoration and cleanup failures.
Definition managed_diagnostics.hpp:62
Owning sparse literals only; never contains IDs, models, handlers or live history.
Definition ui_control_context.hpp:391
Stack-owned transaction bookkeeping, discarded after one description mount.
Definition ui_recipe_context.hpp:554
Cold layout values only; released with the single-use construction transaction.
Definition ui_recipe_context.hpp:355
Optional cold decoration; never retained by mounted callbacks or widgets.
Definition recipe_state.hpp:40
FrameOptions options
Owning advanced pattern and finite work settings.
Definition recipe_state.hpp:41
std::unique_ptr< ControlSettings > source
Precharged resource frame leaves and diagnostic provenance.
Definition recipe_state.hpp:42
std::optional< Ref< Border > > reference
Optional observer for explicit outer geometry/removal.
Definition recipe_state.hpp:44
bool hasOptions
Explicit fluent decoration, independent of an inherited sparse patch.
Definition recipe_state.hpp:43
std::function< std::expected< void, ManagedError >(ManagedScene &, Node< Border >, MountContext &)> titleBinding
Optional scalar target adapter; retained only by this opted-in cold frame recipe.
Definition recipe_state.hpp:48
Node< Border > mounted
Mount-only resize target; destroyed with the cold State.
Definition recipe_state.hpp:45
bool invalidPattern
Unknown compact spelling, reported at mount rather than ignored.
Definition recipe_state.hpp:46
Unmounted recipe storage, consumed and destroyed during mount.
Definition recipe_state.hpp:31
bool notificationSettingsRequested
Explicit notification group requires the actual native center recipe.
Definition recipe_state.hpp:74
std::optional< std::string > id
Compact recipe identity preserved by later style modifiers.
Definition recipe_state.hpp:65
std::unique_ptr< ManagedError > prerequisiteFailure
Cold prerequisite error, checked before layout/control/frame work.
Definition recipe_state.hpp:52
std::optional< StyleTarget > intrinsicStyle
Owning natural type names, finalized after ordinary setup.
Definition recipe_state.hpp:69
std::optional< bool > enabled
Final mount-only local enabled state; no runtime state source.
Definition recipe_state.hpp:64
bool settingsRequested
Reject unsupported custom recipes rather than silently ignoring a patch.
Definition recipe_state.hpp:85
std::shared_ptr< detail::RefTarget > anchor
Cold same-attempt body anchor, without widget ownership.
Definition recipe_state.hpp:66
Factory create
Constructs exactly one managed node.
Definition recipe_state.hpp:53
std::unique_ptr< FrameRecipe > frame
Allocated only for an explicitly framed recipe.
Definition recipe_state.hpp:58
bool focusDefault
Set the nearest registered scope's default before children.
Definition recipe_state.hpp:62
std::shared_ptr< detail::SemanticConstruction > semanticConstruction
Actual native capability, cold owning data only.
Definition recipe_state.hpp:71
bool anchorRequested
Distinguish an absent modifier from an empty moved observing slot.
Definition recipe_state.hpp:68
std::unique_ptr< RecipeSizing > sizing
Final cold bounds; absent on the legacy sizing path.
Definition recipe_state.hpp:59
bool forwardsOuter
Type-erased factory forwards its inner mount's actual layout root.
Definition recipe_state.hpp:60
DialogPlacement placement
Configured anchor preference.
Definition recipe_state.hpp:67
ControlSettings controlArguments
Explicit positional literals, below the final sparse patch.
Definition recipe_state.hpp:84
std::vector< Child > children
Consuming child adapters in insertion order.
Definition recipe_state.hpp:55
bool controlPrepared
Resource settings were validated and materialized before construction.
Definition recipe_state.hpp:76
portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >(ManagedScene &, Node< T >, const ControlSettings &)> controlSetup
Standard binding, after root tracking and before ordinary user setup.
Definition recipe_state.hpp:90
std::optional< std::string > controlType
Supported concrete factory; absent on arbitrary custom widgets.
Definition recipe_state.hpp:81
bool deferredControlValidation
Root resource parser validates after CONFIG, before document effects.
Definition recipe_state.hpp:78
bool themeSelectorSettingsRequested
Explicit view stage requires the actual native selector recipe.
Definition recipe_state.hpp:73
bool inheritControlSettings
Explicit legacy full configuration bypasses context defaults.
Definition recipe_state.hpp:86
portals::detail::MoveOnlyFunction< std::expected< Node< T >, ManagedError >(ManagedScene &, Node< Widget >, detail::MountContext &)> Factory
Owning constructor adapter using the existing checked managed mount.
Definition recipe_state.hpp:33
std::optional< std::string > controlVariant
Requested runtime name, checked against the concrete type.
Definition recipe_state.hpp:82
bool themeCatalogSettingsRequested
Requires the actual owning catalog constructor.
Definition recipe_state.hpp:72
detail::ControlPropertyPresence materializedSettings
Resource properties already reserved in the aggregate leaf budget.
Definition recipe_state.hpp:80
std::vector< NodeRef< T > > references
Observing slots reserved for this node.
Definition recipe_state.hpp:56
std::shared_ptr< detail::RecipeLayout > layout
Optional cold relationship metadata; never mounted state.
Definition recipe_state.hpp:57
std::unique_ptr< ResolvedControl > resolvedControl
Mount-only owning settings, absent on the builtin fast path.
Definition recipe_state.hpp:87
portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >(ManagedScene &, Node< Widget >, detail::MountContext &)> Child
Owning child recipe adapter sharing the parent's transaction bookkeeping.
Definition recipe_state.hpp:36
ControlSettings controlPatch
Owning final sparse instance overrides.
Definition recipe_state.hpp:83
bool inheritPreparedDefaults
Only derived source-title headings inherit unrelated Label defaults.
Definition recipe_state.hpp:77
std::vector< Setup< T > > setup
Customization actions in modifier order.
Definition recipe_state.hpp:54
bool focusScope
Register before setup/children; scene owns its token.
Definition recipe_state.hpp:61
bool messageSettingsRequested
Explicit message group must never be ignored on ordinary Dialog.
Definition recipe_state.hpp:75
std::optional< bool > visible
Final mount-only local visibility; absent keeps tree defaults.
Definition recipe_state.hpp:63
Finite native composite capability shared only across cold recipe erasure, never mounted records.
Definition ui_recipe_context.hpp:542