morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::Section< Action, Title, Binds > Struct Template Reference

One section of a SectionGroup: a registered action, a display title, and zero or more Bind prefill declarations. More...

#include <sections.hpp>

Public Types

using action = Action
 The section's action type.
using binds = std::tuple<Binds...>
 Tuple of this section's Bind<...> prefill declarations (possibly empty).

Static Public Member Functions

static constexpr std::string_view title () noexcept
 The section's display title.

Detailed Description

template<typename Action, morph::forms::FixedString Title, typename... Binds>
struct morph::forms::Section< Action, Title, Binds >

One section of a SectionGroup: a registered action, a display title, and zero or more Bind prefill declarations.

Template Parameters
ActionRegistered action type (BRIDGE_REGISTER_ACTION) this section fires.
TitleHuman title for the section (tab label / card header).
BindsZero or more Bind<Field, Path> prefill declarations.

Definition at line 46 of file sections.hpp.

Member Typedef Documentation

◆ action

template<typename Action, morph::forms::FixedString Title, typename... Binds>
using morph::forms::Section< Action, Title, Binds >::action = Action

The section's action type.

Definition at line 48 of file sections.hpp.

◆ binds

template<typename Action, morph::forms::FixedString Title, typename... Binds>
using morph::forms::Section< Action, Title, Binds >::binds = std::tuple<Binds...>

Tuple of this section's Bind<...> prefill declarations (possibly empty).

Definition at line 51 of file sections.hpp.

Member Function Documentation

◆ title()

template<typename Action, morph::forms::FixedString Title, typename... Binds>
constexpr std::string_view morph::forms::Section< Action, Title, Binds >::title ( )
inlinestaticnodiscardconstexprnoexcept

The section's display title.

Returns
The declared title.

Definition at line 55 of file sections.hpp.


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