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

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

#include <flows.hpp>

Public Types

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

Static Public Member Functions

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

Detailed Description

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

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

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

Definition at line 64 of file flows.hpp.

Member Typedef Documentation

◆ action

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

The step's action type.

Definition at line 66 of file flows.hpp.

◆ binds

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

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

Definition at line 69 of file flows.hpp.

Member Function Documentation

◆ title()

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

The step's display title.

Returns
The declared title.

Definition at line 73 of file flows.hpp.


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