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

One widget per row of a keyed collection, updated in place when a row with the same key changes. More...

#include <view.hpp>

Public Attributes

std::shared_ptr< detail::ForEachModel const > model
 The rows, the key function and the row view, type-erased; null shows no rows.
Axis axis = Axis::Vertical
 The direction rows are stacked in; set once.
int gap = 0
 Space between rows: a spacing step, 0 to kMaxSpacingStep.
Common common {}
 Visibility, enablement, layout, drag-and-drop of the row container.

Detailed Description

One widget per row of a keyed collection, updated in place when a row with the same key changes.

Definition at line 864 of file view.hpp.

Member Data Documentation

◆ model

std::shared_ptr<detail::ForEachModel const> morph::ui::ForEach::model

The rows, the key function and the row view, type-erased; null shows no rows.

Definition at line 866 of file view.hpp.

◆ axis

Axis morph::ui::ForEach::axis = Axis::Vertical

The direction rows are stacked in; set once.

Definition at line 868 of file view.hpp.

◆ gap

int morph::ui::ForEach::gap = 0

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

Definition at line 870 of file view.hpp.

◆ common

Common morph::ui::ForEach::common {}

Visibility, enablement, layout, drag-and-drop of the row container.

Definition at line 872 of file view.hpp.


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