Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::SamplePickerLayout Struct Reference

Pure geometry for the sample grid. Values are logical pixels in the pane. More...

#include "donner/editor/SamplePickerPresenter.h"

Public Attributes

SamplePickerLayoutMode mode = SamplePickerLayoutMode::Narrow
 Responsive arrangement used for the sample cards.
std::size_t columns = 1
 Number of card columns.
std::size_t rows = 0
 Number of card rows.
float cardWidth = 0.0f
 Width of each sample card in logical UI pixels.
float cardHeight = kSamplePickerMinTouchTarget
 Height of each sample card in logical UI pixels.

Detailed Description

Pure geometry for the sample grid. Values are logical pixels in the pane.

Member Data Documentation

◆ cardHeight

float donner::editor::SamplePickerLayout::cardHeight = kSamplePickerMinTouchTarget

Height of each sample card in logical UI pixels.

◆ cardWidth

float donner::editor::SamplePickerLayout::cardWidth = 0.0f

Width of each sample card in logical UI pixels.

◆ columns

std::size_t donner::editor::SamplePickerLayout::columns = 1

Number of card columns.

◆ mode

SamplePickerLayoutMode donner::editor::SamplePickerLayout::mode = SamplePickerLayoutMode::Narrow

Responsive arrangement used for the sample cards.

◆ rows

std::size_t donner::editor::SamplePickerLayout::rows = 0

Number of card rows.


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