morph
0.1.0
Asynchronous bridge between GUI thread and business models
Toggle main menu visibility
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
10
namespace
morph::forms {
11
12
/// @brief Where a form's cell puts a field's caption, relative to its control.
13
enum 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
morph::forms::FieldLayout
FieldLayout
Where a form's cell puts a field's caption, relative to its control.
Definition
field_layout.hpp:13
morph::forms::FieldLayout::Inline
@ Inline
The label beside the control, at a fixed width, centred on it; the help under the control.
Definition
field_layout.hpp:15
morph::forms::FieldLayout::Stacked
@ Stacked
The label over the control over the help.
Definition
field_layout.hpp:14
morph
forms
engine
field_layout.hpp
Generated by
1.17.0