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

Loader-only bounded schema installation in an effective context copy. More...

#include <control_context.hpp>

Static Public Member Functions

static bool hasDeclaredType (const ControlContext &context, std::string_view name) noexcept
static bool hasUserConfiguration (const ControlContext &context) noexcept
static std::string_view canonicalProperty (std::string_view property) noexcept
static std::expected< void, ControlContextError > installFallbackSchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installPrimitiveSchema (ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installScrollSchema (ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installOverlaySchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installKeyHelpSchema (ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installVirtualViewSchema (ControlContext &context, std::string_view name) noexcept
static std::expected< void, ControlContextError > installDataStateSchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installNotificationSchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installThemeSelectorSchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installThemeCatalogSchema (ControlContext &context, bool recipient=false) noexcept
static std::expected< void, ControlContextError > themeFamilySchema (ControlContext &context, std::string_view name, ControlFactoryKind kind) noexcept
static std::expected< void, ControlContextError > installMessageSchema (ControlContext &context) noexcept
static std::expected< void, ControlContextError > installDialogSchema (ControlContext &context, std::string_view name) noexcept
static std::span< const ControlPropertyDescriptor > gridSchema () noexcept

Detailed Description

Loader-only bounded schema installation in an effective context copy.

Member Function Documentation

◆ canonicalProperty()

std::string_view portals::ui::detail::ControlContextAccess::canonicalProperty ( std::string_view property)
staticnoexcept
Parameters
propertyExact case-sensitive canonical property path or alias.
Returns
Static canonical path for known names, or the borrowed input unchanged.

◆ gridSchema()

std::span< const ControlPropertyDescriptor > portals::ui::detail::ControlContextAccess::gridSchema ( )
staticnoexcept
Returns
Static Grid-only descriptors; this does not make Grid a global builtin.

◆ hasDeclaredType()

bool portals::ui::detail::ControlContextAccess::hasDeclaredType ( const ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextImmutable snapshot borrowed for this check.
nameExact schema or definition name.
Returns
Whether a user declaration owns the name, without resolving its base.

◆ hasUserConfiguration()

bool portals::ui::detail::ControlContextAccess::hasUserConfiguration ( const ControlContext & context)
staticnoexcept
Parameters
contextImmutable snapshot borrowed for the legacy loader's mode selection.
Returns
Whether definitions, defaults, schemas, nondefault limits or a sticky failure require typed validation. The single loader-internal fallback is excluded; public empty() keeps its meaning.

◆ installDataStateSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installDataStateSchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective native/loader snapshot; caller declarations retain priority.
Returns
Success after installing scoped DataStateView settings, or the original typed error.

◆ installDialogSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installDialogSchema ( ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextEffective native/loader snapshot; explicit caller names retain priority.
nameExact OverlayHost or Dialog schema name.
Returns
Scoped native schema or the original typed configuration failure.

◆ installFallbackSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installFallbackSchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective loader snapshot; caller-owned snapshots remain unchanged.
Returns
Success after installing the single Grid fallback, or the original typed error.

◆ installKeyHelpSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installKeyHelpSchema ( ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextEffective native/loader snapshot; explicit caller declarations retain priority.
nameExactly HelpView or KeyHints; neither name is globally reserved.
Returns
Success after installing the scoped native schema, or the original typed error.

◆ installMessageSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installMessageSchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective owning defaults snapshot receiving the native message fallback.
Returns
Scoped canonical schema, or the original typed configuration/allocation failure.

◆ installNotificationSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installNotificationSchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective native snapshot; explicit caller names retain priority.
Returns
Scoped code-bound Notifications schema, without a resource factory or runtime resolver.

◆ installOverlaySchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installOverlaySchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective native/loader snapshot; caller Overlay declarations retain priority.
Returns
Success after installing the scoped ordinary Overlay schema, or the original typed error.

◆ installPrimitiveSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installPrimitiveSchema ( ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextEffective native/loader snapshot; caller declarations take precedence.
nameExactly Border or Gauge; this does not reserve a process-global control name.
Returns
Success after installing the scoped fallback, or the original typed preparation error.

◆ installScrollSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installScrollSchema ( ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextEffective native/loader snapshot; caller declarations retain their priority.
nameExactly ScrollArea, ScrollBar or LogView; these names are not globally reserved.
Returns
Success after installing the scoped schema, or the original typed preparation error.

◆ installThemeCatalogSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installThemeCatalogSchema ( ControlContext & context,
bool recipient = false )
staticnoexcept
Parameters
contextEffective context; caller declarations retain priority.
recipientEnable the private catalog-to-view ancestry only for an actual owning recipe.
Returns
Scoped canonical catalog schema, or the original typed failure.

◆ installThemeSelectorSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installThemeSelectorSchema ( ControlContext & context)
staticnoexcept
Parameters
contextEffective native snapshot; caller declarations retain priority.
Returns
Scoped ThemeSelector view schema without creating a model or catalog.

◆ installVirtualViewSchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::installVirtualViewSchema ( ControlContext & context,
std::string_view name )
staticnoexcept
Parameters
contextEffective native context; explicit caller declarations retain priority.
nameExactly VirtualList, VirtualTable or Chart; this never installs a model/resource factory.
Returns
Success after installing the scoped scalar schema, or the original typed failure.

◆ themeFamilySchema()

std::expected< void, ControlContextError > portals::ui::detail::ControlContextAccess::themeFamilySchema ( ControlContext & context,
std::string_view name,
ControlFactoryKind kind )
staticnoexcept
Parameters
contextEffective registry context, never the caller's immutable snapshot.
nameExact checked semantic registration name.
kindView or catalog capability selected by canonical metadata.
Returns
Success after recording the finite family, or a typed allocation failure.

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