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

Single-use owning construction recipe; no mounted widget ownership. More...

#include <ui_description.hpp>

Public Member Functions

 Description ()=default
 Construct an empty recipe; mounting it returns INVALID_ARGUMENT.
 Description (Description &&) noexcept=default
 Transfer the unnamed recipe; its source becomes empty.
Description & operator= (Description &&) noexcept=default
 Replace this recipe with the unnamed source, which becomes empty.
 Description (const Description &)=delete
Description & operator= (const Description &)=delete
Description && settings (ControlSettings patch) &&
Description && mode (DocumentViewMode value) &&
Description && hex (DocumentHexOptions options={}) &&
Description && language (DocumentLanguage value) &&
Description && language (std::string_view name) &&
Description && syntax (DocumentSyntaxPolicy value) &&
Description && lineNumbers (bool enabled=true) &&
Description && fastScroll (std::uint64_t step=8, key::Modifier keyboard=key::CTRL, key::Modifier wheel=key::ALT) &&
Description && scrollStep (std::uint64_t rows) &&
Description && wrap (bool enabled=true) &&
Description && encoding (DocumentEncoding value) &&
Description && threeState () &&
Description && chrome (ButtonChrome value) &&
Description && glyphProfile (GlyphProfile value) &&
Description && glyphProfile (std::string_view value) &&
Description && glyphFallback (GlyphFallback value) &&
Description && glyphFallback (std::string_view value) &&
Description && glyphs (PrimitiveGlyphs value) &&
Description && maxPaintCells (std::size_t cells) &&
Description && value (double value) &&
Description && minimum (double value) &&
Description && maximum (double value) &&
Description && range (double minimum, double maximum) &&
Description && preferredWidth (std::int32_t cells) &&
Description && step (double amount) &&
Description && skin (std::string_view name) &&
Description && skin (SliderSkin value) &&
Description && skin (SpinBoxSkin value) &&
Description && glyphs (SliderGlyphs value) &&
Description && pageSteps (std::uint64_t count) &&
Description && wheelStep (double cells) &&
Description && keyStep (std::uint64_t cells) &&
Description && pageOverlap (std::uint64_t cells) &&
Description && arrows (bool enabled=true) &&
Description && minimumThumb (std::int32_t cells) &&
Description && focusable (bool value=true) &&
Description && readOnly (bool value=true) &&
Description && selectionMode (RadioSelectionMode value) &&
Description && immediate (bool enabled=true) &&
Description && fuzzy (bool enabled=true) &&
Description && prefix () &&
Description && noEcho (bool enabled=true) &&
Description && editMode (EditMode value) &&
Description && placeholder (TextValue value) &&
Description && placeholder (std::string_view value) &&
Description && horizontal (ScrollBarPolicy policy) &&
Description && vertical (ScrollBarPolicy policy) &&
Description && placement (ScrollPlacement placement) &&
Description && scrollOnFrame () &&
Description && scrollbar (std::string_view pattern) &&
Description && scrollbar (ScrollbarPattern pattern) &&
Description && scrollTrack (std::string_view pattern) &&
Description && scrollTrack (ScrollbarPattern pattern) &&
Description && scrollThumb (std::string_view pattern) &&
Description && scrollThumb (ScrollbarThumbPattern pattern) &&
Description && scrollArrows (std::string_view pattern) &&
Description && scrollArrows (ScrollbarArrowPattern pattern) &&
Description && scrollbar (ScrollbarSkin skin) &&
Description && frameEnabled (bool enabled=true) &&
Description && frameGlyphs (PrimitiveGlyphs glyphs) &&
Description && frameMaxPaintCells (std::size_t cells) &&
Description && axis (ScrollAxis axis) &&
Description && rowHeight (std::int32_t value) &&
Description && autoRowHeight (bool enabled=true) &&
Description && overscanRows (std::size_t value) &&
Description && maxColumns (std::size_t value) &&
Description && maxPreparedCells (std::size_t value) &&
Description && maxPreparedTextBytes (std::size_t value) &&
Description && mode (ChartMode value) &&
Description && chartGlyphSet (ChartGlyphSet value) &&
Description && candleGap (std::int32_t cells) &&
Description && yRange (std::optional< ChartRange > range) &&
Description && showStatus (bool value=true) &&
Description && statusRows (std::int32_t value) &&
Description && contentPolicy (DataContentPolicy value) &&
Description && spinnerInterval (SchedulerTime value) &&
Description && labels (ControlDataStateLabelSettings values) &&
Description && maxLayers (std::size_t value) &&
Description && title (TextValue value) &&
Description && title (std::string_view value) &&
Description && mode (DialogMode value) &&
Description && nonModal () &&
 Keep the main form available while this dialog is open.
Description && placement (DialogPlacement value) &&
Description && viewportMargin (std::int32_t value) &&
Description && anchorGap (std::int32_t value) &&
Description && closeOnEscape (bool value=true) &&
Description && closeButton (DialogCloseOptions options={}) &&
Description && maximumPanelSize (CellSize caps) &&
Description && frame (BorderOptions options) &&
Description && dialogSettings (ControlDialogSettings values) &&
Description && body (TextValue value) &&
Description && body (std::string_view value) &&
Description && messageSettings (ControlMessageSettings values) &&
Description && themeCatalogSettings (ControlThemeCatalogSettings values) &&
Description && themeSelectorSettings (ControlThemeSelectorSettings values) &&
Description && notificationSettings (ControlNotificationSettings values) &&
Description && initiallyOpen (bool opened=true) &&
Description && format (ControlKeyFormatSettings values) &&
Description && emptyText (std::string value) &&
Description && unavailableText (std::string value) &&
Description && entrySeparator (std::string value) &&
Description && overflowMarker (std::string value) &&
Description && padding (LayoutPadding insets) &&
Description && preset (SpinnerPreset value) &&
template<typename Name>
requires (std::same_as<T, Spinner> && std::convertible_to<Name, std::string_view>)
Description && preset (Name &&value) &&
Description && frames (std::initializer_list< std::string_view > values) &&
Description && frames (std::string_view value) &&
Description && interval (SchedulerTime value) &&
Description && direction (SpinnerDirection value) &&
Description && alignment (LayoutAlign value) &&
Description && active (bool value) &&
Description && reducedMotion (bool value) &&
Description && label (std::string_view value) &&
Description && label (TextValue value) &&
Description && maxFrames (std::size_t value) &&
Description && maxFrameBytes (std::size_t value) &&
Description && maxFrameCells (std::size_t value) &&
Description && horizontalAlign (LayoutAlign align) &&
Description && verticalAlign (LayoutAlign align) &&
Description && variant (std::string_view type) &&
Description && reference (NodeRef< T > reference) &&
template<class U>
requires std::same_as<T, Dialog>
Description && anchor (const Ref< U > &reference, DialogPlacement placement=DialogPlacement::BELOW_START) &&
template<class Callback>
requires std::same_as<T, Dialog>
Description && onDismiss (Callback callback) &&
Description && style (StyleTarget target) &&
Description && id (std::string_view value) &&
Description && classes (std::string_view value) &&
template<class Callback = detail::QuitCommand>
requires (std::same_as<T, Button> && portals::detail::ManagedAction<Callback, ClickEvent>)
Description && onClick (Callback callback) &&
template<std::equality_comparable Value, class Callback>
requires std::copy_constructible<Callback> && (std::same_as<std::invoke_result_t<Callback &, const Value &>, void> ||
std::same_as<std::invoke_result_t<Callback &, const Value &>, std::expected<void, TreeError>>)
Description && observe (ManagedState< Value > model, Callback callback) &&
template<std::equality_comparable Value, class Callback>
requires std::copy_constructible<Callback> && (std::same_as<std::invoke_result_t<Callback &, const Value &>, void> ||
std::same_as<std::invoke_result_t<Callback &, const Value &>, std::expected<void, TreeError>>)
Description && observe (ManagedSource< Value > source, Callback callback) &&
Description && onEvent (ManagedEventHandler< T > callback) &&
Description && onPrepare (ManagedPrepareHandler< T > callback) &&
template<class Callback>
requires std::copy_constructible<Callback> && portals::detail::ManagedTreeResult<std::invoke_result_t<Callback &, T &, Node
<Widget>>> && (!std::same_as<std::invoke_result_t<Callback &, T &, Node<Widget>>, std::expected<void, TreeError>>)
Description && onPrepare (Callback callback) &&
Description && visible (bool value=true) &&
Description && enabled (bool value=true) &&
Description && framed (FrameOptions options={}) &&
Description && titleDecoration (TitleDecoration decoration) &&
Description && titleDecoration (std::string_view name) &&
Description && titleDecoration (CustomTitleDecoration decoration) &&
Description && framed (std::string_view pattern) &&
Description && framed (std::string_view pattern, std::string_view title) &&
template<class Title>
requires std::same_as<Title, ValueText> && (std::derived_from<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && framed (std::string_view pattern, Title title) &&
template<class Value>
requires std::formattable<Value, char> && std::equality_comparable<Value> && std::copy_constructible<Value> && (std::derived_from
<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && framed (std::string_view pattern, Model< Value > title) &&
Description && framed (Ref< Border > outer, FrameOptions options={}) &&
Description && framed (Ref< Border > outer, std::string_view pattern) &&
Description && framed (Ref< Border > outer, std::string_view pattern, std::string_view title) &&
template<class Title>
requires std::same_as<Title, ValueText> && (std::derived_from<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && framed (Ref< Border > outer, std::string_view pattern, Title title) &&
template<class Value>
requires std::formattable<Value, char> && std::equality_comparable<Value> && std::copy_constructible<Value> && (std::derived_from
<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && framed (Ref< Border > outer, std::string_view pattern, Model< Value > title) &&
Description && width (std::int32_t cells) &&
Description && height (std::int32_t cells) &&
Description && fitWidth () &&
Description && fitHeight () &&
Description && minWidth (std::int32_t cells) &&
Description && maxWidth (std::int32_t cells) &&
Description && minHeight (std::int32_t cells) &&
Description && maxHeight (std::int32_t cells) &&
Description && columns (std::size_t count) &&
Description && rows (std::size_t count) &&
Description && flow (GridFlow value) &&
Description && columnGap (std::int32_t cells) &&
Description && rowGap (std::int32_t cells) &&
Description && gridOptions (DeclarativeGridOptions options) &&
Description && presentation (GridPresentation presentation) &&
Description && columnSizes (const std::vector< AxisSize > &policies) &&
Description && rowSizes (const std::vector< AxisSize > &policies) &&
Description && scroll (std::shared_ptr< ScrollController > controller={}) &&
Description && scrollOptions (ScrollAreaOptions options) &&
Description && gridItem (GridItemOptions options) &&
Description && row (std::size_t index) &&
Description && column (std::size_t index) &&
Description && rowSpan (std::size_t count) &&
Description && columnSpan (std::size_t count) &&
Description && flexX (std::uint32_t weight=1) &&
Description && flexY (std::uint32_t weight=1) &&
Description && flex (std::uint32_t weight=1) &&
Description && setup (Setup< T > callback) &&
Description && focusScope () &&
 Declare this subtree as a nested focus scope, with scene-owned lifetime.
Description && focusDefault () &&
 Prefer this node when entering its nearest scope without eligible history.

Friends

struct detail::Access
struct detail::ResourceAccess
template<detail::DescriptionInput Child>
Description< Border > border (Child &&, BorderOptions, ControlStyle)
template<detail::DescriptionInput Child>
Description< ScrollArea > scrollArea (Child &&, ScrollAreaOptions, std::shared_ptr< ScrollController >, ControlStyle)
template<class U, class... Args>
Description< U > custom (Args &&... args)
 Capture constructor arguments without requiring inheritance from a DSL widget.
template<class U>
Description< U > control (std::string_view text, ControlStyle style, SizePolicy policy)
 Construct a standard text-control recipe with the scene's width policy.
template<class U, detail::DescriptionInput... Children>
Description< U > linear (LinearOptions, Children &&...)
template<class U, detail::DescriptionRange R>
Description< U > linear (LinearOptions options, R &&children)
 Immediately consume a range into the existing linear-layout mount transaction.
template<detail::DescriptionInput... Children>
Description< Overlay > overlay (OverlayOptions, SizePolicy, Children &&...)
template<detail::GridInput... Children>
Description< Grid > grid (Children &&...)
Description< LineEdit > lineEdit (ManagedState< std::string > model, LineEditConfig config)

Detailed Description

template<class T>
class portals::ui::Description< T >

Single-use owning construction recipe; no mounted widget ownership.

Move-only recipe whose strings, arguments, children and callbacks survive their sources.

Template Parameters
TPublic Widget subtype constructed by the recipe, including final types.
TPublic Widget subtype. Factories enforce constructor compatibility when instantiated. Factory/modifier allocations and capture construction may throw before mount begins. Mount translates internal exceptions, consumes the entire recipe even on failure, and transfers registered callbacks to the existing ManagedScene. Destruction never changes mounted UI.

Member Function Documentation

◆ active()

template<class T>
Description && portals::ui::Description< T >::active ( bool value) &&
inline
Parameters
valueOwning/finite Spinner active setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ alignment()

template<class T>
Description && portals::ui::Description< T >::alignment ( LayoutAlign value) &&
inline
Parameters
valueOwning/finite Spinner alignment setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ anchor()

template<class T>
template<class U>
requires std::same_as<T, Dialog>
Description && portals::ui::Description< T >::anchor ( const Ref< U > & reference,
DialogPlacement placement = DialogPlacement::BELOW_START ) &&
inline
Template Parameters
UPublic widget type of the ordinary-body anchor.
Parameters
referenceWeak observing slot resolved after the entire cold mount, before publication.
placementPreferred ABOVE_START/BELOW_START position; CENTER retains centered placement.
Returns
Consuming dialog recipe; foreign/dialog-owned/stale anchors fail without partial publication.

◆ anchorGap()

template<class T>
Description && portals::ui::Description< T >::anchorGap ( std::int32_t value) &&
inline
Parameters
valueNonnegative distance from an anchor.
Returns
This consuming exact native Dialog recipe.

◆ arrows()

template<class T>
Description && portals::ui::Description< T >::arrows ( bool enabled = true) &&
inline
Parameters
enabledReserve functional end buttons on channels of at least three cells.
Returns
Consuming native scroll recipe; managed scenes automatically supply held-arrow services.

◆ autoRowHeight()

template<class T>
Description && portals::ui::Description< T >::autoRowHeight ( bool enabled = true) &&
inline
Parameters
enabledMeasure each bounded mounted row from its composed content.
Returns
Consuming virtual-row recipe; false retains the configured fixed row height.

◆ axis()

template<class T>
Description && portals::ui::Description< T >::axis ( ScrollAxis axis) &&
inline
Parameters
axisEffective bar projection axis; standalone/shared writer ownership is unchanged.
Returns
Consuming native bar recipe with a checked sparse axis override.

◆ body() [1/2]

template<class T>
Description && portals::ui::Description< T >::body ( std::string_view value) &&
inline
Parameters
valueLiteral paragraph bytes copied immediately.
Returns
This consuming message recipe.

◆ body() [2/2]

template<class T>
Description && portals::ui::Description< T >::body ( TextValue value) &&
inline
Parameters
valueOwning MessageBox paragraph expression.
Returns
This consuming message recipe. Ordinary Dialog recipes reject this message-only setting during checked preparation.

◆ candleGap()

template<class T>
Description && portals::ui::Description< T >::candleGap ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative empty columns between candle samples; ignored by LINE mode.
Returns
This consuming exact native chart recipe.

◆ chartGlyphSet()

template<class T>
Description && portals::ui::Description< T >::chartGlyphSet ( ChartGlyphSet value) &&
inline
Parameters
valueChart candle glyph set, independent of primitive decorations.
Returns
This consuming exact native chart recipe.

◆ chrome()

template<class T>
Description && portals::ui::Description< T >::chrome ( ButtonChrome value) &&
inline
Parameters
valueButton decoration, checked before caption resolution or construction.
Returns
Consuming standard Button recipe with a sparse final override.

◆ classes()

template<class T>
Description && portals::ui::Description< T >::classes ( std::string_view value) &&
inline
Parameters
valueClass names copied now, separated only by ASCII whitespace; empty clears.
Returns
Consuming recipe; classes replace previous classes in modifier order, preserving other metadata. A later style replaces the classes with its own complete target; a later classes modifier replaces only classes.

◆ closeButton()

template<class T>
Description && portals::ui::Description< T >::closeButton ( DialogCloseOptions options = {}) &&
inline
Parameters
optionsTop-frame close chrome; calling with defaults enables it.
Returns
This consuming Dialog recipe; tiny panels hide the affordance completely.

◆ closeOnEscape()

template<class T>
Description && portals::ui::Description< T >::closeOnEscape ( bool value = true) &&
inline
Parameters
valueExisting Escape cancellation policy.
Returns
This consuming exact native Dialog recipe.

◆ column()

template<class T>
Description && portals::ui::Description< T >::column ( std::size_t index) &&
inline
Parameters
indexZero-based local column; row must also be explicit.
Returns
Consuming child recipe; this does not alter an ordinary row container.

◆ columnGap()

template<class T>
Description && portals::ui::Description< T >::columnGap ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative terminal cells between columns.
Returns
Consuming standard grid recipe; a column or row count is still required.

◆ columns()

template<class T>
Description && portals::ui::Description< T >::columns ( std::size_t count) &&
inline
Parameters
countPositive fixed column count; row-major flow grows rows within the configured budget.
Returns
Consuming standard grid recipe; invalid relationships fail before mount effects.

◆ columnSizes()

template<class T>
Description && portals::ui::Description< T >::columnSizes ( const std::vector< AxisSize > & policies) &&
inline
Parameters
policiesTrack policies copied now; length must equal the resolved shared column count.
Returns
Consuming declarative grid recipe; invalid policies/counts fail before mount effects.

◆ columnSpan()

template<class T>
Description && portals::ui::Description< T >::columnSpan ( std::size_t count) &&
inline
Parameters
countPositive number of occupied columns, including intervening gaps.
Returns
Consuming child recipe; overlap is rejected in declarative Grid mode.

◆ contentPolicy()

template<class T>
Description && portals::ui::Description< T >::contentPolicy ( DataContentPolicy value) &&
inline
Parameters
valueExisting body visibility policy; automatic mode requires KEEP_BODY.
Returns
This consuming exact native DataStateView recipe.

◆ dialogSettings()

template<class T>
Description && portals::ui::Description< T >::dialogSettings ( ControlDialogSettings values) &&
inline
Parameters
valuesSparse independent native options; unspecified actual values survive.
Returns
This consuming exact native Dialog recipe.

◆ direction()

template<class T>
Description && portals::ui::Description< T >::direction ( SpinnerDirection value) &&
inline
Parameters
valueOwning/finite Spinner direction setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ editMode()

template<class T>
Description && portals::ui::Description< T >::editMode ( EditMode value) &&
inline
Parameters
valuePublication mode shared by input and fluent changes.
Returns
Consuming editor recipe.

◆ emptyText()

template<class T>
Description && portals::ui::Description< T >::emptyText ( std::string value) &&
inline
Parameters
valueOwning literal UTF-8 presentation text, never resolved as an expression.
Returns
This consuming applicable native help recipe.

◆ enabled()

template<class T>
Description && portals::ui::Description< T >::enabled ( bool value = true) &&
inline
Parameters
valueFinal local enabled state; false preserves layout/paint and uses existing input/style rules.
Returns
Consuming recipe; ancestor flags continue to dominate this local value.

◆ encoding()

template<class T>
Description && portals::ui::Description< T >::encoding ( DocumentEncoding value) &&
inline
Parameters
valueExplicit byte encoding.
Returns
Consuming text viewer recipe preserving its byte anchor.

◆ entrySeparator()

template<class T>
Description && portals::ui::Description< T >::entrySeparator ( std::string value) &&
inline
Parameters
valueOwning literal UTF-8 presentation text, never resolved as an expression.
Returns
This consuming applicable native help recipe.

◆ fastScroll()

template<class T>
Description && portals::ui::Description< T >::fastScroll ( std::uint64_t step = 8,
key::Modifier keyboard = key::CTRL,
key::Modifier wheel = key::ALT ) &&
inline
Parameters
stepPositive absolute visual-row step, at most INT64_MAX.
keyboardExact Up/Down modifier.
wheelExact wheel modifier.
Returns
Consuming Viewer recipe enabling fast navigation; invalid values fail atomically at mount.

◆ fitHeight()

template<class T>
Description && portals::ui::Description< T >::fitHeight ( ) &&
inline
Returns
Content-preferred height, shrinkable within existing bounds; checked after setup.

◆ fitWidth()

template<class T>
Description && portals::ui::Description< T >::fitWidth ( ) &&
inline
Returns
Content-preferred width, shrinkable within existing bounds; checked after setup.

◆ flex()

template<class T>
Description && portals::ui::Description< T >::flex ( std::uint32_t weight = 1) &&
inline
Parameters
weightPositive flex weight for both axes, with zero preferred bases and existing bounds preserved.
Returns
Consuming recipe; zero weight fails at checked mount. A prior fixed bound still caps flex growth.

◆ flexX()

template<class T>
Description && portals::ui::Description< T >::flexX ( std::uint32_t weight = 1) &&
inline
Parameters
weightPositive horizontal flex weight; zero preferred basis, existing bounds and vertical axis are preserved.
Returns
Consuming recipe; zero weight fails at checked mount.

◆ flexY()

template<class T>
Description && portals::ui::Description< T >::flexY ( std::uint32_t weight = 1) &&
inline
Parameters
weightPositive vertical flex weight; zero preferred basis, existing bounds and horizontal axis are preserved.
Returns
Consuming recipe; zero weight fails at checked mount.

◆ flow()

template<class T>
Description && portals::ui::Description< T >::flow ( GridFlow value) &&
inline
Parameters
valueForward placement direction; COLUMN_MAJOR requires rows.
Returns
Consuming standard grid recipe; unknown directions fail during preflight.

◆ focusable()

template<class T>
Description && portals::ui::Description< T >::focusable ( bool value = true) &&
inline
Parameters
valueWhether the owning area/standalone bar joins focus traversal.
Returns
Consuming native area/bar recipe; embedded bars still create no extra focus stop.

◆ focusDefault()

template<class T>
Description && portals::ui::Description< T >::focusDefault ( ) &&
inline

Prefer this node when entering its nearest scope without eligible history.

Returns
This consuming recipe; mount fails with INVALID_ARGUMENT without an enclosing scope. With multiple defaults in one scope, the last declared preorder default wins.

◆ focusScope()

template<class T>
Description && portals::ui::Description< T >::focusScope ( ) &&
inline

Declare this subtree as a nested focus scope, with scene-owned lifetime.

Returns
This consuming recipe; mount registers before child defaults and rolls back on failure.

◆ format()

template<class T>
Description && portals::ui::Description< T >::format ( ControlKeyFormatSettings values) &&
inline
Parameters
valuesOwning sparse literal formatter patch, merged one leaf at a time.
Returns
This consuming native help presentation recipe.

◆ frame()

template<class T>
Description && portals::ui::Description< T >::frame ( BorderOptions options) &&
inline
Parameters
optionsExisting mandatory frame glyph/paint options; no optional enabled state.
Returns
This consuming exact native Dialog recipe.

◆ framed() [1/10]

template<class T>
Description && portals::ui::Description< T >::framed ( FrameOptions options = {}) &&
inline
Parameters
optionsOwning frame pattern, sides, title and finite limits; validated during mount.
Returns
Consuming recipe retaining its original typed Ref and handlers. Width/height/flex and mount-only visibility/enabled flags address the outer frame; custom setup still addresses T. ScrollArea configures its own frame; ordinary sized widgets gain one passive Border ancestor.

◆ framed() [2/10]

template<class T>
Description && portals::ui::Description< T >::framed ( Ref< Border > outer,
FrameOptions options = {} ) &&
inline
Parameters
outerEmpty observer published for the retained Border only after complete mount success.
optionsOwning advanced frame settings.
Returns
Same typed child recipe; hide/remove outer to affect both frame and content. Removing or hiding the original child Ref retains the ordinary downward-only tree semantics.

◆ framed() [3/10]

template<class T>
Description && portals::ui::Description< T >::framed ( Ref< Border > outer,
std::string_view pattern ) &&
inline
Parameters
outerEmpty observer for this recipe's new Border ancestor.
patternChecked compact preset name.
Returns
Same typed child recipe, with the same delayed reference publication as framed(outer, options).

◆ framed() [4/10]

template<class T>
template<class Value>
requires std::formattable<Value, char> && std::equality_comparable<Value> && std::copy_constructible<Value> && (std::derived_from
<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && portals::ui::Description< T >::framed ( Ref< Border > outer,
std::string_view pattern,
Model< Value > title ) &&
Template Parameters
ValueCopyable owning scalar accepted by the standard formatter.
Parameters
outerEmpty observing slot for this frame.
patternChecked compact preset.
titleCold scalar root; compatible outer.model(...) preserves its default formatter.
Returns
Same consuming child recipe with a dynamically bound ordinary Border title.

◆ framed() [5/10]

template<class T>
Description && portals::ui::Description< T >::framed ( Ref< Border > outer,
std::string_view pattern,
std::string_view title ) &&
inline
Parameters
outerEmpty observer published only after complete mount success.
patternChecked compact preset name.
titleOwning top-edge title, checked at mount with the existing frame limits.
Returns
Same typed child recipe, with the existing outer Border publication contract.

◆ framed() [6/10]

template<class T>
template<class Title>
requires std::same_as<Title, ValueText> && (std::derived_from<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && portals::ui::Description< T >::framed ( Ref< Border > outer,
std::string_view pattern,
Title title ) &&
Template Parameters
TitleExactly ValueText; deduction preserves the empty literal title overload.
Parameters
outerEmpty observing slot for this frame, published after the complete subtree mounts.
patternChecked compact preset.
titleOwning live formatted title.
Returns
Same consuming child recipe; outer.model(...) may replace the complete title expression.

◆ framed() [7/10]

template<class T>
Description && portals::ui::Description< T >::framed ( std::string_view pattern) &&
inline
Parameters
patternOne of single/plain, rounded, double, heavy or ascii.
Returns
Consuming frame recipe; unknown names become typed frame.pattern errors at mount.

◆ framed() [8/10]

template<class T>
template<class Value>
requires std::formattable<Value, char> && std::equality_comparable<Value> && std::copy_constructible<Value> && (std::derived_from
<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && portals::ui::Description< T >::framed ( std::string_view pattern,
Model< Value > title ) &&
Template Parameters
ValueOwning scalar accepted by the standard formatter.
Parameters
patternChecked compact preset.
titleCold scalar title source.
Returns
Same live-title recipe as framed(pattern, text("{}", title)).

◆ framed() [9/10]

template<class T>
Description && portals::ui::Description< T >::framed ( std::string_view pattern,
std::string_view title ) &&
inline
Parameters
patternChecked compact preset name, with the existing aliases and mount errors.
titleUTF-8 top-edge title copied now and validated with the existing frame limits at mount.
Returns
Same typed recipe, retaining its original reference, handlers and outer-size behavior.

◆ framed() [10/10]

template<class T>
template<class Title>
requires std::same_as<Title, ValueText> && (std::derived_from<T, SizedWidget> && !std::derived_from<T, ScrollArea>)
Description && portals::ui::Description< T >::framed ( std::string_view pattern,
Title title ) &&
Template Parameters
TitleExactly ValueText; deduction preserves the empty literal title overload.
Parameters
patternChecked compact frame preset.
titleOwning live text expression using the same scalar dependencies as label/button captions.
Returns
Consuming ordinary framed recipe. Native ScrollArea-owned frames use their static title API. Errors reject mount; changed titles preserve frame style, decoration, allocation and size policy.

◆ frameEnabled()

template<class T>
Description && portals::ui::Description< T >::frameEnabled ( bool enabled = true) &&
inline
Parameters
enabledTrue creates a missing default one-cell frame; false removes the effective frame.
Returns
Consuming native area recipe; existing frame options survive an explicit true.

◆ frameGlyphs()

template<class T>
Description && portals::ui::Description< T >::frameGlyphs ( PrimitiveGlyphs glyphs) &&
inline
Parameters
glyphsOne-cell glyph mode for an effective enabled frame.
Returns
Consuming native area recipe; an absent effective frame remains a typed error.

◆ frameMaxPaintCells()

template<class T>
Description && portals::ui::Description< T >::frameMaxPaintCells ( std::size_t cells) &&
inline
Parameters
cellsPositive paint cap for an effective enabled one-cell frame.
Returns
Consuming native area recipe; this does not enable a missing frame.

◆ frames() [1/2]

template<class T>
Description && portals::ui::Description< T >::frames ( std::initializer_list< std::string_view > values) &&
inline
Parameters
valuesComplete single-row frames, copied into owning configuration.
Returns
Consuming Spinner recipe; invalid entries are rejected during preparation.

◆ frames() [2/2]

template<class T>
Description && portals::ui::Description< T >::frames ( std::string_view value) &&
inline
Parameters
valueOwning/finite Spinner frames setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ fuzzy()

template<class T>
Description && portals::ui::Description< T >::fuzzy ( bool enabled = true) &&
inline
Parameters
enabledAllow one-edit prefix matching from three normalized query graphemes; false selects PREFIX.
Returns
Consuming choice recipe; only the strategy leaf changes, retaining configured search budgets.

◆ glyphFallback() [1/2]

template<class T>
Description && portals::ui::Description< T >::glyphFallback ( GlyphFallback value) &&
inline
Parameters
valuePortable fallback for one-cell admission failures.
Returns
Consuming sized recipe; selecting NF still asserts host support.

◆ glyphFallback() [2/2]

template<class T>
Description && portals::ui::Description< T >::glyphFallback ( std::string_view value) &&
inline
Parameters
valueCompact unicode/ascii fallback name.
Returns
Consuming checked recipe.

◆ glyphProfile() [1/2]

template<class T>
Description && portals::ui::Description< T >::glyphProfile ( GlyphProfile value) &&
inline
Parameters
valueNamed base below PSS overrides and literal custom sources.
Returns
Consuming sized recipe; geometry and colors are unchanged.

◆ glyphProfile() [2/2]

template<class T>
Description && portals::ui::Description< T >::glyphProfile ( std::string_view value) &&
inline
Parameters
valueCompact profile name; unknown names fail before first paint.
Returns
Consuming sized recipe with owning logical settings.

◆ glyphs() [1/2]

template<class T>
Description && portals::ui::Description< T >::glyphs ( PrimitiveGlyphs value) &&
inline
Parameters
valueBorder/Gauge/scroll one-cell decoration mode.
Returns
Consuming native primitive recipe; absent settings remain unchanged.

◆ glyphs() [2/2]

template<class T>
Description && portals::ui::Description< T >::glyphs ( SliderGlyphs value) &&
inline
Parameters
valueOwning one-cell graphemes, checked against the receiving width policy.
Returns
Consuming Slider recipe; all three glyphs are retained independently of the caller.

◆ gridItem()

template<class T>
Description && portals::ui::Description< T >::gridItem ( GridItemOptions options) &&
inline
Parameters
optionsComplete parent-child placement; replaces prior relationship modifiers.
Returns
Consuming recipe; only an immediate declarative Grid parent accepts this relationship.

◆ gridOptions()

template<class T>
Description && portals::ui::Description< T >::gridOptions ( DeclarativeGridOptions options) &&
inline
Parameters
optionsComplete owning declaration, including finite work budgets; replaces prior grid modifiers.
Returns
Consuming standard grid recipe; relationships remain independent from control defaults.

◆ height()

template<class T>
Description && portals::ui::Description< T >::height ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative fixed height; replaces only the vertical bounds/mode.
Returns
Consuming recipe; invalid cells fail at mount without publishing refs.

◆ hex()

template<class T>
Description && portals::ui::Description< T >::hex ( DocumentHexOptions options = {}) &&
inline
Parameters
optionsFixed raw-byte row layout.
Returns
Consuming HEX viewer recipe.

◆ horizontal()

template<class T>
Description && portals::ui::Description< T >::horizontal ( ScrollBarPolicy policy) &&
inline
Parameters
policyHorizontal bar presence policy.
Returns
Consuming native area recipe with a sparse horizontal policy.

◆ horizontalAlign()

template<class T>
Description && portals::ui::Description< T >::horizontalAlign ( LayoutAlign align) &&
inline
Parameters
alignChild alignment across ordinary Overlay columns.
Returns
Consuming exact Overlay recipe; containing Grid alignment stays independent.

◆ id()

template<class T>
Description && portals::ui::Description< T >::id ( std::string_view value) &&
inline
Parameters
valueCase-sensitive style id copied into this recipe; type/classes are preserved.
Returns
Consuming recipe; id is assigned at mount in modifier order, before later styles. A later style with an empty id preserves it; an explicit nonempty style id replaces it.

◆ immediate()

template<class T>
Description && portals::ui::Description< T >::immediate ( bool enabled = true) &&
inline
Parameters
enabledSelect while navigating; false restores explicit activation.
Returns
Consuming radio recipe, preserving other settings.

◆ initiallyOpen()

template<class T>
Description && portals::ui::Description< T >::initiallyOpen ( bool opened = true) &&
inline
Parameters
openedInitial HelpView state; opening uses its existing finalizer and focus return.
Returns
This consuming native help recipe.

◆ interval()

template<class T>
Description && portals::ui::Description< T >::interval ( SchedulerTime value) &&
inline
Parameters
valueOwning/finite Spinner interval setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ keyStep()

template<class T>
Description && portals::ui::Description< T >::keyStep ( std::uint64_t cells) &&
inline
Parameters
cellsPositive exact 64-bit logical cells per arrow event.
Returns
Consuming native area/bar recipe retaining the full logical step width.

◆ label() [1/2]

template<class T>
Description && portals::ui::Description< T >::label ( std::string_view value) &&
inline
Parameters
valueOwning/finite Spinner label setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ label() [2/2]

template<class T>
Description && portals::ui::Description< T >::label ( TextValue value) &&
inline
Parameters
valueOwning literal/format/resource expression resolved at construction.
Returns
Consuming exact Spinner recipe with a staged label.

◆ labels()

template<class T>
Description && portals::ui::Description< T >::labels ( ControlDataStateLabelSettings values) &&
inline
Parameters
valuesOwning sparse native status expressions; unused expressions remain unresolved.
Returns
This consuming exact native DataStateView recipe.

◆ language() [1/2]

template<class T>
Description && portals::ui::Description< T >::language ( DocumentLanguage value) &&
inline
Parameters
valueLexical profile, prepared on workers without blocking the first plain frame.
Returns
Consuming viewer recipe; PLAIN disables syntax roles.

◆ language() [2/2]

template<class T>
Description && portals::ui::Description< T >::language ( std::string_view name) &&
inline
Parameters
nameCase-insensitive SQL/PostgreSQL, MySQL, Markdown/MD or plain profile name.
Returns
Consuming viewer recipe; unknown names select plain text.

◆ lineNumbers()

template<class T>
Description && portals::ui::Description< T >::lineNumbers ( bool enabled = true) &&
inline
Parameters
enabledShow proven logical line numbers.
Returns
Consuming text viewer recipe.

◆ maxColumns()

template<class T>
Description && portals::ui::Description< T >::maxColumns ( std::size_t value) &&
inline
Parameters
valuePositive table configured-column cap.
Returns
This consuming exact native data-view recipe.

◆ maxFrameBytes()

template<class T>
Description && portals::ui::Description< T >::maxFrameBytes ( std::size_t value) &&
inline
Parameters
valueOwning/finite Spinner maxFrameBytes setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ maxFrameCells()

template<class T>
Description && portals::ui::Description< T >::maxFrameCells ( std::size_t value) &&
inline
Parameters
valueOwning/finite Spinner maxFrameCells setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ maxFrames()

template<class T>
Description && portals::ui::Description< T >::maxFrames ( std::size_t value) &&
inline
Parameters
valueOwning/finite Spinner maxFrames setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ maxHeight()

template<class T>
Description && portals::ui::Description< T >::maxHeight ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative hard maximum height; does not change the axis mode.
Returns
Consuming recipe; final incompatible bounds fail mount with a typed error.

◆ maximum()

template<class T>
Description && portals::ui::Description< T >::maximum ( double value) &&
inline
Parameters
valueFinite upper bound greater than the effective minimum, with a finite span.
Returns
Consuming native Gauge recipe with a sparse upper-bound override.

◆ maximumPanelSize()

template<class T>
Description && portals::ui::Description< T >::maximumPanelSize ( CellSize caps) &&
inline
Parameters
capsPositive independent width/height caps; never the full-host structural size.
Returns
This consuming exact native Dialog recipe.

◆ maxLayers()

template<class T>
Description && portals::ui::Description< T >::maxLayers ( std::size_t value) &&
inline
Parameters
valuePositive host registration cap, including initially closed layers.
Returns
This consuming exact native OverlayHost recipe.

◆ maxPaintCells()

template<class T>
Description && portals::ui::Description< T >::maxPaintCells ( std::size_t cells) &&
inline
Parameters
cellsPositive allocated paint-work cap, checked before construction.
Returns
Consuming native Border/Gauge/scroll recipe with a sparse final override.

◆ maxPreparedCells()

template<class T>
Description && portals::ui::Description< T >::maxPreparedCells ( std::size_t value) &&
inline
Parameters
valuePositive table visible body-cell cap.
Returns
This consuming exact native data-view recipe.

◆ maxPreparedTextBytes()

template<class T>
Description && portals::ui::Description< T >::maxPreparedTextBytes ( std::size_t value) &&
inline
Parameters
valuePositive table header/body UTF-8 cap.
Returns
This consuming exact native data-view recipe.

◆ maxWidth()

template<class T>
Description && portals::ui::Description< T >::maxWidth ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative hard maximum width; does not change the axis mode.
Returns
Consuming recipe; final incompatible bounds fail mount with a typed error.

◆ messageSettings()

template<class T>
Description && portals::ui::Description< T >::messageSettings ( ControlMessageSettings values) &&
inline
Parameters
valuesOwning sparse native message options.
Returns
This consuming actual MessageBox recipe. An ordinary Dialog is rejected at checked preparation, including an empty explicit group.

◆ minHeight()

template<class T>
Description && portals::ui::Description< T >::minHeight ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative hard minimum height; does not change the axis mode.
Returns
Consuming recipe; final incompatible bounds fail mount with a typed error.

◆ minimum()

template<class T>
Description && portals::ui::Description< T >::minimum ( double value) &&
inline
Parameters
valueFinite inclusive lower bound; validated with the receiving options and value.
Returns
Consuming native Gauge recipe with a sparse lower-bound override.

◆ minimumThumb()

template<class T>
Description && portals::ui::Description< T >::minimumThumb ( std::int32_t cells) &&
inline
Parameters
cellsPositive minimum thumb length, capped by the actual track.
Returns
Consuming native area/bar recipe with a checked cell setting.

◆ minWidth()

template<class T>
Description && portals::ui::Description< T >::minWidth ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative hard minimum width; does not change the axis mode.
Returns
Consuming recipe; final incompatible bounds fail mount with a typed error.

◆ mode() [1/3]

template<class T>
Description && portals::ui::Description< T >::mode ( ChartMode value) &&
inline
Parameters
valueExisting line/candle rendering mode.
Returns
This consuming exact native chart recipe.

◆ mode() [2/3]

template<class T>
Description && portals::ui::Description< T >::mode ( DialogMode value) &&
inline
Parameters
valueNative MODAL/NON_MODAL input policy.
Returns
This consuming exact native Dialog recipe.

◆ mode() [3/3]

template<class T>
Description && portals::ui::Description< T >::mode ( DocumentViewMode value) &&
inline
Parameters
valueProjection of the same byte source.
Returns
Consuming viewer recipe.

◆ noEcho()

template<class T>
Description && portals::ui::Description< T >::noEcho ( bool enabled = true) &&
inline
Parameters
enabledHide all value glyphs and use a fixed-origin caret; false restores the type's normal presentation.
Returns
Consuming editor recipe; ordinary LineEdit storage remains plaintext.

◆ nonModal()

template<class T>
Description && portals::ui::Description< T >::nonModal ( ) &&
inline

Keep the main form available while this dialog is open.

Returns
This consuming exact native Dialog recipe with NON_MODAL input policy.

Equivalent to mode(DialogMode::NON_MODAL); preserves all other settings. Later mode settings override this choice in declaration order.

◆ notificationSettings()

template<class T>
Description && portals::ui::Description< T >::notificationSettings ( ControlNotificationSettings values) &&
inline
Parameters
valuesSparse immutable center options; captured resolver/body remain code-owned.
Returns
This consuming actual native notifications wrapper; ordinary Overlay rejects even an empty group.

◆ observe() [1/2]

template<class T>
template<std::equality_comparable Value, class Callback>
requires std::copy_constructible<Callback> && (std::same_as<std::invoke_result_t<Callback &, const Value &>, void> ||
std::same_as<std::invoke_result_t<Callback &, const Value &>, std::expected<void, TreeError>>)
Description && portals::ui::Description< T >::observe ( ManagedSource< Value > source,
Callback callback ) &&
inline
Template Parameters
ValueOwning derived source value.
CallbackCopyable presentation callback taking const Value& and returning void or expected<void, TreeError>.
Parameters
sourceRead-only source owned by the receiving scene.
callbackOwning action first delivered after complete mount and Ref publication.
Returns
Consuming recipe with the existing scene-owned subscription and checked failures.

◆ observe() [2/2]

template<class T>
template<std::equality_comparable Value, class Callback>
requires std::copy_constructible<Callback> && (std::same_as<std::invoke_result_t<Callback &, const Value &>, void> ||
std::same_as<std::invoke_result_t<Callback &, const Value &>, std::expected<void, TreeError>>)
Description && portals::ui::Description< T >::observe ( ManagedState< Value > model,
Callback callback ) &&
inline
Template Parameters
ValueOwning equality-comparable managed state value.
CallbackCopyable presentation callback taking const Value&, returning void or expected<void, TreeError>.
Parameters
modelState owned by the receiving scene.
callbackOwning action, first delivered after the entire lazy mount and reference publication.
Returns
Consuming recipe; the scene owns the subscription after successful mount.

◆ onClick()

template<class T>
template<class Callback = detail::QuitCommand>
requires (std::same_as<T, Button> && portals::detail::ManagedAction<Callback, ClickEvent>)
Description && portals::ui::Description< T >::onClick ( Callback callback) &&
inline
Template Parameters
CallbackCompact owning click callback, optionally receiving ClickEvent.
Parameters
callbackVoid, expected<Value, TreeError> or EditorCommandResult action; success values are ignored.
Returns
Consuming button recipe using one existing managed binding; duplicates fail at mount.

◆ onDismiss()

template<class T>
template<class Callback>
requires std::same_as<T, Dialog>
Description && portals::ui::Description< T >::onDismiss ( Callback callback) &&
inline
Template Parameters
CallbackCopyable void or expected<void,TreeError> callback taking DialogDismissReason.
Parameters
callbackOwning action admitted once after published dismissal; teardown invokes no action.
Returns
Consuming dialog recipe using the scene-owned callback lifetime.

◆ onEvent()

template<class T>
Description && portals::ui::Description< T >::onEvent ( ManagedEventHandler< T > callback) &&
inline
Parameters
callbackExisting managed custom event adapter; standard bindings reject duplicates.
Returns
This consuming recipe for chaining; the scene owns the callback after mounting.

◆ onPrepare() [1/2]

template<class T>
template<class Callback>
requires std::copy_constructible<Callback> && portals::detail::ManagedTreeResult<std::invoke_result_t<Callback &, T &, Node
<Widget>>> && (!std::same_as<std::invoke_result_t<Callback &, T &, Node<Widget>>, std::expected<void, TreeError>>)
Description && portals::ui::Description< T >::onPrepare ( Callback callback) &&
inline
Template Parameters
CallbackOwning copyable callback returning expected<Value, TreeError> with non-void Value.
Parameters
callbackExisting dirty-frame work; its success value is ignored inside the entered scene scope.
Returns
This consuming recipe; errors are unchanged and no additional invalidation is requested.

◆ onPrepare() [2/2]

template<class T>
Description && portals::ui::Description< T >::onPrepare ( ManagedPrepareHandler< T > callback) &&
inline
Parameters
callbackExisting managed dirty-frame adapter; no new polling or runtime is introduced.
Returns
This consuming recipe for chaining.

◆ operator=()

template<class T>
Description & portals::ui::Description< T >::operator= ( Description< T > && )
defaultnoexcept

Replace this recipe with the unnamed source, which becomes empty.

Returns
This recipe. Destroying a replaced recipe has no mounted UI effect.

◆ overflowMarker()

template<class T>
Description && portals::ui::Description< T >::overflowMarker ( std::string value) &&
inline
Parameters
valueOwning literal UTF-8 presentation text, never resolved as an expression.
Returns
This consuming applicable native help recipe.

◆ overscanRows()

template<class T>
Description && portals::ui::Description< T >::overscanRows ( std::size_t value) &&
inline
Parameters
valueExtra requested rows per side, including explicit zero.
Returns
This consuming exact native data-view recipe.

◆ padding()

template<class T>
Description && portals::ui::Description< T >::padding ( LayoutPadding insets) &&
inline
Parameters
insetsNonnegative ordinary Overlay content insets.
Returns
Consuming exact Overlay recipe staging the shared canonical padding leaves.

◆ pageOverlap()

template<class T>
Description && portals::ui::Description< T >::pageOverlap ( std::uint64_t cells) &&
inline
Parameters
cellsExact 64-bit overlap between pages; zero and values above viewport are supported.
Returns
Consuming area/bar/Viewer recipe with a sparse overlap setting.

◆ pageSteps()

template<class T>
Description && portals::ui::Description< T >::pageSteps ( std::uint64_t count) &&
inline
Parameters
countPositive user increments per PageUp/PageDown action.
Returns
Consuming Slider recipe using the same checked options as resources.

◆ placeholder() [1/2]

template<class T>
Description && portals::ui::Description< T >::placeholder ( std::string_view value) &&
inline
Parameters
valuePublic placeholder bytes copied now.
Returns
Consuming editor recipe.

◆ placeholder() [2/2]

template<class T>
Description && portals::ui::Description< T >::placeholder ( TextValue value) &&
inline
Parameters
valuePublic placeholder expression; never used as protected model data.
Returns
Consuming editor recipe.

◆ placement() [1/2]

template<class T>
Description && portals::ui::Description< T >::placement ( DialogPlacement value) &&
inline
Parameters
valueNative CENTER/BELOW_START/ABOVE_START placement.
Returns
This consuming exact native Dialog recipe.

◆ placement() [2/2]

template<class T>
Description && portals::ui::Description< T >::placement ( ScrollPlacement placement) &&
inline
Parameters
placementExisting gutter/overlay/frame placement; ON_FRAME needs an effective frame.
Returns
Consuming native area recipe validated against actual constructor options.

◆ preferredWidth()

template<class T>
Description && portals::ui::Description< T >::preferredWidth ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative Gauge intrinsic width, independent of fixed width policy.
Returns
Consuming native Gauge recipe with a sparse preferred-width override.

◆ prefix()

template<class T>
Description && portals::ui::Description< T >::prefix ( ) &&
inline
Returns
Consuming choice recipe using exact normalized label/token prefixes and retaining search budgets.

◆ presentation()

template<class T>
Description && portals::ui::Description< T >::presentation ( GridPresentation presentation) &&
inline
Parameters
presentationOwning region/row backgrounds and finite paint budget.
Returns
Consuming standard grid recipe; backgrounds never inherit into child control state styles.

◆ preset() [1/2]

template<class T>
template<typename Name>
requires (std::same_as<T, Spinner> && std::convertible_to<Name, std::string_view>)
Description && portals::ui::Description< T >::preset ( Name && value) &&
inline
Template Parameters
NameString-like preset name.
Parameters
valuePreset name copied into the checked configuration.
Returns
Consuming Spinner recipe.

◆ preset() [2/2]

template<class T>
Description && portals::ui::Description< T >::preset ( SpinnerPreset value) &&
inline
Parameters
valueOwning/finite Spinner preset setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ range()

template<class T>
Description && portals::ui::Description< T >::range ( double minimum,
double maximum ) &&
inline
Parameters
minimumFinite inclusive lower bound.
maximumFinite inclusive upper bound, greater than minimum with a finite span.
Returns
Consuming native Gauge recipe staging both bounds together.

◆ readOnly()

template<class T>
Description && portals::ui::Description< T >::readOnly ( bool value = true) &&
inline
Parameters
valueBlock user mutation while preserving existing programmatic commands.
Returns
Consuming recipe using its native read-only policy.

◆ reducedMotion()

template<class T>
Description && portals::ui::Description< T >::reducedMotion ( bool value) &&
inline
Parameters
valueOwning/finite Spinner reducedMotion setting, checked at preparation.
Returns
Consuming exact Spinner recipe; previous unrelated settings are preserved.

◆ reference()

template<class T>
Description && portals::ui::Description< T >::reference ( NodeRef< T > reference) &&
inline
Parameters
referenceEmpty observing slot; duplicate slots in one mount are rejected.
Returns
This consuming recipe for chaining. The slot remains empty on mount failure.

◆ row()

template<class T>
Description && portals::ui::Description< T >::row ( std::size_t index) &&
inline
Parameters
indexZero-based local row; column must also be explicit.
Returns
Consuming child recipe; a partial coordinate fails before mount effects.

◆ rowGap()

template<class T>
Description && portals::ui::Description< T >::rowGap ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative terminal cells between rows.
Returns
Consuming standard grid recipe, with spanning gaps included inside its cells.

◆ rowHeight()

template<class T>
Description && portals::ui::Description< T >::rowHeight ( std::int32_t value) &&
inline
Parameters
valuePositive cell rows per logical row.
Returns
This consuming exact native data-view recipe.

◆ rows()

template<class T>
Description && portals::ui::Description< T >::rows ( std::size_t count) &&
inline
Parameters
countPositive fixed row count; column-major flow grows columns within the configured budget.
Returns
Consuming standard grid recipe; explicit trailing rows remain present.

◆ rowSizes()

template<class T>
Description && portals::ui::Description< T >::rowSizes ( const std::vector< AxisSize > & policies) &&
inline
Parameters
policiesTrack policies copied now; length must equal the resolved BODY row count.
Returns
Consuming declarative recipe. Header rows keep independent inferred policies. Invalid policies/counts fail before mount effects; this method does not set the row count.

◆ rowSpan()

template<class T>
Description && portals::ui::Description< T >::rowSpan ( std::size_t count) &&
inline
Parameters
countPositive number of occupied rows, including intervening gaps.
Returns
Consuming child recipe; hidden children retain the same structural span.

◆ scroll()

template<class T>
Description && portals::ui::Description< T >::scroll ( std::shared_ptr< ScrollController > controller = {}) &&
inline
Parameters
controllerShared owning values; empty uses an independent default controller.
Returns
Consuming standard grid, enabling one scroll owner before mount without a new Widget or Tab stop.

◆ scrollArrows() [1/2]

template<class T>
Description && portals::ui::Description< T >::scrollArrows ( ScrollbarArrowPattern pattern) &&
inline
Parameters
patternIndependent typed part preset.
Returns
Consumed sparse scroll recipe.

◆ scrollArrows() [2/2]

template<class T>
Description && portals::ui::Description< T >::scrollArrows ( std::string_view pattern) &&
inline
Parameters
patternIndependent part preset; unknown names fail before painting.
Returns
Consumed scroll recipe, preserving other parts and frame/title settings.

◆ scrollbar() [1/3]

template<class T>
Description && portals::ui::Description< T >::scrollbar ( ScrollbarPattern pattern) &&
inline
Parameters
patternTyped preset; omitted skin leaves retain context defaults.
Returns
Consuming scroll recipe; invalid enum values fail before first paint.

◆ scrollbar() [2/3]

template<class T>
Description && portals::ui::Description< T >::scrollbar ( ScrollbarSkin skin) &&
inline
Parameters
skinOwning source copied into sparse configuration; glyphs are validated at mount.
Returns
Consuming scroll recipe. Existing geometry, offsets and input actions are preserved. Construction/capture may throw on allocation, as for other owning recipe settings.

◆ scrollbar() [3/3]

template<class T>
Description && portals::ui::Description< T >::scrollbar ( std::string_view pattern) &&
inline
Parameters
patternCompact legacy/frame/minimal/ascii preset, copied as a typed value.
Returns
Consuming scroll recipe; unknown names fail at mount before first paint.

◆ scrollOnFrame()

template<class T>
Description && portals::ui::Description< T >::scrollOnFrame ( ) &&
inline
Returns
Consuming native area recipe placing scrollbars on its existing frame. An absent effective frame remains a typed mount error, as for placement(ON_FRAME).

◆ scrollOptions()

template<class T>
Description && portals::ui::Description< T >::scrollOptions ( ScrollAreaOptions options) &&
inline
Parameters
optionsComplete existing ScrollArea settings; focusable=true explicitly adds a focus stop.
Returns
Consuming standard grid with scrolling enabled before mount; retains a supplied controller.

◆ scrollStep()

template<class T>
Description && portals::ui::Description< T >::scrollStep ( std::uint64_t rows) &&
inline
Parameters
rowsPositive visual rows per ordinary arrow/wheel unit, at most INT64_MAX.
Returns
Consuming Viewer recipe setting the existing key/wheel properties together.

◆ scrollThumb() [1/2]

template<class T>
Description && portals::ui::Description< T >::scrollThumb ( ScrollbarThumbPattern pattern) &&
inline
Parameters
patternIndependent typed part preset.
Returns
Consumed sparse scroll recipe.

◆ scrollThumb() [2/2]

template<class T>
Description && portals::ui::Description< T >::scrollThumb ( std::string_view pattern) &&
inline
Parameters
patternIndependent part preset; unknown names fail before painting.
Returns
Consumed scroll recipe, preserving other parts and frame/title settings.

◆ scrollTrack() [1/2]

template<class T>
Description && portals::ui::Description< T >::scrollTrack ( ScrollbarPattern pattern) &&
inline
Parameters
patternIndependent typed part preset.
Returns
Consumed sparse scroll recipe.

◆ scrollTrack() [2/2]

template<class T>
Description && portals::ui::Description< T >::scrollTrack ( std::string_view pattern) &&
inline
Parameters
patternIndependent part preset; unknown names fail before painting.
Returns
Consumed scroll recipe, preserving other parts and frame/title settings.

◆ selectionMode()

template<class T>
Description && portals::ui::Description< T >::selectionMode ( RadioSelectionMode value) &&
inline
Parameters
valueKeyboard publication policy.
Returns
Consuming radio recipe.

◆ settings()

template<class T>
Description && portals::ui::Description< T >::settings ( ControlSettings patch) &&
inline
Parameters
patchOwning sparse instance overrides; false, zero and builtin-equal values remain explicit.
Returns
This consuming recipe. A later settings call replaces the previous instance patch. Supported standard factories validate the patch before their constructor or resolver runs.

◆ setup()

template<class T>
Description && portals::ui::Description< T >::setup ( Setup< T > callback) &&
inline
Parameters
callbackOwning customization action, run in modifier order before children. Capture the existing Application explicitly when a low-level tree operation is needed.
Returns
This consuming recipe for chaining. Empty callbacks fail at mount.

◆ showStatus()

template<class T>
Description && portals::ui::Description< T >::showStatus ( bool value = true) &&
inline
Parameters
valueWhether native status labels/subtree/timer are created.
Returns
This consuming exact native DataStateView recipe.

◆ skin() [1/3]

template<class T>
Description && portals::ui::Description< T >::skin ( SliderSkin value) &&
inline
Parameters
valueTyped built-in slider skin.
Returns
Consuming Slider recipe; invalid enum values fail during mount.

◆ skin() [2/3]

template<class T>
Description && portals::ui::Description< T >::skin ( SpinBoxSkin value) &&
inline
Parameters
valueTyped SpinBox presentation.
Returns
Consuming recipe; invalid enum values fail during mount.

◆ skin() [3/3]

template<class T>
Description && portals::ui::Description< T >::skin ( std::string_view name) &&
inline
Parameters
nameNumeric skin: Slider ascii/line/rounded/blocks; SpinBox standard/compact/arrows.
Returns
Consuming numeric recipe; invalid names fail during mount.

◆ spinnerInterval()

template<class T>
Description && portals::ui::Description< T >::spinnerInterval ( SchedulerTime value) &&
inline
Parameters
valuePositive uint64 monotonic milliseconds per spinner step.
Returns
This consuming exact native DataStateView recipe.

◆ statusRows()

template<class T>
Description && portals::ui::Description< T >::statusRows ( std::int32_t value) &&
inline
Parameters
valuePositive fixed status strip height in cell rows.
Returns
This consuming exact native DataStateView recipe.

◆ step()

template<class T>
Description && portals::ui::Description< T >::step ( double amount) &&
inline
Parameters
amountPositive finite user increment; programmatic values are not snapped.
Returns
Consuming unbound Slider recipe with a staged numeric source setting.

◆ style()

template<class T>
Description && portals::ui::Description< T >::style ( StyleTarget target) &&
inline
Parameters
targetOwning style identity, staged through ManagedScene::style.
Returns
This consuming recipe for chaining.

◆ syntax()

template<class T>
Description && portals::ui::Description< T >::syntax ( DocumentSyntaxPolicy value) &&
inline
Parameters
valueSyntax recovery policy; EXACT explicitly permits long prefix reads.
Returns
Consuming viewer recipe; language and byte anchor are preserved.

◆ themeCatalogSettings()

template<class T>
Description && portals::ui::Description< T >::themeCatalogSettings ( ControlThemeCatalogSettings values) &&
inline
Parameters
valuesOwning sparse constructor scalars for an actual default-catalog recipe.
Returns
Consuming recipe; external-model views reject these fields before construction.

◆ themeSelectorSettings()

template<class T>
Description && portals::ui::Description< T >::themeSelectorSettings ( ControlThemeSelectorSettings values) &&
inline
Parameters
valuesSparse owning native selector view settings.
Returns
Same actual selector recipe. Ordinary Dialog and other semantic recipes reject even an explicitly empty selector stage.

◆ threeState()

template<class T>
Description && portals::ui::Description< T >::threeState ( ) &&
inline
Returns
Consuming checkbox recipe selecting THREE_STATE without changing its model type. Explicit bool models reject this setting at mount with INVALID_ARGUMENT.

◆ title() [1/2]

template<class T>
Description && portals::ui::Description< T >::title ( std::string_view value) &&
inline
Parameters
valueLiteral caption bytes, copied into an owning expression.
Returns
This consuming exact native Dialog recipe.

◆ title() [2/2]

template<class T>
Description && portals::ui::Description< T >::title ( TextValue value) &&
inline
Parameters
valueOwning caption expression; resolved by the actual native heading.
Returns
This consuming exact native Dialog recipe.

◆ titleDecoration() [1/3]

template<class T>
Description && portals::ui::Description< T >::titleDecoration ( CustomTitleDecoration decoration) &&
inline
Parameters
decorationOwning prefix/suffix, each at most64 bytes and16 one-cell printable graphemes.
Returns
Consuming recipe; invalid text fails before publication at mount.

◆ titleDecoration() [2/3]

template<class T>
Description && portals::ui::Description< T >::titleDecoration ( std::string_view name) &&
inline
Parameters
namenone/spaced/square/angle/round/profile; unknown values fail with INVALID_ARGUMENT at mount.
Returns
Same consuming recipe as the enum overload.

◆ titleDecoration() [3/3]

template<class T>
Description && portals::ui::Description< T >::titleDecoration ( TitleDecoration decoration) &&
inline
Parameters
decorationOpt-in title ends; validated at mount, with no extra height.
Returns
Consuming recipe retaining source identity and the effective frame.

◆ unavailableText()

template<class T>
Description && portals::ui::Description< T >::unavailableText ( std::string value) &&
inline
Parameters
valueOwning literal UTF-8 presentation text, never resolved as an expression.
Returns
This consuming applicable native help recipe.

◆ value()

template<class T>
Description && portals::ui::Description< T >::value ( double value) &&
inline
Parameters
valueFinite initial value in the effective inclusive Gauge range.
Returns
Consuming native Gauge recipe with a sparse value override.

◆ variant()

template<class T>
Description && portals::ui::Description< T >::variant ( std::string_view type) &&
inline
Parameters
typeOwning name resolved from the explicitly supplied immutable mount context.
Returns
This consuming typed recipe; a different concrete base rejects mount before construction. Runtime names preserve the existing C++ type and do not synthesize a new widget class.

◆ vertical()

template<class T>
Description && portals::ui::Description< T >::vertical ( ScrollBarPolicy policy) &&
inline
Parameters
policyVertical bar presence policy.
Returns
Consuming native area recipe with a sparse vertical policy.

◆ verticalAlign()

template<class T>
Description && portals::ui::Description< T >::verticalAlign ( LayoutAlign align) &&
inline
Parameters
alignChild alignment across ordinary Overlay rows.
Returns
Consuming exact Overlay recipe; OverlayHost policies remain separate.

◆ viewportMargin()

template<class T>
Description && portals::ui::Description< T >::viewportMargin ( std::int32_t value) &&
inline
Parameters
valueNonnegative viewport inset in cells.
Returns
This consuming exact native Dialog recipe.

◆ visible()

template<class T>
Description && portals::ui::Description< T >::visible ( bool value = true) &&
inline
Parameters
valueFinal local visibility; false excludes this subtree from layout, paint and input.
Returns
Consuming recipe; repeated calls replace the previous value before mount.

◆ wheelStep()

template<class T>
Description && portals::ui::Description< T >::wheelStep ( double cells) &&
inline
Parameters
cellsPositive finite logical cells per wheel event.
Returns
Consuming native area/bar recipe with a sparse final input setting.

◆ width()

template<class T>
Description && portals::ui::Description< T >::width ( std::int32_t cells) &&
inline
Parameters
cellsNonnegative fixed width; replaces only the horizontal bounds/mode.
Returns
Consuming recipe; invalid cells fail at mount without publishing refs.

◆ wrap()

template<class T>
Description && portals::ui::Description< T >::wrap ( bool enabled = true) &&
inline
Parameters
enabledWrap complete ordinary graphemes.
Returns
Consuming text viewer recipe.

◆ yRange()

template<class T>
Description && portals::ui::Description< T >::yRange ( std::optional< ChartRange > range) &&
inline
Parameters
rangeFinite increasing or equal explicit endpoints; nullopt restores automatic scale.
Returns
This consuming exact native chart recipe, preserving its model and reference identity.

◆ control

template<class T>
template<class U>
Description< U > control ( std::string_view text,
ControlStyle style,
SizePolicy policy )
friend

Construct a standard text-control recipe with the scene's width policy.

Template Parameters
TLabel, Button or CheckBox-compatible text constructor.
Parameters
textUTF-8 bytes copied now; invalid text returns INVALID_ARGUMENT at mount.
styleOwning manual control appearances.
policyOwning layout constraints.
Returns
Single-use owning recipe; allocation while copying may throw.

◆ custom

template<class T>
template<class U, class... Args>
Description< U > custom ( Args &&... args)
friend

Capture constructor arguments without requiring inheritance from a DSL widget.

Template Parameters
TPublic Widget subtype, including final types, constructible from the owned arguments.
ArgsDecayed owning argument types; string-like inputs are materialized as std::string.
Parameters
argsValues copied/moved now and moved into T at mount. Other pointers/reference_wrapper remain explicit borrows: their referents must outlive the widget. No deep copy is inferred.
Returns
A single-use recipe. T must own any string_view it retains beyond its constructor.

◆ linear

template<class T>
template<class U, detail::DescriptionRange R>
Description< U > linear ( LinearOptions options,
R && children )
friend

Immediately consume a range into the existing linear-layout mount transaction.

Template Parameters
TExisting Row or Column subtype accepting LinearOptions.
RInput range of one Description type; elements must be rvalues, or R an rvalue non-view, non-borrowed container.
Parameters
optionsOwning layout settings, validated by the existing layout engine.
childrenRecipes consumed once, in iteration order, before this function returns.
Returns
Single-use parent owning every recipe; an empty range creates an empty layout. Use views::as_rvalue for explicit transfer from lvalue containers. Borrowed lvalue elements, including those exposed by temporary views, are rejected. No iterator or view is retained. Custom non-view, non-borrowed ranges must own their elements; that ownership cannot be inferred. Construction/iteration may throw; already transferred source elements are not restored. Mount preserves the original child error, subtree rollback and deferred reference publication.

◆ lineEdit

template<class T>
Description< LineEdit > lineEdit ( ManagedState< std::string > model,
LineEditConfig config )
friend
Parameters
modelExplicit scene-owned model.
configFull legacy options, bypassing context defaults.
Returns
Bound editor; an additional settings modifier explicitly overrides those options.

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