Loading...
Searching...
No Matches
ml::ListItemSettings Struct Reference

Layout and behaviour settings for ListItem. More...

#include <Malena/Traits/Settings/ListItemSettings.h>

Inheritance diagram for ml::ListItemSettings:
[legend]

Public Member Functions

float getRowHeight () const
float getSlotGap () const
ListItemSettingsoperator= (const ControlSettings &c)
ListItemSettingsoperator= (const GraphicSettings &g)
void setRowHeight (float h)
void setSlotGap (float g)

Public Attributes

float rowHeight = 0.f
 0 = auto-sized from content
float slotGap = 8.f
 Pixel gap between start / content / end slots.

Detailed Description

Layout and behaviour settings for ListItem.

Colors live in ListItemTheme. padding comes from ControlTheme and is shared across both chains.

See also
ControlSettings, ListItemTheme, ListItemStyle, ListItem

Definition at line 24 of file ListItemSettings.h.

Member Function Documentation

◆ getRowHeight()

float ml::ListItemSettings::getRowHeight ( ) const
inlinenodiscard

Definition at line 39 of file ListItemSettings.h.

◆ getSlotGap()

float ml::ListItemSettings::getSlotGap ( ) const
inlinenodiscard

Definition at line 40 of file ListItemSettings.h.

◆ operator=() [1/2]

ListItemSettings & ml::ListItemSettings::operator= ( const ControlSettings & c)
inline

Definition at line 31 of file ListItemSettings.h.

◆ operator=() [2/2]

ListItemSettings & ml::ListItemSettings::operator= ( const GraphicSettings & g)
inline

Definition at line 34 of file ListItemSettings.h.

◆ setRowHeight()

void ml::ListItemSettings::setRowHeight ( float h)
inline

Definition at line 42 of file ListItemSettings.h.

◆ setSlotGap()

void ml::ListItemSettings::setSlotGap ( float g)
inline

Definition at line 43 of file ListItemSettings.h.

Member Data Documentation

◆ rowHeight

float ml::ListItemSettings::rowHeight = 0.f

0 = auto-sized from content

Definition at line 26 of file ListItemSettings.h.

◆ slotGap

float ml::ListItemSettings::slotGap = 8.f

Pixel gap between start / content / end slots.

Definition at line 27 of file ListItemSettings.h.


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