The host screens an application registers by name: what a catalog entry's host names instead of a document.
More...
#include <host.hpp>
|
| void | add (std::string name, HostScreenFactory factory) |
| | Registers a host screen, replacing one of the same name.
|
| HostScreenFactory const * | find (std::string_view name) const |
| | The factory registered under name.
|
The host screens an application registers by name: what a catalog entry's host names instead of a document.
Definition at line 180 of file host.hpp.
◆ add()
| void morph::ui::ScreenHostRegistry::add |
( |
std::string | name, |
|
|
HostScreenFactory | factory ) |
|
inline |
Registers a host screen, replacing one of the same name.
- Parameters
-
| name | The name a catalog entry's host gives. |
| factory | What mounts it. |
Definition at line 185 of file host.hpp.
◆ find()
| HostScreenFactory const * morph::ui::ScreenHostRegistry::find |
( |
std::string_view | name | ) |
const |
|
inlinenodiscard |
The factory registered under name.
- Parameters
-
- Returns
- It, or null when none is registered.
Definition at line 192 of file host.hpp.
The documentation for this class was generated from the following file: