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

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)

Detailed Description

Internal bridge for checked access to managed scene and recipe state.

Member Function Documentation

◆ applyScrollbarSkin()

std::expected< void, ManagedError > portals::ui::detail::Access::applyScrollbarSkin ( ManagedScene & scene,
Node< Widget > node,
const ControlSettings & settings )
inlinestatic
Parameters
sceneOwning UI scene.
nodeNewly constructed scroll control.
settingsEffective sparse owning configuration.
Returns
Prepared skin or existing typed error.

◆ beginMount()

void portals::ui::detail::Access::beginMount ( ManagedScene & scene)
inlinestaticnoexcept
Parameters
sceneOwner of the nested mount transaction entered on this thread.

◆ borderControl()

Description< Border > portals::ui::detail::Access::borderControl ( BorderOptions options,
ControlStyle style )
inlinestatic
Parameters
optionsExisting owning native frame options.
styleExisting owning manual appearances.
Returns
Empty native frame recipe; callers attach exactly one real content edge without a wrapper.

◆ captureLayouts()

template<class... Children>
std::shared_ptr< RecipeLayout > portals::ui::detail::Access::captureLayouts ( Children &... children)
static
Template Parameters
ChildrenConsuming description types inspected before their constructor captures are transferred.
Parameters
childrenOrdinary child recipes, without invoking their factories.
Returns
Optional owning layout-only metadata for a composition whose children mount inside its factory.

◆ chartSettings()

template<class T>
requires IsChart<T>::value
void portals::ui::detail::Access::chartSettings ( Description< T > & description,
ControlSettings patch )
inlinestatic
Template Parameters
TExact native Chart specialization.
Parameters
descriptionFactory result before erasure.
patchChart-only scalar patch; old text metadata and services are excluded by the caller. Stages the same sparse merge and local provenance as native modifiers.

◆ check()

std::expected< void, ManagedError > portals::ui::detail::Access::check ( ManagedScene & scene,
Node< Widget > node )
inlinestatic

Verify a created node remains accessible before publishing references.

Parameters
sceneExisting managed owner, borrowed for this check.
nodeObserving identity whose tree scope is validated.
Returns
Success or the original managed boundary/liveness error.

◆ checkLayer()

std::expected< void, ManagedError > portals::ui::detail::Access::checkLayer ( ManagedScene & scene,
Node< Widget > node )
static
Parameters
sceneExisting owner of the selected host and unpublished layer.
nodeMounted recipe root; erased recipes must produce an exact bound Dialog.
Returns
Success for an existing registered Dialog or typed INVALID_ARGUMENT.

◆ configuredControl()

template<class T>
Description< T > portals::ui::detail::Access::configuredControl ( Description< T > description,
std::string_view type,
bool inherit = true )
static

Attach a builtin configuration identity to an owning recipe.

Template Parameters
TConcrete widget subtype retained by the recipe.
Parameters
descriptionSingle-use recipe receiving configuration metadata.
typeCanonical builtin name copied into the recipe.
inheritWhether omitted constructor properties inherit context defaults.
Returns
Recipe retaining its existing construction and cleanup behavior.

◆ controlArguments()

template<class T>
Description< T > portals::ui::detail::Access::controlArguments ( Description< T > description,
ControlSettings arguments )
static

Retain explicit constructor properties above inherited defaults.

Template Parameters
TConcrete widget subtype retained by the recipe.
Parameters
descriptionSingle-use recipe receiving constructor metadata.
argumentsOwning sparse properties supplied by the factory call.
Returns
Recipe whose later instance settings retain highest priority.

◆ controlSetup()

template<class T, class Callback>
Description< T > portals::ui::detail::Access::controlSetup ( Description< T > description,
Callback callback )
static

Attach binding setup after node creation within the mount transaction.

Template Parameters
TConcrete widget subtype retained by the recipe.
CallbackSynchronous checked setup callable for scene, node and settings.
Parameters
descriptionSingle-use recipe retaining normal failure cleanup.
callbackOwning setup callable retained until mount.
Returns
Recipe publishing references only after setup and finalization succeed.

◆ controlType()

template<class T>
constexpr std::string_view portals::ui::detail::Access::controlType ( )
inlinestaticconstexpr

Identify builtin recipe types without allocating runtime metadata.

Template Parameters
TConcrete widget subtype to classify.
Returns
Canonical builtin configuration name, or an empty view for custom types.

◆ dataState()

template<class Content, class Initial>
Description< DataStateView > portals::ui::detail::Access::dataState ( Initial initial,
Description< Content > content,
DataStateConfig config,
bool automatic )
static

Build the shared checked data-presentation recipe for public overloads.

Template Parameters
ContentRetained body widget type.
InitialOwning presentation value or same-scene managed source.
Parameters
initialInitial value or source retained by the consuming recipe.
contentSingle-use body recipe mounted in the same transaction.
configOwning construction-only labels, styles and retry action.
automaticRead the virtual body's prepared status when true.
Returns
Single-use composition preserving mount rollback and deferred reference publication.

◆ deferControlValidation()

Description< Widget > portals::ui::detail::Access::deferControlValidation ( Description< Widget > description)
inlinestatic
Parameters
descriptionRoot resource transaction validating its effective graph after local declarations.
Returns
Consuming description; native ancestor callbacks keep their existing ordering.

◆ defersControlValidation()

template<class T>
bool portals::ui::detail::Access::defersControlValidation ( const Description< T > & description)
static
Parameters
descriptionRoot recipe borrowed before any factory effects.
Returns
Whether the resource parser owns complete effective-context validation before its effects.

◆ describe()

template<class T, class Factory>
Description< T > portals::ui::detail::Access::describe ( Factory factory)
static

Wrap a checked managed factory without exposing recipe construction publicly.

Template Parameters
TWidget subtype returned by the factory.
FactoryOwning callable returning expected<Node<T>, ManagedError> for scene and parent.
Parameters
factoryCapture retained until the consuming mount; construction may throw.
Returns
Single-use description with the existing transaction semantics.

◆ endMount()

void portals::ui::detail::Access::endMount ( ManagedScene & scene)
inlinestaticnoexcept
Parameters
sceneOwner whose complete transaction, including Ref publication, has ended.

◆ erase()

template<class T>
Description< Widget > portals::ui::detail::Access::erase ( Description< T > description)
static

Erase only the observer type while preserving one mount transaction.

Template Parameters
TConcrete public widget type produced by the existing recipe.
Parameters
descriptionOwning typed recipe consumed once.
Returns
Single-use recipe sharing rollback and deferred reference publication.

◆ failed()

template<class T>
Description< T > portals::ui::detail::Access::failed ( ManagedError failure)
static
Template Parameters
TReceiving widget type.
Parameters
failureComplete original prerequisite failure.
Returns
Cold failed recipe preserving the cause before any construction or binding work.

◆ finalizeStyleIdentity()

std::expected< void, ManagedError > portals::ui::detail::Access::finalizeStyleIdentity ( ManagedScene & scene,
Node< Widget > node,
const StyleTarget & identity )
inlinestatic
Parameters
sceneExisting UI owner; checked before reading mutable metadata.
nodeLive managed node whose latest target is retained during preparation.
identityOwned natural type/ancestors retained by the mounting recipe.
Returns
Checked style admission; metadata copies and new ancestors are prepared before publication.

◆ finishSizing()

std::expected< void, ManagedError > portals::ui::detail::Access::finishSizing ( ManagedScene & scene,
Node< SizedWidget > source,
Node< SizedWidget > target,
const RecipeSizing * sizing )
inlinestatic

Commit final cold bounds and transparent frame preferences in one checked update.

Parameters
sceneUI-affine mount owner.
sourceConcrete sized content.
targetOuter frame when present, otherwise source itself.
sizingOptional final sparse instance geometry; borrowed only for this call.
Returns
Unchanged typed read, lifetime, policy or invalidation failure.

◆ forwardOuter()

Description< Widget > portals::ui::detail::Access::forwardOuter ( Description< Widget > description)
inlinestatic
Parameters
descriptionConsuming composite recipe whose factory forwards an inner mount's layout root.
Returns
Same source recipe opting into synchronous outer-root propagation; no retained wrapper is added.

◆ framedControl()

Description< Border > portals::ui::detail::Access::framedControl ( FrameOptions options,
ControlStyle style )
inlinestatic
Parameters
optionsOwning advanced appearance, validated before constructing descendants.
styleManual owning appearances beneath the existing stylesheet resolver.
Returns
Border recipe participating in ordinary mount tracking, rollback and reference publication.

◆ frameSettings()

template<class T>
void portals::ui::detail::Access::frameSettings ( Description< T > & description,
const ControlSettings & settings )
static

Stage precharged frame settings on the exact typed source recipe.

Parameters
descriptionRecipe retaining its ordinary source identity and callbacks on T.
settingsOwning sparse frame patch and diagnostic provenance copied before erasure.

◆ gridChild()

template<class Child>
void portals::ui::detail::Access::gridChild ( Description< Grid > & parent,
Child && child,
std::optional< GridRegion > region = {} )
static
Template Parameters
ChildConsuming real child recipe.
Parameters
parentReceiving standard grid recipe.
childSingle-use real child.
regionPresent only for a structural section.

◆ gridOptions()

std::expected< void, ManagedError > portals::ui::detail::Access::gridOptions ( ManagedScene & scene,
Node< Grid > node,
const GridOptions & options )
inlinestatic
Parameters
sceneLive managed owner.
nodeDeclarative grid receiving complete identities.
optionsResolved settings borrowed during checked replacement.
Returns
Existing typed configuration result, attributed to this grid.

◆ gridSection()

void portals::ui::detail::Access::gridSection ( Description< Grid > & parent,
GridSection section )
inlinestatic
Parameters
parentReceiving standard grid recipe.
sectionConsumed header/body group, without a Widget.

◆ instanceState()

std::expected< void, ManagedError > portals::ui::detail::Access::instanceState ( ManagedScene & scene,
Node< Widget > node,
std::optional< bool > visible,
std::optional< bool > enabled )
inlinestatic

Apply final local instance flags through the existing managed mount boundary.

Parameters
sceneBorrowed managed owner of the current transaction.
nodeCreated target; ancestor flags retain their existing tree semantics.
visibleOptional final local visibility.
enabledOptional final local enabled state.
Returns
Original boundary or tree failure attributed to this node in MOUNT.

◆ internalDialog()

Description< Dialog > portals::ui::detail::Access::internalDialog ( Description< Dialog > description,
const TextValue * prechargedTitle = nullptr )
inlinestatic
Parameters
descriptionComposite-owned Dialog recipe with already checked native options.
prechargedTitleBorrowed expression copied now when its leaf was already reserved.
Returns
Internal recipe retaining ordinary child defaults without inheriting Dialog defaults again.

◆ intrinsicStyle()

template<class T>
Description< T > portals::ui::detail::Access::intrinsicStyle ( Description< T > description,
StyleTarget identity )
static
Template Parameters
TConcrete widget created by the recipe.
Parameters
descriptionOwning recipe receiving intrinsic style names.
identityOwning natural type and required ancestors, finalized after setup modifiers.
Returns
Consuming recipe retaining the existing mount/ref transaction.

◆ layerHost()

std::expected< Node< OverlayHost >, ManagedError > portals::ui::detail::Access::layerHost ( ManagedScene & scene,
Node< Widget > root )
static
Parameters
sceneExisting owner with a completely mounted explicit or automatic host.
rootExact recipe root which must be that owner's registered host.
Returns
The existing typed host or INVALID_ARGUMENT; never creates a second host.

◆ layoutChild()

template<class Parent, class Child>
void portals::ui::detail::Access::layoutChild ( Description< Parent > & parent,
Description< Child > & child,
bool structural = false )
static
Template Parameters
ParentParent widget type.
ChildChild widget type.
Parameters
parentReceiving cold recipe.
childConsumed child recipe, inspected before transfer.
structuralRetain every child relationship, including default placements.

◆ lifetime()

std::weak_ptr< const void > portals::ui::detail::Access::lifetime ( ManagedScene & scene)
inlinestatic
Parameters
sceneBorrowed managed owner; observed only during UI-affine publication.
Returns
Weak token that expires before scene destruction releases registrations.

◆ mergeControlSettings()

ControlSettings portals::ui::detail::Access::mergeControlSettings ( ControlSettings base,
const ControlSettings & patch )
inlinestatic
Parameters
baseOwning lower-priority constructor arguments.
patchFinal explicit sparse instance properties.
Returns
Owning structural merge, retaining explicit false/zero and winning property provenance.

◆ messageBody()

template<class T>
std::expected< void, ManagedError > portals::ui::detail::Access::messageBody ( Description< T > & description,
Description< Widget > body )
static

Attach an owning custom body to a resultful dialog recipe.

Parameters
descriptionMessage-bound recipe retaining its source identity.
bodyCold content mounted once under the managed message owner.
Returns
Success, or a typed error when the recipe cannot accept the body.

◆ messageControl()

Description< Dialog > portals::ui::detail::Access::messageControl ( Description< Dialog > description)
inlinestatic
Parameters
descriptionOwning native message recipe.
Returns
Recipe tagged with actual message capability.

◆ messageSource()

template<class T>
std::expected< void, ManagedError > portals::ui::detail::Access::messageSource ( Description< T > & description,
const ControlSettings & settings,
ControlPropertyPresence materialized,
ControlFactoryKind kind = ControlFactoryKind::MESSAGE_BINDING )
static
Template Parameters
TRetained widget type.
Parameters
descriptionOwning native recipient recipe.
settingsEffective owning resource inputs.
materializedAlready reserved leaves.
kindRequired semantic capability; actual catalogs also satisfy view requirements.
Returns
Success after storing the source packet, or a typed capability mismatch.

◆ mount()

template<class T>
std::expected< Node< T >, ManagedError > portals::ui::detail::Access::mount ( Description< T > && description,
ManagedScene & scene,
Node< Widget > parent,
MountContext & context )
static

Mount a root or child inside the same transaction.

Template Parameters
TPublic Widget subtype constructed by the recipe.
Parameters
descriptionOwning recipe consumed by this call, including on failure.
sceneExisting UI-affine owner of all mounted nodes.
parentLive managed parent receiving the new child.
contextBorrowed transaction retaining observations and deferred ref publication.
Returns
Typed observing node or the unchanged creation/setup/child error.

◆ needsGridContext()

template<class T>
bool portals::ui::detail::Access::needsGridContext ( const Description< T > & description)
static
Template Parameters
TRoot widget type.
Parameters
descriptionUnmounted root borrowed for bounded opt-in detection.
Returns
Whether an explicitly configured standard Grid needs the local fallback schema.

◆ notificationControl()

Description< Overlay > portals::ui::detail::Access::notificationControl ( Description< Overlay > description)
inlinestatic
Parameters
descriptionOwning center/body recipe.
Returns
Recipe tagged with actual notification capability.

◆ numericSettings()

template<class T>
void portals::ui::detail::Access::numericSettings ( Description< T > & description,
ControlSettings patch )
static
Template Parameters
TSlider view type.
Parameters
descriptionReceiving cold recipe.
patchPresent resource numeric/input leaves with their original provenance. Preserve factory settings for every absent resource leaf.

◆ overlayControl()

Description< Overlay > portals::ui::detail::Access::overlayControl ( OverlayOptions options,
SizePolicy policy )
inlinestatic
Parameters
optionsActual ordinary Overlay alignment/insets.
policyActual parent size policy, preserved when sparse settings are absent.
Returns
Empty native Overlay recipe; children attach as real edges in source order.

◆ preparedControl()

template<class T>
void portals::ui::detail::Access::preparedControl ( Description< T > & description,
std::uint32_t alreadyMaterialized = 0 )
static

Mark resource-resolved settings without budgeting the same fields twice.

Template Parameters
TConcrete widget subtype retained by the recipe.
Parameters
descriptionOwning recipe updated before mounting.
alreadyMaterializedPresence mask already included in the resource mount budget.

◆ preparedControlPresence()

template<class T>
void portals::ui::detail::Access::preparedControlPresence ( Description< T > & description,
ControlPropertyPresence alreadyMaterialized )
static

Mark all resource-resolved fields without truncating the canonical vocabulary.

Template Parameters
TConcrete widget subtype retained by the recipe.
Parameters
descriptionOwning recipe updated before mounting.
alreadyMaterializedComplete presence set already included in the resource mount budget.

◆ preparedDialogHeading()

void portals::ui::detail::Access::preparedDialogHeading ( Description< Label > & description,
const TextValue & title )
inlinestatic
Parameters
descriptionNative derived heading, whose source title was already charged.
titleOwning source expression copied into presence metadata for this cold recipe. Keep inherited Label defaults checked/charged while excluding the materialized caption leaf.

◆ preparedThemeSelectorCaption()

template<class T>
void portals::ui::detail::Access::preparedThemeSelectorCaption ( Description< T > & description,
const TextValue & caption )
static
Template Parameters
TNative Label or Button.
Parameters
descriptionOwning internal caption recipe.
captionAlready materialized text expression; ordinary child defaults remain checked.

◆ resize()

std::expected< void, ManagedError > portals::ui::detail::Access::resize ( ManagedScene & scene,
Node< SizedWidget > node,
SizeChange change )
inlinestatic
Parameters
sceneExisting managed owner receiving a checked policy update.
nodeLive sized target created by this mount transaction.
changeOwning operation; other axes and unrelated bounds are preserved.
Returns
Original managed boundary/tree/validation error, or success.

◆ scrollAreaControl()

Description< ScrollArea > portals::ui::detail::Access::scrollAreaControl ( ScrollAreaOptions options,
std::shared_ptr< ScrollController > controller,
ControlStyle style )
inlinestatic
Parameters
optionsActual owning placement/input/frame options.
controllerOptional owning shared values; an empty area controller keeps native default creation.
styleOwning manual appearances beneath the existing theme.
Returns
Native area recipe without a synthetic child; caller attaches one real content edge.

◆ scrollBarControl()

Description< ScrollBar > portals::ui::detail::Access::scrollBarControl ( std::shared_ptr< ScrollController > controller,
ScrollAxis axis,
ScrollBarOptions options,
ControlStyle style,
bool writer )
inlinestatic
Parameters
controllerOptional only for a standalone writer; a projection requires an owning shared controller.
axisActual receiving projection axis.
optionsActual receiving input/paint options.
styleOwning manual appearances.
writerExisting native standalone geometry-writer role; false preserves the shared projection role.
Returns
Native bar recipe with checked sparse settings and unchanged controller ownership.

◆ sizingSettings()

template<class T>
void portals::ui::detail::Access::sizingSettings ( Description< T > & description,
const RecipeSizing & sizing )
static

Stage sizing.

Parameters
descriptionCold recipe.
sizingCopied owning overlay.

◆ switchSettings()

void portals::ui::detail::Access::switchSettings ( Description< Switch > & description,
ControlSettings patch )
inlinestatic
Parameters
descriptionTyped factory recipe.
patchPresent Switch resource leaves and their origins. Preserve all other factory settings; explicit resource false values are overrides.

◆ themeCatalogControl()

Description< Dialog > portals::ui::detail::Access::themeCatalogControl ( Description< Dialog > description)
inlinestatic
Parameters
descriptionOwning native catalog recipe.
Returns
Recipe tagged with actual catalog capability.

◆ themeCatalogRecipient()

template<class T>
bool portals::ui::detail::Access::themeCatalogRecipient ( const Description< T > & description)
staticnoexcept
Template Parameters
TRetained widget type.
Parameters
descriptionRecipe inspected without mutation.
Returns
Whether its actual producer owns the catalog construction path.

◆ themeSelectorControl()

Description< Dialog > portals::ui::detail::Access::themeSelectorControl ( Description< Dialog > description)
inlinestatic
Parameters
descriptionOwning native view recipe.
Returns
Recipe tagged with actual view capability.

◆ transaction()

template<class Factory>
Description< Widget > portals::ui::detail::Access::transaction ( Factory factory)
static
Template Parameters
FactoryOwning checked callable accepting scene, parent and the shared mount context.
Parameters
factoryInternal adapter performing a complete existing recipe transaction.
Returns
Single-use erased recipe; no extra widget or lifecycle owner is created.

◆ withLayout()

template<class T>
Description< T > portals::ui::detail::Access::withLayout ( Description< T > description,
std::shared_ptr< RecipeLayout > layout )
static
Template Parameters
TParent widget type.
Parameters
descriptionCold composition retaining normal transaction behavior.
layoutPreviously captured owning layout metadata.
Returns
Same consuming composition with its children included in preflight.

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