|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Compile-time descriptions translated into the existing owning UI recipes at runtime. More...
Classes | |
| struct | Literal |
| Owning fixed-size bytes usable as a structural template argument. More... | |
| class | Element |
| Immutable-through-accessors static node; no live widgets, models, slots or callbacks. More... | |
| class | StaticScene |
| Validated static scene value; runtime recipes and mounted ownership remain separate. More... | |
Functions | |
| template<Literal Id = "", std::size_t N> | |
| consteval auto | label (const char(&text)[N], ControlStyle style=ControlStyle{}, SizePolicy policy=DEFAULT_CONTENT_POLICY) |
| template<Literal Id = "", std::size_t N> | |
| consteval auto | button (const char(&text)[N], ControlStyle style=ControlStyle{}, SizePolicy policy=DEFAULT_CONTENT_POLICY) |
| template<Literal Id = "", std::size_t N> | |
| consteval auto | lineEdit (const char(&initial)[N], EditMode mode=EditMode::IMMEDIATE, ControlStyle style=ControlStyle{}, SizePolicy policy=DEFAULT_EDITOR_POLICY) |
| template<Literal Id = "", detail::StaticElement... Children> | |
| consteval auto | row (LinearOptions options, Children... children) |
| template<Literal Id = "", detail::StaticElement... Children> | |
| consteval auto | row (Children... children) |
| template<Literal Id = "", detail::StaticElement... Children> | |
| consteval auto | column (LinearOptions options, Children... children) |
| template<Literal Id = "", detail::StaticElement... Children> | |
| consteval auto | column (Children... children) |
| template<detail::StaticElement Root> | |
| consteval auto | scene (Root root) |
| template<Literal Id, class T> | |
| auto | reference (ui::Ref< T > value) |
| template<Literal Id, class Callback> requires portals::detail::ManagedAction<Callback, ClickEvent> | |
| auto | onClick (Callback value) |
| template<Literal Id> | |
| auto | bind (ManagedState< std::string > value) |
| template<detail::StaticElement Root, detail::RuntimeAdapter... Adapters> | |
| auto | describe (const StaticScene< Root > &value, Adapters... adapters) |
Compile-time descriptions translated into the existing owning UI recipes at runtime.
| auto portals::ui::ct::bind | ( | ManagedState< std::string > | value | ) |
| Id | Required nonempty LineEdit identity, checked during describe(). |
| value | Existing scene-owned text observation; must belong to the receiving ManagedScene. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| N | Caption array extent including its terminator. |
| text | Constant caption bytes copied now, Unicode-validated at runtime mount. |
| style | Owning manual appearances. |
| policy | Owning validated constraints, in terminal cells. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| Children | Factory-produced static node types. |
| children | Owning static children in insertion order. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| Children | Factory-produced static node types. |
| options | Existing validated vertical layout settings. |
| children | Owning static children, mounted top to bottom. |
| auto portals::ui::ct::describe | ( | const StaticScene< Root > & | value, |
| Adapters... | adapters ) |
| Root | Validated static root type. |
| Adapters | Explicit runtime adapter types; IDs and target types are compile-time checked. |
| value | Owning static scene borrowed only while constructing the returned runtime recipe. |
| adapters | Owning runtime values consumed into existing recipes; duplicate kind/ID pairs are errors. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| N | Caption array extent including its terminator. |
| text | Constant bytes copied into the result; Unicode validity is checked at runtime mount. |
| style | Owning manual appearances. |
| policy | Owning validated constraints, in terminal cells. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| N | Initial text extent including its terminator. |
| initial | Constant initial bytes; ignored when an explicit runtime state binding is supplied. |
| mode | Existing confirmation policy; IMMEDIATE preserves the dynamic factory default. |
| style | Owning manual appearances. |
| policy | Owning validated constraints, in terminal cells. |
| auto portals::ui::ct::onClick | ( | Callback | value | ) |
| Id | Required nonempty Button identity, checked during describe(). |
| Callback | Existing void/expected/EditorCommandResult action, optionally borrowing ClickEvent. |
| value | Owning action; explicit borrowed services must outlive invocation. |
| Id | Required nonempty static identity. |
| T | Existing widget type, checked against the target during describe(). |
| value | Shared UI-thread reference slot; empty until the complete runtime mount succeeds. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| Children | Factory-produced static node types. |
| children | Owning static children in insertion order. |
|
consteval |
| Id | Optional style/adapter identity, unique when nonempty. |
| Children | Factory-produced static node types. |
| options | Existing validated horizontal layout settings. |
| children | Owning static children, mounted left to right. |
|
consteval |
| Root | Factory-produced static node type. |
| root | Owning static tree; duplicate nonempty IDs are compilation errors. |