5#include <portals/key_hints.hpp>
6#include <portals/managed.hpp>
7#include <portals/ui_control_context.hpp>
8#include <portals/ui_ref.hpp>
12namespace portals::ui::detail {
14inline constexpr std::size_t CONTROL_PROPERTY_COUNT = 285;
15inline constexpr std::size_t CONTROL_PRESENCE_BITS =
16 CONTROL_PROPERTY_COUNT < 32 ? 32 : CONTROL_PROPERTY_COUNT;
17using ControlPropertyPresence = std::bitset<CONTROL_PRESENCE_BITS>;
24void mergeRecipeControlSettings(ControlSettings &target,
const ControlSettings &patch);
29void freezeControlDocumentSettings(ControlSettings &settings);
56 std::string_view name)
noexcept;
62 std::string_view name)
noexcept;
72 std::string_view name)
noexcept;
78 std::string_view name)
noexcept;
98 bool recipient =
false) noexcept;
105 ControlFactoryKind kind) noexcept;
117 std::string_view name) noexcept;
132std::uint32_t controlSettingsPresence(const
ControlSettings &settings) noexcept;
137ControlPropertyPresence controlSettingsPresenceSet(const
ControlSettings &settings) noexcept;
212bool validControlLiteral(std::string_view value) noexcept;
269 return controlMessageOptions(settings, std::move(options), legacyDialogButtons(kind));
287std::expected<void, TreeError> controlThemeCatalogOptions(
const ControlSettings &settings,
289 std::optional<std::string> &initialId);
306std::expected<LineEditOptions, ManagedError> controlLineEditOptions(
const ControlSettings &settings,
308 const TextResolver &resolver,
Copyable typed observer; never owns or exposes an unchecked widget pointer.
Definition widget.hpp:92
Cheap owning immutable snapshot of named definitions and defaults. Const snapshot reads are concurren...
Definition ui_control_context.hpp:632
TreeError
Checked tree failures; rejected operations never start the requested callback.
Definition widget_types.hpp:26
Owning frame decoration and finite paint-work policy.
Definition primitives.hpp:27
Owning chart settings, validated during preparation.
Definition chart.hpp:61
Construction-only settings for retained data presentation.
Definition data_presentation.hpp:79
Owning panel geometry and managed input settings, in terminal cells.
Definition dialog.hpp:52
Owning advanced frame settings; legacy BorderOptions remains a literal value type.
Definition primitives.hpp:62
Owning strictly determinate gauge settings.
Definition primitives.hpp:91
Ordinary help pane options; open/close bindings belong to the application.
Definition help_view.hpp:21
Single-row compact presentation options, bounded by the canonical registration limit.
Definition key_hints.hpp:12
Owning bounds and appearances for a one-line editor.
Definition line_edit.hpp:175
Owning linear container options.
Definition layout.hpp:193
Owning bounded-log settings; frame bars use ON_FRAME without a horizontal gutter.
Definition log_view.hpp:23
Original error plus independent runner/restoration and cleanup failures.
Definition managed_diagnostics.hpp:62
Fixed host budgets and explicit localization; no borrowed option spans.
Definition toast.hpp:81
Owning registration budget for a single scene overlay host.
Definition dialog.hpp:47
Owning overlay alignment and insets; all children share the content rectangle.
Definition grid.hpp:227
Owning single-row indicator configuration; no thread or timer is created by this value.
Definition spinner.hpp:87
Owning limits checked without silently truncating input or clusters.
Definition text.hpp:57
Owning fixed-row presentation settings; invalid heights are rejected at preparation.
Definition virtual_list.hpp:18
Owning table settings; preparation rejects invalid dimensions and exceeded budgets....
Definition virtual_table.hpp:13
Owning deterministic width policy; no font or terminal matching promise.
Definition text.hpp:42
Allocation-free typed fallback remains usable if diagnostic construction fails.
Definition ui_control_context.hpp:580
Static canonical property descriptor; returned views have process lifetime.
Definition ui_control_context.hpp:597
Owning sparse literals only; never contains IDs, models, handlers or live history.
Definition ui_control_context.hpp:391
Immutable settings for a ready-made modal choice dialog.
Definition message_box.hpp:90
Finite normalization budgets and optional first-preview layer admission.
Definition theme_selection.hpp:77
Owning selector captions, established dialog settings and optional application delivery.
Definition theme_selector.hpp:44
Loader-only bounded schema installation in an effective context copy.
Definition control_context.hpp:32
static bool hasDeclaredType(const ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installFallbackSchema(ControlContext &context) noexcept
static std::span< const ControlPropertyDescriptor > gridSchema() noexcept
static std::expected< void, ControlContextError > installDialogSchema(ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > themeFamilySchema(ControlContext &context, std::string_view name, ControlFactoryKind kind) noexcept
static std::expected< void, ControlContextError > installThemeSelectorSchema(ControlContext &context) noexcept
static std::string_view canonicalProperty(std::string_view property) noexcept
static std::expected< void, ControlContextError > installNotificationSchema(ControlContext &context) noexcept
static std::expected< void, ControlContextError > installDataStateSchema(ControlContext &context) noexcept
static std::expected< void, ControlContextError > installOverlaySchema(ControlContext &context) noexcept
static std::expected< void, ControlContextError > installScrollSchema(ControlContext &context, std::string_view name) noexcept
static bool hasUserConfiguration(const ControlContext &context) noexcept
static std::expected< void, ControlContextError > installThemeCatalogSchema(ControlContext &context, bool recipient=false) noexcept
static std::expected< void, ControlContextError > installPrimitiveSchema(ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installKeyHelpSchema(ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installMessageSchema(ControlContext &context) noexcept
static std::expected< void, ControlContextError > installVirtualViewSchema(ControlContext &context, std::string_view name) noexcept