morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
overrides.hpp File Reference

Overrides: an application's replacements for the control formView draws for a field, chosen by field path, widget hint, unit or kind; FieldView, what a replacement is handed. More...

#include <functional>
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include "../../ui/view.hpp"
#include "field_model.hpp"
#include "form_session.hpp"

Go to the source code of this file.

Classes

class  morph::forms::FieldView
 A field's spec and state, handed to an override: what it shows (the value, the draft, the errors, the options) and what it writes (the draft). Copyable; valid while the session lives. More...
class  morph::forms::Overrides
 Replacement controls, resolved per field in the order field path, widget hint, unit, kind, else the built-in control. More...

Detailed Description

Overrides: an application's replacements for the control formView draws for a field, chosen by field path, widget hint, unit or kind; FieldView, what a replacement is handed.

Specified in docs/spec/forms/engine.md, "Rendering".

Definition in file overrides.hpp.