morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::app::WizardScreen< Id, Wizard > Struct Template Reference

A screen backed by a registered morph::flows::Wizard. More...

#include <app.hpp>

Static Public Member Functions

static constexpr std::string_view id () noexcept
 The screen's id.
static constexpr std::string_view kind () noexcept
 The screen's kind, for the app-screens[id].kind key.
static constexpr std::string_view ref () noexcept
 The referenced wizard's registered type-id.

Detailed Description

template<morph::forms::FixedString Id, typename Wizard>
struct morph::app::WizardScreen< Id, Wizard >

A screen backed by a registered morph::flows::Wizard.

Template Parameters
IdScreen-id, referenced from an App::menu's MenuEntry::screen().
WizardRegistered wizard type (BRIDGE_REGISTER_WIZARD) this screen renders.

Definition at line 64 of file app.hpp.

Member Function Documentation

◆ id()

template<morph::forms::FixedString Id, typename Wizard>
constexpr std::string_view morph::app::WizardScreen< Id, Wizard >::id ( )
inlinestaticnodiscardconstexprnoexcept

The screen's id.

Returns
The declared id.

Definition at line 67 of file app.hpp.

◆ kind()

template<morph::forms::FixedString Id, typename Wizard>
constexpr std::string_view morph::app::WizardScreen< Id, Wizard >::kind ( )
inlinestaticnodiscardconstexprnoexcept

The screen's kind, for the app-screens[id].kind key.

Returns
The literal "wizard".

Definition at line 71 of file app.hpp.

◆ ref()

template<morph::forms::FixedString Id, typename Wizard>
constexpr std::string_view morph::app::WizardScreen< Id, Wizard >::ref ( )
inlinestaticnodiscardconstexprnoexcept

The referenced wizard's registered type-id.

Returns
WizardTraits<Wizard>::typeId().

Definition at line 75 of file app.hpp.


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