5#include <portals/ui_construction.hpp>
14 return custom<Spacer>(weight);
22 return custom<Spacing>(cells);
29 auto effective = controlOverlayOptions(*context.
controlSettings, options);
31 return std::unexpected(error(parent, effective.error()));
33 return scene.emplace<
Overlay>(parent, *effective, policy);
48 (description.state_->children.push_back(
53 return mounted ? std::expected<void, ManagedError>{} : std::unexpected(mounted.error());
64template <detail::DescriptionInput... Children>
65Description<Overlay> overlay(OverlayOptions options, Children &&...children) {
66 return overlay(options, SizePolicy{}, std::forward<Children>(children)...);
73template <detail::DescriptionInput... Children> Description<Overlay> overlay(Children &&...children) {
74 return overlay(OverlayOptions{}, SizePolicy{}, std::forward<Children>(children)...);
84template <detail::DescriptionInput... Children>
85Description<Overlay> overlay(Ref<Overlay> reference, OverlayOptions options, SizePolicy policy,
86 Children &&...children) {
87 return overlay(options, policy, std::forward<Children>(children)...).reference(std::move(reference));
96template <detail::DescriptionInput... Children>
97Description<Overlay> overlay(Ref<Overlay> reference, OverlayOptions options, Children &&...children) {
98 return overlay(options, std::forward<Children>(children)...).reference(std::move(reference));
106template <detail::DescriptionInput... Children>
107Description<Overlay> overlay(Ref<Overlay> reference, Children &&...children) {
108 return overlay(std::forward<Children>(children)...).reference(std::move(reference));
118template <
class T, detail::DescriptionInput... Children>
119Description<T> linear(LinearOptions options, Children &&...children) {
121 detail::Access::cold<T>([options](ManagedScene &scene, Node<Widget> parent, detail::MountContext &context)
mutable {
122 if (context.controlSettings) {
123 options = detail::controlLinearOptions(*context.controlSettings, options);
125 return scene.emplace<T>(parent, options);
131 (description.state_->children.push_back(
133 std::forward<Children>(children)](ManagedScene &scene, Node<Widget> parent,
134 detail::MountContext &context)
mutable -> std::expected<void, ManagedError> {
137 return mounted ? std::expected<void, ManagedError>{} : std::unexpected(mounted.error());
161 options = detail::controlLinearOptions(*context.
controlSettings, options);
163 return scene.emplace<T>(parent, options);
167 for (
auto &&child : children) {
169 description.state_->children.push_back(
174 return mounted ? std::expected<void, ManagedError>{} : std::unexpected(mounted.error());
187 return linear<Row>(options, std::forward<R>(children));
194template <detail::DescriptionRange R> Description<Row> row(R &&children) {
204template <detail::DescriptionInput... Children>
205Description<StatusBar> statusBar(LinearOptions options, Children &&...children) {
206 return linear<StatusBar>(options, std::forward<Children>(children)...);
213template <detail::DescriptionInput... Children> Description<StatusBar> statusBar(Children &&...children) {
222template <detail::DescriptionRange R> Description<StatusBar> statusBar(LinearOptions options, R &&children) {
223 return linear<StatusBar>(options, std::forward<R>(children));
230template <detail::DescriptionRange R> Description<StatusBar> statusBar(R &&children) {
239template <detail::DescriptionInput... Children>
240Description<StatusBar> statusBar(Ref<StatusBar> reference, Children &&...children) {
241 return statusBar(std::forward<Children>(children)...).reference(std::move(reference));
250template <detail::DescriptionInput... Children>
251Description<StatusBar> statusBar(Ref<StatusBar> reference, LinearOptions options, Children &&...children) {
252 return statusBar(options, std::forward<Children>(children)...).reference(std::move(reference));
260template <detail::DescriptionRange R> Description<Column> column(LinearOptions options, R &&children) {
261 return linear<Column>(options, std::forward<R>(children));
268template <detail::DescriptionRange R> Description<Column> column(R &&children) {
277template <detail::DescriptionInput... Children> Description<Row> row(LinearOptions options, Children &&...children) {
278 return linear<Row>(options, std::forward<Children>(children)...);
285template <detail::DescriptionInput... Children> GridSection header(Children &&...children) {
297template <detail::DescriptionInput... Children> GridSection body(Children &&...children) {
313template <detail::GridInput... Children> Description<Grid> grid(Children &&...children) {
314 auto layout = std::make_shared<detail::RecipeLayout>();
316 layout->gridContainer =
true;
319 detail::Access::cold<Grid>([layout](ManagedScene &scene, Node<Widget> parent, detail::MountContext &) {
322 SizePolicy{}, layout->scroll, scene.widthPolicy());
327 options.presentation = layout->presentation;
329 return scene.emplace<Grid>(parent, options);
332 description.state_->layout = layout;
333 [[maybe_unused]]
const auto append = [&](
auto &&child) {
334 if constexpr (std::same_as<std::remove_cvref_t<
decltype(child)>, GridSection>) {
337 ++layout->directItems;
342 (append(std::forward<Children>(children)), ...);
351template <detail::DescriptionInput... Children> Description<Row> row(Children &&...children) {
360template <detail::DescriptionInput... Children>
361Description<Column> column(LinearOptions options, Children &&...children) {
362 return linear<Column>(options, std::forward<Children>(children)...);
369template <detail::DescriptionInput... Children> Description<Column> column(Children &&...children) {
378template <detail::DescriptionInput... Children>
379Description<Column> column(Ref<Column> reference, Children &&...children) {
380 return column(std::forward<Children>(children)...).reference(std::move(reference));
388template <detail::DescriptionInput... Children> Description<Row> row(Ref<Row> reference, Children &&...children) {
389 return row(std::forward<Children>(children)...).reference(std::move(reference));
397template <detail::GridInput... Children> Description<Grid> grid(Ref<Grid> reference, Children &&...children) {
398 return grid(std::forward<Children>(children)...).reference(std::move(reference));
407template <detail::DescriptionInput... Children>
408Description<Row> row(Ref<Row> reference, LinearOptions options, Children &&...children) {
409 return row(options, std::forward<Children>(children)...).reference(std::move(reference));
418template <detail::DescriptionInput... Children>
419Description<Column> column(Ref<Column> reference, LinearOptions options, Children &&...children) {
420 return column(options, std::forward<Children>(children)...).reference(std::move(reference));
427template <
class... Args>
428 requires requires(Args &&...args) { row(std::forward<Args>(args)...); }
429auto hbox(Args &&...args) {
430 return row(std::forward<Args>(args)...);
437template <
class... Args>
438 requires requires(Args &&...args) { column(std::forward<Args>(args)...); }
439auto vbox(Args &&...args) {
440 return column(std::forward<Args>(args)...);
455 (void)std::move(description).padding(*modifier.
padding);
458 (void)std::move(description).horizontalAlign(*modifier.
horizontal);
461 (void)std::move(description).verticalAlign(*modifier.
vertical);
463 return std::move(description);
471 return {insets, {}, {}};
477inline OverlayLayoutModifier horizontalAlign(
LayoutAlign align) {
478 return {{}, align, {}};
484inline OverlayLayoutModifier verticalAlign(
LayoutAlign align) {
485 return {{}, {}, align};
498 requires(std::same_as<T, ScrollArea> || std::same_as<T, ScrollBar>)
519 return std::move(description);
526inline ScrollInputModifier wheelStep(
double cells) {
527 return {{.wheelStep = cells}};
533inline ScrollInputModifier keyStep(std::uint64_t cells) {
534 return {{.keyStep = cells}};
540inline ScrollInputModifier pageOverlap(std::uint64_t cells) {
541 return {{.pageOverlap = cells}};
547inline ScrollInputModifier arrows(
bool enabled =
true) {
548 return {{.arrows = enabled}};
554inline ScrollInputModifier minimumThumb(std::int32_t cells) {
555 return {{.minimumThumb = cells}};
561inline ScrollInputModifier focusable(
bool enabled =
true) {
562 return {{.focusable = enabled}};
568 std::optional<ScrollbarPattern>
preset{};
574 requires(std::same_as<T, ScrollArea> || std::same_as<T, ScrollBar>)
577 return std::move(description).scrollbar(*modifier.
preset);
580 return std::move(description).scrollbar(std::move(modifier.
skin));
585inline ScrollbarModifier scrollbar(std::string_view pattern) {
586 return {{}, detail::scrollbarPattern(pattern)};
590inline ScrollbarModifier scrollbar(ScrollbarSkin skin) {
591 return {std::move(skin)};
605 requires std::derived_from<T, SizedWidget>
608 (void)std::move(description).glyphProfile(*modifier.
profile);
612 (void)std::move(description).glyphFallback(*modifier.
fallback);
615 return std::move(description);
620inline GlyphProfileModifier glyphProfile(
GlyphProfile profile) {
621 return {profile, {}};
625inline GlyphProfileModifier glyphProfile(std::string_view profile) {
626 return glyphProfile(detail::glyphProfile(profile));
630inline GlyphProfileModifier glyphFallback(
GlyphFallback fallback) {
631 return {{}, fallback};
635inline GlyphProfileModifier glyphFallback(std::string_view fallback) {
636 return glyphFallback(detail::glyphFallback(fallback));
651 requires(std::same_as<T, ScrollArea> || std::same_as<T, ScrollBar>)
654 (void)std::move(description).scrollTrack(*modifier.
trackPattern);
658 (void)std::move(description).scrollThumb(*modifier.
thumbPattern);
662 (void)std::move(description).scrollArrows(*modifier.
arrowPattern);
665 return std::move(description);
670inline ScrollbarPartModifier scrollTrack(std::string_view pattern) {
671 return {.trackPattern = detail::scrollbarPattern(pattern)};
676 return {.trackPattern = pattern};
680inline ScrollbarPartModifier
scrollThumb(std::string_view pattern) {
681 return {.thumbPattern = detail::scrollbarThumbPattern(pattern)};
686 return {.thumbPattern = pattern};
690inline ScrollbarPartModifier scrollArrows(std::string_view pattern) {
691 return {.arrowPattern = detail::scrollbarArrowPattern(pattern)};
696 return {.arrowPattern = pattern};
727 return std::move(description);
735 return {{.horizontal = policy}};
742 return {{.vertical = policy}};
749 return {{.placement = placement}};
753inline ScrollAreaModifier scrollOnFrame() {
760inline ScrollAreaModifier frameEnabled(
bool enabled =
true) {
761 return {{.frame = {.enabled = enabled}}};
768 return {{.frame = {.glyphs = glyphs}}};
774inline ScrollAreaModifier frameMaxPaintCells(std::size_t cells) {
775 return {{.frame = {.maxPaintCells = cells}}};
787 return std::move(description).axis(modifier.
value);
794inline ScrollAxisModifier axis(
ScrollAxis axis) {
807 .ends = source.ends.value_or(
false),
809 .horizontal = source.horizontal,
810 .vertical = source.vertical,
811 .corner = source.corner,
812 .trackPattern = source.trackPattern,
813 .thumbPattern = source.thumbPattern,
814 .arrowPattern = source.arrowPattern,
819 return applied ? std::expected<void, ManagedError>{} : std::unexpected(error(node, applied.error()));
820 }
catch (
const std::bad_alloc &) {
826 std::shared_ptr<ScrollController> controller,
828 auto description = cold<ScrollArea>([options, controller = std::move(controller),
830 const auto finish = [&](std::expected<Node<ScrollArea>,
ManagedError> node) {
834 return applied ? node : std::expected<Node<ScrollArea>,
ManagedError>(std::unexpected(applied.error()));
836 auto baseOptions = options;
842 auto effective = controlScrollAreaOptions(*context.
controlSettings, baseOptions);
845 return std::expected<Node<ScrollArea>,
ManagedError>(std::unexpected(error(parent, effective.error())));
848 const bool advanced =
852 std::optional<FrameOptions> base;
856 }
else if (effective->frame) {
858 base->border = *effective->frame;
861 auto framed = controlFrameOptions(*context.
controlSettings, std::move(base), scene.widthPolicy());
864 return std::expected<Node<ScrollArea>,
ManagedError>(std::unexpected(framed.error()));
868 framed = controlFrameOptions(*context.
frameSettings, std::move(*framed), scene.widthPolicy());
871 return std::expected<Node<ScrollArea>,
ManagedError>(std::unexpected(framed.error()));
876 return finish(scene.emplace<
ScrollArea>(parent, controller, scene.widthPolicy(), *effective, style,
880 effective->frame.reset();
883 return finish(scene.emplace<
ScrollArea>(parent, controller, scene.widthPolicy(), *effective, style));
892 auto description = cold<ScrollBar>([controller = std::move(controller), axis, options, style,
895 if (!writer && !controller) {
899 auto effective = controlScrollBarOptions(*context.
controlSettings, options);
903 return std::unexpected(error(parent, effective.error()));
910 auto node = scene.scrollBar(parent, controller, effectiveAxis, *effective, style, writer);
917 return applied ? node : std::expected<Node<ScrollBar>,
ManagedError>(std::unexpected(applied.error()));
923template <detail::DescriptionInput Child>
925 std::shared_ptr<ScrollController> controller,
ControlStyle style) {
928 description.state_->children.push_back(
932 return mounted ? std::expected<void, ManagedError>{} : std::unexpected(mounted.error());
945template <detail::DescriptionInput Child>
946Description<ScrollArea> scrollArea(Ref<ScrollArea> reference, Child &&child, ScrollAreaOptions options = {},
947 std::shared_ptr<ScrollController> controller = {}, ControlStyle style = {}) {
948 return scrollArea(std::forward<Child>(child), options, std::move(controller), style).reference(std::move(reference));
957 ControlStyle style = {}) {
967inline Description<ScrollBar> scrollBar(std::shared_ptr<ScrollController> controller,
969 ControlStyle style = {}) {
980 ScrollBarOptions options = {}, ControlStyle style = {}) {
981 return scrollBar(axis, options, style).reference(std::move(reference));
991inline Description<ScrollBar> scrollBar(Ref<ScrollBar> reference, std::shared_ptr<ScrollController> controller,
993 ControlStyle style = {}) {
994 return scrollBar(std::move(controller), axis, options, style).reference(std::move(reference));
998 if (!description.state_ || !hasFrameSettings(settings.
frame)) {
1002 auto &frame = description.frameRecipe();
1004 frame.source = std::make_unique<ControlSettings>();
1005 frame.source->frame = settings.
frame;
1006 frame.source->origin = settings.
origin;
1008 for (
const auto &origin : settings.
origins) {
1009 if (origin.path.starts_with(
"frame.")) {
1010 frame.source->origins.push_back(origin);
1020 return std::expected<Node<Border>,
ManagedError>(std::unexpected(detail::error(parent, valid.error())));
1023 auto node = scene.emplace<
Border>(parent, scene.widthPolicy(), options, style,
SizePolicy{}, std::in_place);
1029 std::expected<void, TreeError> prepared;
1030 const auto inspected = scene.app_.tree().read(*node, [&](
const Border &frame) {
1031 prepared = frame.preparation();
1034 if (!inspected || !prepared) {
1036 scene.rollback(*node, inspected ? prepared.error() : inspected.error()));
1045 const auto effective = controlBorderOptions(*context.
controlSettings, options);
1049 return std::expected<Node<Border>,
ManagedError>(std::unexpected(detail::error(parent, valid.error())));
1052 return scene.emplace<
Border>(parent, scene.widthPolicy(), effective, style);
1058template <detail::DescriptionInput Child>
1063 description.state_->children.push_back(
1068 return mounted ? std::expected<void, ManagedError>{} : std::unexpected(mounted.error());
1080template <detail::DescriptionInput Child>
1081Description<Border> frame(Child &&child, BorderOptions options = {}, ControlStyle style = {}) {
1082 return border(std::forward<Child>(child), options, style);
1096 return border(std::move(description), modifier.
options, modifier.
style);
1104inline BorderModifier border(
BorderOptions options = {}, ControlStyle style = {}) {
1105 return {options, style};
1112inline BorderModifier frame(BorderOptions options = {}, ControlStyle style = {}) {
1113 return {options, style};
1119 std::optional<CustomTitleDecoration>
custom{};
1128 return std::move(description).titleDecoration(*modifier.
custom);
1131 return std::move(description).titleDecoration(modifier.
preset);
1136inline TitleDecorationModifier titleDecoration(
TitleDecoration preset) {
1137 return {preset, {}};
1141inline TitleDecorationModifier titleDecoration(std::string_view name) {
1142 return {detail::titleDecorationPreset(name), {}};
1146inline TitleDecorationModifier titleDecoration(CustomTitleDecoration custom) {
1164 requires std::derived_from<T, SizedWidget>
1170 return std::move(description).framed(std::move(modifier.
options));
1188 requires(std::derived_from<T, SizedWidget> && !std::same_as<T, ScrollArea>)
1191 return std::move(description)
1195 return std::move(description).framed(std::move(modifier.
reference), std::move(modifier.
frame.
options));
1202inline FramedModifier framed(
FrameOptions options = {}) {
1203 return {std::move(options), {}};
1209inline FramedModifier framed(std::string_view pattern) {
1210 return {{}, std::optional<std::string>(std::in_place, pattern)};
1217inline FramedModifier framed(std::string_view pattern, std::string_view title) {
1218 auto modifier = framed(pattern);
1220 modifier.options.title = title;
1229inline ObservedFramedModifier framed(Ref<Border> reference, FrameOptions options = {}) {
1230 return {std::move(reference), framed(std::move(options))};
1237inline ObservedFramedModifier framed(Ref<Border> reference, std::string_view pattern) {
1238 return {std::move(reference), framed(pattern)};
1246inline ObservedFramedModifier framed(Ref<Border> reference, std::string_view pattern, std::string_view title) {
1247 return {std::move(reference), framed(pattern, title)};
Frame using the existing vertical LinearLayout with one-cell insets for each present side....
Definition primitives.hpp:105
static std::expected< void, TreeError > validate(BorderOptions options)
static std::expected< void, TreeError > validateFrame(const FrameOptions &options) noexcept
Additive lifecycle owner over one existing Application subtree. UI affine and nonmovable....
Definition managed.hpp:530
Copyable typed observer; never owns or exposes an unchecked widget pointer.
Definition widget.hpp:92
UI-owned overlay using the existing traversal, geometry and sibling stacking. Later siblings are abov...
Definition grid.hpp:238
Single-use owning construction recipe; no mounted widget ownership.
Definition ui_description.hpp:48
Description()=default
Construct an empty recipe; mounting it returns INVALID_ARGUMENT.
Typed Widget observation; explicit composite specializations reuse their existing weak facades.
Definition ui_ref.hpp:761
ScrollBarPolicy
Presence policy, independent of whether the content can scroll.
Definition scroll_geometry.hpp:21
PrimitiveGlyphs
One-cell decoration selection under the complete receiving WidthPolicy.
Definition primitives.hpp:20
ScrollbarThumbPattern
Independent thumb source; all choices are opt-in.
Definition scrollbar_skin.hpp:24
@ DECLARATIVE
Reject overlapping cells within each independent region.
Definition grid.hpp:61
ScrollPlacement
Explicit relationship between bars, content and an optional frame.
Definition scroll_geometry.hpp:28
@ ON_FRAME
Bars occupy the right/bottom frame lines, excluding corners.
Definition scroll_geometry.hpp:31
TitleDecoration
Optional top-title break decoration; NONE preserves literal legacy titles.
Definition frame.hpp:39
@ NONE
No additional title cells.
Definition frame.hpp:40
ScrollbarPattern
Opt-in scrollbar glyph presets; legacy calls retain their original appearance.
Definition scrollbar_skin.hpp:15
@ LEGACY
Existing shaded track and block thumb.
Definition scrollbar_skin.hpp:16
LayoutAlign
Alignment; center assigns floor(free/2) before the child/group.
Definition layout.hpp:172
constexpr std::expected< ScrollThumb, TreeError > scrollThumb(ScrollAxisMetrics metrics, std::uint64_t offset, std::int32_t trackLength, std::int32_t minimumThumb=1) noexcept
Map exact logical position to a thumb without a floating-point index round trip.
Definition scroll_geometry.hpp:187
GlyphProfile
Explicit glyph map, independent of colors and geometry. NF maps use Nerd Fonts 3 Powerline codepoints...
Definition glyph_profile.hpp:12
@ DEFAULT
Preserve the control's existing glyph sources.
Definition glyph_profile.hpp:13
ScrollAxis
Logical scrolling axis; X increases right and Y increases down.
Definition scroll_geometry.hpp:15
@ VERTICAL
Rows.
Definition scroll_geometry.hpp:17
@ HORIZONTAL
Columns.
Definition scroll_geometry.hpp:16
std::expected< void, TreeError > setScrollbarSkin(WidgetTree &tree, Node< Widget > node, const ScrollbarSkin &skin)
Atomically prepare owning scrollbar glyphs between frames on the tree UI thread.
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
constexpr std::size_t DEFAULT_SCROLLBAR_GLYPH_BYTES
Default UTF-8 byte cap for each supplied scrollbar glyph.
Definition scrollbar_skin.hpp:13
ScrollbarArrowPattern
Independent functional-arrow source; selecting it never enables buttons.
Definition scrollbar_skin.hpp:32
@ BODY
Ordinary content rows, optionally below a header.
Definition grid.hpp:23
@ HEADER
Independent heading rows sharing the horizontal tracks.
Definition grid.hpp:24
@ 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 frame decoration and finite paint-work policy.
Definition primitives.hpp:27
Owning paint values; no theme engine or behavior is encoded here.
Definition controls.hpp:24
Owning advanced frame settings; legacy BorderOptions remains a literal value type.
Definition primitives.hpp:62
BorderOptions border
Existing glyph selection and paint-work cap.
Definition primitives.hpp:63
std::string title
Owning UTF-8 top-edge title; does not increase intrinsic width.
Definition primitives.hpp:67
Owning nonnegative padding in terminal cells.
Definition layout.hpp:185
Owning linear container options.
Definition layout.hpp:193
std::int32_t gap
Cells between visible children only.
Definition layout.hpp:194
Original error plus independent runner/restoration and cleanup failures.
Definition managed_diagnostics.hpp:62
Owning overlay alignment and insets; all children share the content rectangle.
Definition grid.hpp:227
Owning independent policies for width and height.
Definition layout.hpp:35
Owning frame pipe stage over the same transactional border factory.
Definition ui_layout.hpp:1086
ControlStyle style
Owning manual appearances beneath themes.
Definition ui_layout.hpp:1088
BorderOptions options
Owning glyph/work settings.
Definition ui_layout.hpp:1087
friend Description< Border > operator|(Description< T > &&description, BorderModifier modifier)
Definition ui_layout.hpp:1095
Owning sparse literals only; never contains IDs, models, handlers or live history.
Definition ui_control_context.hpp:391
std::optional< bool > arrows
Reserve functional arrow buttons when the channel fits.
Definition ui_control_context.hpp:488
std::optional< ScrollPlacement > placement
ScrollArea gutter/overlay/frame relationship.
Definition ui_control_context.hpp:426
std::optional< ScrollBarPolicy > horizontal
ScrollArea horizontal bar presence policy.
Definition ui_control_context.hpp:424
std::optional< std::int32_t > minimumThumb
Positive minimum thumb cells, capped by the actual track.
Definition ui_control_context.hpp:422
std::optional< GlyphProfile > glyphProfile
Manual named base for Border and native scroll controls.
Definition ui_control_context.hpp:491
std::vector< ControlPropertyOrigin > origins
Per-property overrides.
Definition ui_control_context.hpp:408
std::optional< ScrollAxis > axis
ScrollBar projection axis, applied without changing its writer role.
Definition ui_control_context.hpp:427
std::shared_ptr< const ControlSourceOrigin > origin
Fallback location for present properties.
Definition ui_control_context.hpp:407
std::optional< std::uint64_t > keyStep
Positive integral logical cells per arrow event, retaining all 64 bits.
Definition ui_control_context.hpp:420
std::optional< std::uint64_t > pageOverlap
Shared logical cells between pages; explicit zero is supported.
Definition ui_control_context.hpp:421
ControlScrollFrameSettings frame
Sparse optional frame configuration for sized controls.
Definition ui_control_context.hpp:428
std::optional< GlyphFallback > glyphFallback
Portable admission fallback, independent of colors.
Definition ui_control_context.hpp:492
std::optional< bool > focusable
Whether the owning area/standalone bar participates in focus traversal.
Definition ui_control_context.hpp:423
ControlScrollbarSettings scrollbar
Sparse scrollbar skin; appended for aggregate compatibility.
Definition ui_control_context.hpp:472
std::optional< double > wheelStep
Positive finite logical scroll cells per decoded wheel event.
Definition ui_control_context.hpp:419
std::optional< ScrollBarPolicy > vertical
ScrollArea vertical bar presence policy.
Definition ui_control_context.hpp:425
Owning compact decoration stage; all text is retained until checked mount.
Definition ui_layout.hpp:1151
~FramedModifier()=default
Keep owning transfers fallible on checked standard-library implementations.
friend Description< T > operator|(Description< T > &&description, FramedModifier modifier)
Definition ui_layout.hpp:1165
FrameOptions options
Owning settings, including the title for a compact pattern.
Definition ui_layout.hpp:1155
std::optional< std::string > pattern
Owning compact name, checked by the consuming recipe.
Definition ui_layout.hpp:1156
Named map stage using the same sparse construction defaults as the fluent methods.
Definition ui_layout.hpp:595
std::optional< GlyphFallback > fallback
Selected portable fallback.
Definition ui_layout.hpp:597
friend Description< T > operator|(Description< T > &&description, GlyphProfileModifier modifier)
Definition ui_layout.hpp:606
std::optional< GlyphProfile > profile
Selected manual base.
Definition ui_layout.hpp:596
Advanced decoration stage with an explicitly observed retained Border owner.
Definition ui_layout.hpp:1175
~ObservedFramedModifier()=default
Preserve fallible owning transfers alongside the observing reference.
FramedModifier frame
Owning compact or advanced frame configuration.
Definition ui_layout.hpp:1180
Ref< Border > reference
Empty observer published only when the whole mount succeeds.
Definition ui_layout.hpp:1179
Owning exact ordinary Overlay layout stage; derived OverlayHost is deliberately excluded.
Definition ui_layout.hpp:444
std::optional< LayoutPadding > padding
Complete nonnegative shared canonical insets.
Definition ui_layout.hpp:445
friend Description< Overlay > operator|(Description< Overlay > &&description, OverlayLayoutModifier modifier)
Definition ui_layout.hpp:453
std::optional< LayoutAlign > vertical
Ordinary Overlay row alignment.
Definition ui_layout.hpp:447
std::optional< LayoutAlign > horizontal
Ordinary Overlay column alignment.
Definition ui_layout.hpp:446
Owning title-decoration pipe stage, sharing method validation and lifetime.
Definition ui_layout.hpp:1117
std::optional< CustomTitleDecoration > custom
Optional complete custom ends.
Definition ui_layout.hpp:1119
friend Description< T > operator|(Description< T > &&description, TitleDecorationModifier modifier)
Definition ui_layout.hpp:1126
~TitleDecorationModifier()=default
Preserve fallible owning transfers.
TitleDecoration preset
Checked preset.
Definition ui_layout.hpp:1118
static Description< ScrollArea > scrollAreaControl(ScrollAreaOptions options, std::shared_ptr< ScrollController > controller, ControlStyle style)
Definition ui_layout.hpp:825
static std::expected< Node< T >, ManagedError > mount(Description< T > &&description, ManagedScene &scene, Node< Widget > parent, MountContext &context)
Mount a root or child inside the same transaction.
Definition ui_description.hpp:3560
static Description< ScrollBar > scrollBarControl(std::shared_ptr< ScrollController > controller, ScrollAxis axis, ScrollBarOptions options, ControlStyle style, bool writer)
Definition ui_layout.hpp:889
static void gridSection(Description< Grid > &parent, GridSection section)
Definition ui_description.hpp:3181
static void frameSettings(Description< T > &description, const ControlSettings &settings)
Stage precharged frame settings on the exact typed source recipe.
Definition ui_layout.hpp:997
static Description< Border > borderControl(BorderOptions options, ControlStyle style)
Definition ui_layout.hpp:1043
static Description< T > controlArguments(Description< T > description, ControlSettings arguments)
Retain explicit constructor properties above inherited defaults.
Definition ui_description.hpp:3417
static Description< Border > framedControl(FrameOptions options, ControlStyle style)
Definition ui_layout.hpp:1015
static void layoutChild(Description< Parent > &parent, Description< Child > &child, bool structural=false)
Definition ui_description.hpp:3238
static Description< T > configuredControl(Description< T > description, std::string_view type, bool inherit=true)
Attach a builtin configuration identity to an owning recipe.
Definition ui_description.hpp:3409
static Description< Widget > erase(Description< T > description)
Erase only the observer type while preserving one mount transaction.
Definition ui_description.hpp:3534
static constexpr std::string_view controlType()
Identify builtin recipe types without allocating runtime metadata.
Definition ui_recipe_access.hpp:808
static std::expected< void, ManagedError > applyScrollbarSkin(ManagedScene &scene, Node< Widget > node, const ControlSettings &settings)
Definition ui_layout.hpp:798
static void gridChild(Description< Grid > &parent, Child &&child, std::optional< GridRegion > region={})
Definition ui_description.hpp:3154
static Description< Overlay > overlayControl(OverlayOptions options, SizePolicy policy)
Definition ui_layout.hpp:25
Stack-owned transaction bookkeeping, discarded after one description mount.
Definition ui_recipe_context.hpp:554
const ControlSettings * frameSettings
Current source frame patch only; never inherited by children.
Definition ui_recipe_context.hpp:564
const FrameOptions * frameOptions
Current native ScrollArea constructor only; never inherited by children.
Definition ui_recipe_context.hpp:565
const ControlSettings * controlSettings
Constructor-only borrowed settings; restored before setup/children.
Definition ui_recipe_context.hpp:562