|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Submitters and choice fetchers bound to an application's own BridgeHandlers. More...
#include <exception>#include <functional>#include <optional>#include <stdexcept>#include <string>#include <string_view>#include <utility>#include <vector>#include "../../core/bridge.hpp"#include "../../core/completion.hpp"#include "../../core/executor.hpp"#include "form_session.hpp"Go to the source code of this file.
Functions | |
| template<class... Handlers> requires (sizeof...(Handlers) > 0) | |
| Submitter | morph::forms::handlerSubmitter (exec::IExecutor &callbacks, Handlers &... handlers) |
A Submitter that sends each action through the first of handlers whose model registers it. | |
| template<class... Handlers> requires (sizeof...(Handlers) > 0) | |
| ChoiceFetcher | morph::forms::handlerChoiceFetcher (exec::IExecutor &callbacks, Handlers &... handlers) |
A ChoiceFetcher that runs each options action through the first of handlers that serves it. | |
Submitters and choice fetchers bound to an application's own BridgeHandlers.
Specified in docs/spec/forms/engine.md, "Submitters".
Definition in file handler_submitter.hpp.
|
nodiscard |
A Submitter that sends each action through the first of handlers whose model registers it.
Use it when a form's submissions must reach the model instance the rest of the screen uses — an in-memory model, or a shared instance another handler attached. bridgeSubmitter keeps handlers of its own instead.
| Handlers | bridge::BridgeHandler<M, S> types. |
| callbacks | The executor a refusal is delivered on: the handlers' GUI executor. |
| handlers | The handlers, in priority order; they must outlive the returned submitter. |
Definition at line 79 of file handler_submitter.hpp.
|
nodiscard |
A ChoiceFetcher that runs each options action through the first of handlers that serves it.
| Handlers | bridge::BridgeHandler<M, S> types. |
| callbacks | The executor a refusal is delivered on: the handlers' GUI executor. |
| handlers | The handlers, in priority order; they must outlive the returned fetcher. |
Definition at line 93 of file handler_submitter.hpp.