|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A screen definition: an id and the builder that writes the document. More...
#include <author.hpp>
Public Types | |
| using | Builder = std::function<Node(Scope&)> |
| Declares on the screen's scope and returns the view. | |
Public Member Functions | |
| Screen (std::string screenId, Builder builder) | |
| A screen. | |
| std::string const & | id () const noexcept |
| The document id. | |
| std::expected< Emitted, Refusal > | write () const |
| Runs the builder and writes the document. | |
A screen definition: an id and the builder that writes the document.
Definition at line 4509 of file author.hpp.
| using morph::ui::author::Screen::Builder = std::function<Node(Scope&)> |
Declares on the screen's scope and returns the view.
Definition at line 4512 of file author.hpp.
|
inline |
A screen.
| screenId | The document id. |
| builder | The builder. |
Definition at line 4517 of file author.hpp.
|
inlinenodiscardnoexcept |
Runs the builder and writes the document.
Definition at line 4525 of file author.hpp.