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

A screen backed by one registered action's form. 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 action's registered type-id.

Detailed Description

template<morph::forms::FixedString Id, typename Action>
struct morph::app::FormScreen< Id, Action >

A screen backed by one registered action's form.

Template Parameters
IdScreen-id, referenced from an App::menu's MenuEntry::screen().
ActionRegistered action type (BRIDGE_REGISTER_ACTION) this screen renders.

Definition at line 44 of file app.hpp.

Member Function Documentation

◆ id()

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

The screen's id.

Returns
The declared id.

Definition at line 47 of file app.hpp.

◆ kind()

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

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

Returns
The literal "form".

Definition at line 51 of file app.hpp.

◆ ref()

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

The referenced action's registered type-id.

Returns
ActionTraits<Action>::typeId().

Definition at line 55 of file app.hpp.


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