5#include <portals/detail/control_context.hpp>
6#include <portals/detail/line_edit_text.hpp>
7#include <portals/detail/move_only_function.hpp>
8#include <portals/detail/recipe_sizing.hpp>
9#include <portals/grid.hpp>
10#include <portals/ui_ref.hpp>
21namespace portals::ui {
61template <
class T>
struct IsChart : std::false_type {};
93 std::constructible_from<std::ranges::range_value_t<R>, std::ranges::range_reference_t<R>>) ||
94 (!std::is_lvalue_reference_v<R> && !std::ranges::view<std::remove_cvref_t<R>> &&
95 !std::ranges::enable_borrowed_range<std::remove_cvref_t<R>> &&
96 std::same_as<std::ranges::range_reference_t<R>, std::ranges::range_value_t<R> &>));
114 std::vector<std::string>
values = std::vector<std::string>(0);
121inline ClassNames splitClasses(std::string_view value) {
123 constexpr std::string_view SEPARATORS =
" \t\r\n\f\v";
124 auto begin = value.find_first_not_of(SEPARATORS);
126 while (begin != std::string_view::npos) {
127 const auto end = value.find_first_of(SEPARATORS, begin);
129 result.
values.emplace_back(value.substr(begin, end == std::string_view::npos ? end : end - begin));
130 begin = end == std::string_view::npos ? end : value.find_first_not_of(SEPARATORS, end);
142 const auto kind = cause.
kind;
147 failure.text = cause;
156inline std::expected<portals::detail::LineEditPlaceholder, ManagedError> lineEditPlaceholder(LineEditOptions &options,
157 Node<Widget> parent) {
158 if (!portals::detail::validLineEditDisplayMode(options.displayMode) ||
159 (options.placeholder && portals::detail::hasLineSeparator(*options.placeholder))) {
162 auto prepared = portals::detail::prepareLineEditPlaceholder(options);
164 return std::unexpected(textError(parent, prepared.error()));
166 return std::move(*prepared);
170#if defined(_MSVC_STL_VERSION) && defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL != 0
171inline constexpr bool CHECKED_STRING_MOVES =
true;
173inline constexpr bool CHECKED_STRING_MOVES =
false;
179inline auto captureText(std::string_view value) {
180 if constexpr (CHECKED_STRING_MOVES) {
181 return std::make_shared<const std::string>(value);
183 return std::string(value);
191template <
class T> std::string_view captionView(
const T &value) {
192 if constexpr (std::same_as<T, std::string>) {
202constexpr std::optional<FramePattern> framePattern(std::string_view name)
noexcept {
203 if (name ==
"single" || name ==
"plain") {
207 if (name ==
"rounded") {
211 if (name ==
"double") {
215 if (name ==
"heavy") {
219 if (name ==
"ascii") {
228 if (name ==
"fractional-block") {
231 if (name ==
"legacy") {
235 if (name ==
"block") {
239 if (name ==
"ascii") {
247 if (name ==
"legacy") {
251 if (name ==
"triangle") {
255 if (name ==
"ascii") {
262constexpr ScrollbarPattern scrollbarPattern(std::string_view name)
noexcept {
263 if (name ==
"fractional-block") {
266 if (name ==
"legacy")
270 if (name ==
"minimal")
279constexpr GlyphProfile glyphProfile(std::string_view name)
noexcept {
280 constexpr std::array<std::string_view, 7> NAMES{
"default",
"unicode",
"ascii",
"nf-rounded",
281 "nf-chevron",
"nf-slash",
"nf-backslash"};
282 const auto found = std::ranges::find(NAMES, name);
288constexpr GlyphFallback glyphFallback(std::string_view name)
noexcept {
295constexpr TitleDecoration titleDecorationPreset(std::string_view name)
noexcept {
298 if (name ==
"spaced")
300 if (name ==
"square")
306 if (name ==
"profile")
315inline bool hasFrameSettings(
const ControlScrollFrameSettings &frame)
noexcept {
316 const auto &sides = frame.sides;
317 const auto &glyphs = frame.customGlyphs;
319 return frame.enabled || frame.glyphs || frame.maxPaintCells || frame.pattern || sides.top || sides.right ||
320 sides.bottom || sides.left || frame.title || frame.titleAlignment || frame.maxTitleBytes || glyphs.enabled ||
321 glyphs.topLeft || glyphs.topRight || glyphs.bottomLeft || glyphs.bottomRight || glyphs.horizontal ||
322 glyphs.vertical || frame.titleDecoration || frame.customTitleDecoration.enabled ||
323 frame.customTitleDecoration.prefix || frame.customTitleDecoration.suffix;
330inline ManagedError frameContextError(ControlContextErrorCode code, std::string_view path, Node<Widget> node = {}) {
332 auto diagnostic = std::make_shared<ControlContextDiagnostic>();
334 diagnostic->path = path;
336 return controlContextError({code, std::move(diagnostic)}, node);
337 }
catch (
const std::bad_alloc &) {
366 std::optional<DeclarativeGridOptions>
grid;
367 std::unique_ptr<GridPlacementPlan>
plan;
368 std::vector<std::shared_ptr<RecipeLayout>>
children =
369 std::vector<std::shared_ptr<RecipeLayout>>(0);
370 std::vector<NodeId>
mounted = std::vector<NodeId>(0);
389inline std::expected<void, TreeError> preflightLayout(
const std::shared_ptr<RecipeLayout> &root) {
390 if (!root || root->validated) {
395 std::shared_ptr<RecipeLayout> layout;
399 std::vector<Visit> pending(0);
400 std::vector<std::shared_ptr<RecipeLayout>> checked(0);
402 pending.push_back({root,
false});
404 while (!pending.empty()) {
405 auto visit = std::move(pending.back());
409 auto &layout = *visit.layout;
411 if (!layout.validRecipe || (layout.itemRequested && !visit.gridChild) || (layout.grid && !layout.gridContainer)) {
415 if (layout.gridContainer && layout.presentation.maxPaintCells == 0) {
419 const bool declarative = layout.gridContainer && layout.grid.has_value();
422 if (!layout.validSections || layout.headerSections > 1 || layout.bodySections > 1 ||
423 ((layout.grid->regions || layout.headerSections || layout.bodySections) && layout.directItems != 0)) {
427 if (layout.headerSections || layout.bodySections) {
428 layout.grid->regions =
true;
429 layout.grid->stickyHeader = layout.stickyHeader;
436 return std::unexpected(valid.error());
440 std::vector<GridItemOptions> items(0);
442 items.reserve(layout.children.size());
444 for (
const auto &child : layout.children) {
445 items.push_back(child->item);
451 return std::unexpected(resolved.error());
454 for (
const auto &[policies, count] :
455 {std::pair{layout.columnSizes.get(), resolved->columns}, std::pair{layout.rowSizes.get(), resolved->rows}}) {
460 if (policies->size() != count) {
464 auto valid = portals::detail::validateGridTrackSizes(*policies);
467 return std::unexpected(valid.error());
471 layout.plan = std::make_unique<GridPlacementPlan>(*resolved);
472 layout.mounted.reserve(items.size());
475 for (
const auto &child : layout.children) {
476 pending.push_back({child, declarative});
479 checked.push_back(std::move(visit.layout));
482 for (
const auto &layout : checked) {
483 layout->validated =
true;
492inline GridOptions resolvedGridOptions(
const RecipeLayout &layout) {
494 const auto &settings = *layout.grid;
495 const auto &plan = *layout.plan;
497 result.columns.resize(plan.columns);
498 result.rows.resize(plan.rows);
499 result.header_rows.resize(plan.headerRows);
501 if (layout.columnSizes) {
502 result.columns = *layout.columnSizes;
505 if (layout.rowSizes) {
506 result.rows = *layout.rowSizes;
508 result.regions = settings.regions;
509 result.sticky_header = settings.stickyHeader;
510 result.presentation = layout.presentation;
512 if (layout.headerStyle) {
513 result.presentation.header = layout.headerStyle;
516 if (layout.bodyStyle) {
517 result.presentation.body = layout.bodyStyle;
520 if (layout.rowStyles) {
521 result.presentation.rows = *layout.rowStyles;
523 result.column_gap = settings.columnGap;
524 result.row_gap = settings.rowGap;
525 result.padding = settings.padding;
526 result.max_tracks_per_axis = settings.maxTracksPerAxis;
527 result.max_placements = settings.maxPlacements;
528 result.cells.reserve(layout.mounted.size());
530 for (std::size_t index = 0; index < layout.mounted.size(); ++index) {
531 const auto &item = layout.children[index]->item;
532 const auto position = plan.positions[index];
534 result.cells.push_back({layout.mounted[index], position.row, position.column, item.rowSpan, item.columnSpan,
535 item.horizontal, item.vertical, item.region});
538 return GridOptions(result);
546 ControlFactoryKind::MESSAGE_BINDING};
550 std::shared_ptr<Description<Widget>>
body;
569 std::vector<Node<Widget>>(0);
570 std::vector<portals::detail::MoveOnlyFunction<void()>>
publish =
571 std::vector<portals::detail::MoveOnlyFunction<void()>>(0);
572 std::vector<portals::detail::MoveOnlyFunction<void()>>
release =
573 std::vector<portals::detail::MoveOnlyFunction<void()>>(0);
581 std::vector<PendingRef>
pending = std::vector<PendingRef>(0);
588 portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>()>
complete;
592 std::vector<CaptionFinalizer>(0);
593 std::vector<portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>()>>
finalize =
594 std::vector<portals::detail::MoveOnlyFunction<std::expected<void, ManagedError>()>>(
596 std::vector<portals::detail::MoveOnlyFunction<void()>>
rollback =
597 std::vector<portals::detail::MoveOnlyFunction<void()>>(
608 for (
auto &reservation :
release) {
618std::expected<void, ManagedError> prepareGridLayouts(
const std::shared_ptr<RecipeLayout> &root, MountContext &context,
UI-owned retained plot of a bounded immutable model range. Accessors run only in prepareChart,...
Definition chart.hpp:117
Copyable typed observer; never owns or exposes an unchecked widget pointer.
Definition widget.hpp:92
One UI-owned view with bounded owning row text and one independent model consumer....
Definition virtual_list.hpp:133
One UI-owned table with bounded owning cell text and one independent model consumer....
Definition virtual_table.hpp:154
Cheap owning immutable snapshot of named definitions and defaults. Const snapshot reads are concurren...
Definition ui_control_context.hpp:632
Single-use owning construction recipe; no mounted widget ownership.
Definition ui_description.hpp:48
Single-use semantic Grid section; owns recipes and never mounts a placeholder Widget.
Definition ui_description.hpp:2889
Admit immediately consumable recipes without draining borrowed lvalue elements.
Definition ui_recipe_context.hpp:90
Admit a declared dialog layer or an erased recipe checked after its existing factory runs.
Definition ui_recipe_context.hpp:82
Public Portals API.
Definition action.hpp:8
@ SINGLE
Single lines and square corners.
Definition frame.hpp:10
@ HEAVY
Heavy lines and square corners.
Definition frame.hpp:14
@ ASCII
Portable plus, minus and vertical-bar glyphs.
Definition frame.hpp:15
@ DOUBLE
Double lines and square corners.
Definition frame.hpp:13
@ ROUNDED
Single lines and rounded corners.
Definition frame.hpp:12
ScrollbarThumbPattern
Independent thumb source; all choices are opt-in.
Definition scrollbar_skin.hpp:24
@ LEGACY
Existing repeated thumb, including ASCII fallback.
Definition scrollbar_skin.hpp:25
@ BLOCK
Explicit block with the control width/glyph fallback.
Definition scrollbar_skin.hpp:26
@ FRACTIONAL_BLOCK
Eighth-cell block placement; requires a blank track and no custom thumb shapes.
Definition scrollbar_skin.hpp:28
@ ASCII
Hash thumb.
Definition scrollbar_skin.hpp:27
TitleDecoration
Optional top-title break decoration; NONE preserves literal legacy titles.
Definition frame.hpp:39
@ SQUARE
Square brackets and inner spaces.
Definition frame.hpp:42
@ ROUND
Parentheses and inner spaces.
Definition frame.hpp:44
@ PROFILE
Explicit selected profile caps; customTitleDecoration still wins.
Definition frame.hpp:45
@ NONE
No additional title cells.
Definition frame.hpp:40
@ SPACED
One space on either side.
Definition frame.hpp:41
@ ANGLE
Angle brackets and inner spaces.
Definition frame.hpp:43
ScrollbarPattern
Opt-in scrollbar glyph presets; legacy calls retain their original appearance.
Definition scrollbar_skin.hpp:15
@ MINIMAL
Blank track and block thumb.
Definition scrollbar_skin.hpp:18
@ LEGACY
Existing shaded track and block thumb.
Definition scrollbar_skin.hpp:16
@ FRAME
Actual frame lines, or single lines on an unframed control.
Definition scrollbar_skin.hpp:17
@ FRACTIONAL_BLOCK
Blank track and eighth-cell block placement; explicit leaves keep priority.
Definition scrollbar_skin.hpp:20
@ ASCII
Dot track and hash thumb.
Definition scrollbar_skin.hpp:19
std::expected< void, TreeError > validateScrollOptions(const ScrollBarOptions &options) noexcept
Validate standalone bar settings without mutation, allocation or callbacks.
@ MOUNT
Create the scene root or attach and register a managed widget.
Definition managed_diagnostics.hpp:49
GlyphProfile
Explicit glyph map, independent of colors and geometry. NF maps use Nerd Fonts 3 Powerline codepoints...
Definition glyph_profile.hpp:12
GlyphFallback
Portable replacement when the selected map fails one-cell admission.
Definition glyph_profile.hpp:23
@ UNICODE_GLYPHS
Unicode replacement, with ASCII when Unicode is not one cell.
Definition glyph_profile.hpp:24
@ ASCII
ASCII replacement; also selects ASCII vertical caps for NF maps.
Definition glyph_profile.hpp:25
std::expected< GridPlacementPlan, TreeError > resolveGridPlacements(const DeclarativeGridOptions &options, std::span< const GridItemOptions > items)
Resolve sparse placement without factories, tree access or retained input views.
ScrollbarArrowPattern
Independent functional-arrow source; selecting it never enables buttons.
Definition scrollbar_skin.hpp:32
@ LEGACY
Existing functional arrow source.
Definition scrollbar_skin.hpp:33
@ TRIANGLE
Triangle glyphs with the control width/glyph fallback.
Definition scrollbar_skin.hpp:34
@ ASCII
Less-than, greater-than, caret and lowercase v.
Definition scrollbar_skin.hpp:35
@ INPUT_LIMIT
Input length exceeds its configured/representation limit.
Definition text.hpp:73
@ CLUSTER_LIMIT
One whole cluster exceeds its byte limit.
Definition text.hpp:75
@ GRAPHEME_LIMIT
The number of clusters exceeds its limit.
Definition text.hpp:77
@ CELL_LIMIT
Cell accumulation exceeds its configured/int32_t limit.
Definition text.hpp:79
TreeError
Checked tree failures; rejected operations never start the requested callback.
Definition widget_types.hpp:26
@ NODE_LIMIT
The configured live node, observer or consumer limit was reached.
Definition widget_types.hpp:35
@ INVALID_ARGUMENT
An option, enum value or operation argument is invalid.
Definition widget_types.hpp:27
@ NO_MEMORY
Allocation failed inside the operation boundary.
Definition widget_types.hpp:33
Owning advanced frame settings; legacy BorderOptions remains a literal value type.
Definition primitives.hpp:62
Owning parent-child relationship; omitted coordinates request automatic placement.
Definition grid.hpp:65
Backgrounds only; these values never inherit into child control state styles.
Definition grid.hpp:35
Original error plus independent runner/restoration and cleanup failures.
Definition managed_diagnostics.hpp:62
Owning error value, independent of the failed input's lifetime.
Definition text.hpp:87
TextErrorKind kind
Failure category.
Definition text.hpp:89
Owning sparse literals only; never contains IDs, models, handlers or live history.
Definition ui_control_context.hpp:391
Owning class names with fallible copies instead of checked-STL container moves.
Definition ui_recipe_context.hpp:110
~ClassNames()=default
Suppress implicit noexcept moves of checked containers.
std::vector< std::string > values
Ordered owning names, including duplicates.
Definition ui_recipe_context.hpp:114
Grid-only sparse configuration, released with its construction transaction.
Definition ui_recipe_context.hpp:343
ControlPropertyPresence materializedSettings
Resource fields already counted against the mount budget.
Definition ui_recipe_context.hpp:351
std::unique_ptr< ResolvedControl > resolved
Owning settings resolved before control construction.
Definition ui_recipe_context.hpp:347
std::optional< std::string > variant
Optional named fallback type checked during preflight.
Definition ui_recipe_context.hpp:346
bool materialized
Resource properties already supplied materialized grid settings.
Definition ui_recipe_context.hpp:349
ControlSettings patch
Sparse instance overrides applied after positional literals.
Definition ui_recipe_context.hpp:345
ControlSettings arguments
Positional grid literals retained for fallback-schema resolution.
Definition ui_recipe_context.hpp:344
bool settingsRequested
Explicit settings or variant modifiers were requested.
Definition ui_recipe_context.hpp:350
bool prepared
Settings were already resolved and validated.
Definition ui_recipe_context.hpp:348
Recognize exact native chart recipes without admitting arbitrary subclasses.
Definition ui_recipe_context.hpp:61
Recognize an owning recipe after cv/ref normalization.
Definition ui_recipe_context.hpp:35
Recognize exact provider-bound list recipes, excluding arbitrary derived controls.
Definition ui_recipe_context.hpp:45
Recognize exact provider-bound table recipes, excluding arbitrary derived controls.
Definition ui_recipe_context.hpp:53
Transaction-local dependency; it never survives mount or schedules runtime work.
Definition ui_recipe_context.hpp:584
std::shared_ptr< RefTarget > source
Original weak observation, resolved after every sibling has mounted.
Definition ui_recipe_context.hpp:586
Node< Control > receiver
Newly created caption receiving this transaction's initial value.
Definition ui_recipe_context.hpp:585
portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >()> complete
Owning mount-only action.
Definition ui_recipe_context.hpp:588
bool completed
True after source-first initial synchronization and observation registration succeed.
Definition ui_recipe_context.hpp:587
Same-attempt Ref reservation used by cold graph finalization before publication.
Definition ui_recipe_context.hpp:576
RefTarget target
Checked private identity used only by cold finalization.
Definition ui_recipe_context.hpp:578
const RefTarget * identity
Original unpublished slot identity; never dereferenced from another thread.
Definition ui_recipe_context.hpp:577
Stack-owned transaction bookkeeping, discarded after one description mount.
Definition ui_recipe_context.hpp:554
std::vector< portals::detail::MoveOnlyFunction< void()> > publish
Nonthrowing assignments publishing reserved refs.
Definition ui_recipe_context.hpp:570
const ControlSettings * frameSettings
Current source frame patch only; never inherited by children.
Definition ui_recipe_context.hpp:564
std::vector< portals::detail::MoveOnlyFunction< void()> > release
Nonthrowing releases of temporary ref reservations.
Definition ui_recipe_context.hpp:572
const TextResolver * messageResolver
Opted-in MessageBox constructor-only fallback; cleared before children.
Definition ui_recipe_context.hpp:560
std::vector< PendingRef > pending
Private same-attempt reservations.
Definition ui_recipe_context.hpp:581
Node< Widget > root
First created node; identifies the subtree to retire on failure.
Definition ui_recipe_context.hpp:567
std::vector< portals::detail::MoveOnlyFunction< void()> > rollback
Explicit attempt-owned resources, never numeric checkpoints.
Definition ui_recipe_context.hpp:596
ControlContext controls
Immutable owning defaults for this mount transaction.
Definition ui_recipe_context.hpp:555
std::vector< Node< Widget > > nodes
Created observers checked for liveness before publication.
Definition ui_recipe_context.hpp:568
~MountContext()
Release attempt-owned resources and ref reservations after publication or rollback.
Definition ui_recipe_context.hpp:602
bool controlPrepared
Only the current constructor received already resolved resource settings.
Definition ui_recipe_context.hpp:557
const TextResolver * themeSelectorResolver
Constructor-only selector fallback, cleared before internal children.
Definition ui_recipe_context.hpp:559
std::size_t controlLeaves
Effective settings counted across the complete transaction.
Definition ui_recipe_context.hpp:556
Description< Widget > * messageBody
Constructor-scoped owning cold source, never retained after mount.
Definition ui_recipe_context.hpp:563
Node< Widget > mountedOuter
Last synchronous mount's actual layout root, including through type erasure.
Definition ui_recipe_context.hpp:566
bool committed
True only after every finalizer and node check succeeds.
Definition ui_recipe_context.hpp:599
const TextResolver * dataStateResolver
Native fallback constructor-only borrow; never ambient to body/setup.
Definition ui_recipe_context.hpp:561
std::vector< CaptionFinalizer > captions
Fallible checked-STL construction stays inside mount's error boundary.
Definition ui_recipe_context.hpp:591
const FrameOptions * frameOptions
Current native ScrollArea constructor only; never inherited by children.
Definition ui_recipe_context.hpp:565
std::vector< portals::detail::MoveOnlyFunction< std::expected< void, ManagedError >()> > finalize
Pure cold graph completion.
Definition ui_recipe_context.hpp:593
const ControlSettings * controlSettings
Constructor-only borrowed settings; restored before setup/children.
Definition ui_recipe_context.hpp:562
Cold layout values only; released with the single-use construction transaction.
Definition ui_recipe_context.hpp:355
bool stickyHeader
Header sticky setting copied from its section.
Definition ui_recipe_context.hpp:374
bool needsChoiceHost
A choice popup needs the existing scene-level overlay owner.
Definition ui_recipe_context.hpp:362
std::size_t bodySections
Number of structural body sections.
Definition ui_recipe_context.hpp:372
GridItemOptions item
Parent-child placement, never inherited from control defaults.
Definition ui_recipe_context.hpp:356
std::optional< DeclarativeGridOptions > grid
Present only after declarative opt-in.
Definition ui_recipe_context.hpp:366
bool validRecipe
An empty consuming child fails before any mount effects.
Definition ui_recipe_context.hpp:360
std::unique_ptr< GridPlacementPlan > plan
Origins established before any constructor or setup.
Definition ui_recipe_context.hpp:367
bool itemRequested
Distinguish ordinary defaults from an explicitly requested relationship.
Definition ui_recipe_context.hpp:357
std::unique_ptr< std::vector< AxisSize > > rowSizes
Cold owning body-row policies; header stays independent.
Definition ui_recipe_context.hpp:383
GridPresentation presentation
Owning grid background and paint-budget settings.
Definition ui_recipe_context.hpp:376
std::size_t headerSections
Number of structural header sections.
Definition ui_recipe_context.hpp:371
std::size_t directItems
Number of children outside structural sections.
Definition ui_recipe_context.hpp:373
std::optional< CellStyle > headerStyle
Optional header-section background.
Definition ui_recipe_context.hpp:377
bool validSections
Whether section placement modifiers are valid.
Definition ui_recipe_context.hpp:375
bool gridContainer
True only for the standard grid recipe.
Definition ui_recipe_context.hpp:358
std::vector< NodeId > mounted
Full identities collected during child mount.
Definition ui_recipe_context.hpp:370
bool validated
This cold graph has completed its parent-aware preflight.
Definition ui_recipe_context.hpp:359
bool hasDeclaredGrid
Cold composition contains an explicitly configured standard Grid.
Definition ui_recipe_context.hpp:361
std::optional< CellStyle > bodyStyle
Optional body-section background.
Definition ui_recipe_context.hpp:378
std::optional< GridRowStyles > rowStyles
Optional alternating body-row backgrounds.
Definition ui_recipe_context.hpp:379
std::unique_ptr< GridRecipeControl > control
Deferred grid control settings.
Definition ui_recipe_context.hpp:381
std::function< std::expected< std::pair< bool, bool >, ManagedError >(ControlContext)> choiceProbe
Owning cold metadata probe; never mounts nodes or invokes application factories.
Definition ui_recipe_context.hpp:365
std::unique_ptr< std::vector< AxisSize > > columnSizes
Cold owning shared-column policies, absent by default.
Definition ui_recipe_context.hpp:382
std::optional< GridScrollOptions > scroll
Optional owning scroll settings.
Definition ui_recipe_context.hpp:380
std::vector< std::shared_ptr< RecipeLayout > > children
Cold child metadata in insertion order.
Definition ui_recipe_context.hpp:368
bool hasOverlayHost
A declared overlay owner already exists in this cold graph.
Definition ui_recipe_context.hpp:363
Shared observation; publication and all mutable fields belong to the constructing UI thread.
Definition ui_ref.hpp:71
Finite native composite capability shared only across cold recipe erasure, never mounted records.
Definition ui_recipe_context.hpp:542
std::shared_ptr< Description< Widget > > body
Optional owning resource body, consumed once by native construction.
Definition ui_recipe_context.hpp:550
bool prepared
Whether the source packet has been installed before construction.
Definition ui_recipe_context.hpp:549
ControlFactoryKind kind
Actual native producer, independent of C++ widget type.
Definition ui_recipe_context.hpp:545
ControlPropertyPresence materialized
Leaves already reserved by resource preparation.
Definition ui_recipe_context.hpp:548
ControlSettings source
Owning effective resource inputs for the actual native producer.
Definition ui_recipe_context.hpp:547