morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::FrontendOption Struct Reference

One frontend a binary was built with. More...

#include <frontend.hpp>

Public Attributes

std::string name
 The name --ui= and MORPH_UI match.
std::function< bool()> usable
 Whether the frontend can run here (a terminal on stdin, a display); empty counts as usable.
std::function< std::unique_ptr< Frontend >()> make
 Makes the frontend.

Detailed Description

One frontend a binary was built with.

Definition at line 201 of file frontend.hpp.

Member Data Documentation

◆ name

std::string morph::ui::FrontendOption::name

The name --ui= and MORPH_UI match.

Definition at line 203 of file frontend.hpp.

◆ usable

std::function<bool()> morph::ui::FrontendOption::usable

Whether the frontend can run here (a terminal on stdin, a display); empty counts as usable.

Definition at line 205 of file frontend.hpp.

◆ make

std::function<std::unique_ptr<Frontend>()> morph::ui::FrontendOption::make

Makes the frontend.

Definition at line 207 of file frontend.hpp.


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