morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
field_layout.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#pragma once
3
4#include <cstdint>
5
6/// @file
7/// @brief `morph::forms::FieldLayout`: where a form's cell puts a field's caption. The forms engine and the
8/// authoring API share it. Specified in `docs/spec/forms/engine.md`, "Rendering".
9
10namespace morph::forms {
11
12/// @brief Where a form's cell puts a field's caption, relative to its control.
13enum class FieldLayout : std::uint8_t {
14 Stacked, ///< The label over the control over the help.
15 Inline, ///< The label beside the control, at a fixed width, centred on it; the help under the control.
16};
17
18} // namespace morph::forms
FieldLayout
Where a form's cell puts a field's caption, relative to its control.
@ Inline
The label beside the control, at a fixed width, centred on it; the help under the control.
@ Stacked
The label over the control over the help.