morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::FieldGroup Struct Reference

One named group of fields in an action's formLayout. More...

#include <layout.hpp>

Public Attributes

std::string_view title
 Section / tab / panel heading shown to the user.
GroupKind kind {GroupKind::Section}
 Container this group renders as. Defaults to Section.
std::span< const std::string_view > fields
 Member wire keys belonging to this group (membership only; see the struct documentation for intra-group order).

Detailed Description

One named group of fields in an action's formLayout.

fields gives membership only — which wire keys belong to this group — not intra-group order: the renderer still lays fields out by ascending x-order within the group. The array position of a FieldGroup inside A::formLayout gives the cross-group order.

Definition at line 70 of file layout.hpp.

Member Data Documentation

◆ title

std::string_view morph::forms::FieldGroup::title

Section / tab / panel heading shown to the user.

Definition at line 72 of file layout.hpp.

◆ kind

GroupKind morph::forms::FieldGroup::kind {GroupKind::Section}

Container this group renders as. Defaults to Section.

Definition at line 75 of file layout.hpp.

◆ fields

std::span<const std::string_view> morph::forms::FieldGroup::fields

Member wire keys belonging to this group (membership only; see the struct documentation for intra-group order).

Definition at line 79 of file layout.hpp.


The documentation for this struct was generated from the following file: