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

Cells laid out row-major in a fixed number of columns. More...

#include <view.hpp>

Public Attributes

int columns = 1
 The column count.
std::vector< GridCell > cells
 The cells, row-major.
int gap = 0
 Space between cells: a spacing step, 0 to kMaxSpacingStep.
Common common {}
 Visibility, enablement, layout, drag-and-drop.
Align align = Align::Stretch
 Where each cell's content sits vertically in its row; set once. A grid's columns share its width, so there is no spare length to justify.

Detailed Description

Cells laid out row-major in a fixed number of columns.

Definition at line 603 of file view.hpp.

Member Data Documentation

◆ columns

int morph::ui::Grid::columns = 1

The column count.

Definition at line 605 of file view.hpp.

◆ cells

std::vector<GridCell> morph::ui::Grid::cells

The cells, row-major.

Definition at line 607 of file view.hpp.

◆ gap

int morph::ui::Grid::gap = 0

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

Definition at line 609 of file view.hpp.

◆ common

Common morph::ui::Grid::common {}

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

Definition at line 611 of file view.hpp.

◆ align

Align morph::ui::Grid::align = Align::Stretch

Where each cell's content sits vertically in its row; set once. A grid's columns share its width, so there is no spare length to justify.

Definition at line 614 of file view.hpp.


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