euv_ui/component/field/view/enum.rs
1use super::*;
2
3/// The direction the rows of a field group are laid out in.
4///
5/// The reference publishes three: the rows stack one under the other,
6/// the rows sit side by side, and the rows stack until the group is
7/// wide enough to hold them side by side.
8#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
9pub enum EuvFieldOrientation {
10 /// The rows stack one under the other.
11 #[default]
12 Vertical,
13 /// The rows sit side by side.
14 Horizontal,
15 /// The rows stack until the group is wide enough.
16 Responsive,
17}
18
19/// The size a field legend is written at.
20///
21/// The reference publishes two: the legend of a set of fields, and the
22/// caption of a single control.
23#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
24pub enum EuvFieldLegendVariant {
25 /// The legend of a set of fields.
26 #[default]
27 Legend,
28 /// The caption of a single control.
29 Label,
30}