|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A string field edited as a multi-line text area. More...
#include <widget_hints.hpp>
Public Member Functions | |
| constexpr | Multiline () noexcept=default |
| Constructs the empty string. | |
| Multiline (std::string text) noexcept(std::is_nothrow_move_constructible_v< std::string >) | |
Engages with text. | |
| constexpr bool | operator== (const Multiline &other) const =default |
| Equality on the text content. | |
Static Public Member Functions | |
| static constexpr std::string_view | widget () noexcept |
| The preferred control id for this field. | |
Public Attributes | |
| std::string | value |
| The text content. | |
A string field edited as a multi-line text area.
Wire form: a plain JSON string (via the glz::meta specialisation below), exactly like an unwrapped std::string member — Multiline changes only the rendering intent, never what travels. Because the payload is a bare std::string (not a std::optional), Multiline does not define hasValue(): like a plain std::string member, it is always considered engaged by allRequiredEngaged (see docs/spec/forms/forms.md, "Empty state").
Definition at line 42 of file widget_hints.hpp.
|
inlinenoexcept |
Engages with text.
| text | The initial text content. |
Definition at line 51 of file widget_hints.hpp.
|
inlinestaticnodiscardconstexprnoexcept |
The preferred control id for this field.
Definition at line 55 of file widget_hints.hpp.
|
nodiscardconstexprdefault |
Equality on the text content.
| other | Multiline to compare against. |
| std::string morph::forms::Multiline::value |
The text content.
Definition at line 44 of file widget_hints.hpp.