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

Children laid out left to right. More...

#include <view.hpp>

Public Attributes

std::vector< Node > children
 The children, in order; a null child is skipped.
int gap = 0
 Space between children: a spacing step, 0 to kMaxSpacingStep.
Common common {}
 Visibility, enablement, layout, drag-and-drop.
std::optional< Prop< std::optional< Tone > > > tone
 A table row's tone: disengaged when none was given; an engaged Prop whose value is nullopt has no tone at the moment. Only table's row view sets it; the mount refuses it on a row outside a table.
Align align = Align::Stretch
 Where the children sit across the row (vertically); set once.
Justify justify = Justify::Start
 Where the spare width goes while no shown child stretches; set once.

Detailed Description

Children laid out left to right.

Definition at line 578 of file view.hpp.

Member Data Documentation

◆ children

std::vector<Node> morph::ui::Row::children

The children, in order; a null child is skipped.

Definition at line 580 of file view.hpp.

◆ gap

int morph::ui::Row::gap = 0

Space between children: a spacing step, 0 to kMaxSpacingStep.

Definition at line 582 of file view.hpp.

◆ common

Common morph::ui::Row::common {}

Visibility, enablement, layout, drag-and-drop.

Definition at line 584 of file view.hpp.

◆ tone

std::optional<Prop<std::optional<Tone> > > morph::ui::Row::tone

A table row's tone: disengaged when none was given; an engaged Prop whose value is nullopt has no tone at the moment. Only table's row view sets it; the mount refuses it on a row outside a table.

Definition at line 587 of file view.hpp.

◆ align

Align morph::ui::Row::align = Align::Stretch

Where the children sit across the row (vertically); set once.

Definition at line 589 of file view.hpp.

◆ justify

Justify morph::ui::Row::justify = Justify::Start

Where the spare width goes while no shown child stretches; set once.

Definition at line 591 of file view.hpp.


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