|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
What mounts screens for a host that owns its own shell; the workspace shell is one. More...
#include <host.hpp>
Public Member Functions | |
| ScreenHost (ScreenHost const &)=delete | |
| ScreenHost & | operator= (ScreenHost const &)=delete |
| ScreenHost (ScreenHost &&)=delete | |
| ScreenHost & | operator= (ScreenHost &&)=delete |
| virtual std::expected< std::unique_ptr< ScreenHandle >, MountError > | mount (std::string_view screenId, ParamMap params)=0 |
| Mounts a screen. | |
| virtual std::optional< std::string > | identityOf (std::string_view screenId, ParamMap const ¶ms)=0 |
The identity a screen would have with params, without mounting it, so a host can focus an open screen instead of opening a second. | |
| virtual void | onNavigate (std::string_view screenId, ParamMap const ¶ms)=0 |
| A document asked to open another screen. The host decides whether that is a new tab, a focus or a dialog. Implemented by the host. | |
What mounts screens for a host that owns its own shell; the workspace shell is one.
|
nodiscardpure virtual |
Mounts a screen.
| screenId | The screen id. |
| params | Its params. |
Implemented in morph::ui::DocumentScreenHost.
|
nodiscardpure virtual |
The identity a screen would have with params, without mounting it, so a host can focus an open screen instead of opening a second.
| screenId | The screen id. |
| params | The params. |
Implemented in morph::ui::DocumentScreenHost.
|
pure virtual |
A document asked to open another screen. The host decides whether that is a new tab, a focus or a dialog. Implemented by the host.
| screenId | The screen id. |
| params | Its params. |
Implemented in morph::ui::DocumentScreenHost.