How a DocumentScreenHost finds documents and mounts them.
More...
#include <host.hpp>
|
| std::function< std::shared_ptr< Document const >(std::string_view)> | documents |
| | The loaded document of a screen id, or null for an unknown one.
|
| IViewBackend * | backend = nullptr |
| | The view backend screens mount on. Borrowed: it outlives every screen.
|
| CloseGuard | guard |
| | Decides the close of a dirty screen without onClose; empty keeps every such screen open.
|
| std::function< void(ScreenHandle &screen)> | saveFailed |
| | Called when the guard's save and close left the screen dirty, before it is kept open, so the host shows the failure. Optional.
|
| InterpreterHost * | application = nullptr |
| | The application's side of the commands the host does not answer itself; nullptr answers them "not
supported". Borrowed.
|
| std::function< void(Refusal const &)> | diagnostics |
| | Called with each diagnostic the screens report.
|
How a DocumentScreenHost finds documents and mounts them.
Definition at line 216 of file host.hpp.
◆ documents
| std::function<std::shared_ptr<Document const>(std::string_view)> morph::ui::DocumentScreenHostOptions::documents |
The loaded document of a screen id, or null for an unknown one.
Definition at line 218 of file host.hpp.
◆ backend
| IViewBackend* morph::ui::DocumentScreenHostOptions::backend = nullptr |
The view backend screens mount on. Borrowed: it outlives every screen.
Definition at line 220 of file host.hpp.
◆ guard
| CloseGuard morph::ui::DocumentScreenHostOptions::guard |
Decides the close of a dirty screen without onClose; empty keeps every such screen open.
Definition at line 222 of file host.hpp.
◆ saveFailed
| std::function<void(ScreenHandle& screen)> morph::ui::DocumentScreenHostOptions::saveFailed |
Called when the guard's save and close left the screen dirty, before it is kept open, so the host shows the failure. Optional.
Definition at line 225 of file host.hpp.
◆ application
| InterpreterHost* morph::ui::DocumentScreenHostOptions::application = nullptr |
The application's side of the commands the host does not answer itself; nullptr answers them "not
supported". Borrowed.
Definition at line 228 of file host.hpp.
◆ diagnostics
| std::function<void(Refusal const&)> morph::ui::DocumentScreenHostOptions::diagnostics |
Called with each diagnostic the screens report.
Definition at line 230 of file host.hpp.
The documentation for this struct was generated from the following file: