morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::app::MenuEntry< Label, ScreenId > Struct Template Reference

One app-menu entry: a label and the screen-id it routes to. More...

#include <app.hpp>

Static Public Member Functions

static constexpr std::string_view label () noexcept
 The menu entry's display label.
static constexpr std::string_view screen () noexcept
 The screen-id this entry routes to.

Detailed Description

template<morph::forms::FixedString Label, morph::forms::FixedString ScreenId>
struct morph::app::MenuEntry< Label, ScreenId >

One app-menu entry: a label and the screen-id it routes to.

Template Parameters
LabelHuman label shown in the menu.
ScreenIdKey into the app's screens map.

Definition at line 30 of file app.hpp.

Member Function Documentation

◆ label()

constexpr std::string_view morph::app::MenuEntry< Label, ScreenId >::label ( )
inlinestaticnodiscardconstexprnoexcept

The menu entry's display label.

Returns
The declared label.

Definition at line 33 of file app.hpp.

◆ screen()

constexpr std::string_view morph::app::MenuEntry< Label, ScreenId >::screen ( )
inlinestaticnodiscardconstexprnoexcept

The screen-id this entry routes to.

Returns
The declared screen-id.

Definition at line 37 of file app.hpp.


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