morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::app::App< Title, Menu, Screens > Struct Template Reference

The app-shell descriptor: a title, an ordered menu, and the screens it routes to. More...

#include <app.hpp>

Public Types

using menu = Menu
 Tuple of this app's ordered MenuEntry<...> types.
using screens = Screens
 Tuple of this app's screen descriptor types.

Static Public Member Functions

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

Detailed Description

template<morph::forms::FixedString Title, typename Menu, typename Screens>
struct morph::app::App< Title, Menu, Screens >

The app-shell descriptor: a title, an ordered menu, and the screens it routes to.

Template Parameters
TitleApplication title (window/header).
MenuA std::tuple<MenuEntry<...>...> of ordered menu entries.
ScreensA std::tuple<FormScreen<...> | WizardScreen<...>...> of screens.

Definition at line 93 of file app.hpp.

Member Typedef Documentation

◆ menu

template<morph::forms::FixedString Title, typename Menu, typename Screens>
using morph::app::App< Title, Menu, Screens >::menu = Menu

Tuple of this app's ordered MenuEntry<...> types.

Definition at line 95 of file app.hpp.

◆ screens

template<morph::forms::FixedString Title, typename Menu, typename Screens>
using morph::app::App< Title, Menu, Screens >::screens = Screens

Tuple of this app's screen descriptor types.

Definition at line 98 of file app.hpp.

Member Function Documentation

◆ title()

template<morph::forms::FixedString Title, typename Menu, typename Screens>
constexpr std::string_view morph::app::App< Title, Menu, Screens >::title ( )
inlinestaticnodiscardconstexprnoexcept

The application's display title.

Returns
The declared title.

Definition at line 102 of file app.hpp.


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