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

Internal construction bridge; factory values cannot bypass constant validation. More...

#include <ui_static.hpp>

Static Public Member Functions

template<class T, Literal Id, std::size_t N, StaticElement... Children>
static consteval auto element (const char(&text)[N], ControlStyle style, SizePolicy policy, LinearOptions options, EditMode mode, Children... children)
template<StaticElement Root>
static consteval auto scene (Root root)

Detailed Description

Internal construction bridge; factory values cannot bypass constant validation.

Member Function Documentation

◆ element()

template<class T, Literal Id, std::size_t N, StaticElement... Children>
consteval auto portals::ui::ct::detail::Access::element ( const char(&) text[N],
ControlStyle style,
SizePolicy policy,
LinearOptions options,
EditMode mode,
Children... children )
inlinestaticconsteval
Template Parameters
TExisting supported widget type.
IdOptional static identity.
NCaption extent including the terminator.
ChildrenStatic node types.
Parameters
textOwned bytes copied from the caller.
styleOwning manual appearances.
policyOwning cell constraints.
optionsLinear layout settings.
modeEditor confirmation policy.
childrenOwning children in insertion order.
Returns
Constant-validated static node.

◆ scene()

template<StaticElement Root>
consteval auto portals::ui::ct::detail::Access::scene ( Root root)
inlinestaticconsteval
Template Parameters
RootFactory-produced root type.
Parameters
rootStatic tree stored by value, with no borrowed text.
Returns
Scene whose nonempty identities were validated across the complete subtree.

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