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

Layout and behaviour settings for List. More...

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

Inheritance diagram for ml::ListSettings:
[legend]

Public Member Functions

float getDividerThickness () const
float getIndent () const
bool getShowBackground () const
bool getShowDividers () const
ListSettingsoperator= (const ControlSettings &c)
ListSettingsoperator= (const GraphicSettings &g)
void setDividerThickness (float t)
void setIndent (float i)
void setShowBackground (bool b)
void setShowDividers (bool b)

Public Attributes

float dividerThickness = 1.f
float indent = 20.f
 Indentation added to nested Lists.
bool showBackground = false
bool showDividers = true

Detailed Description

Layout and behaviour settings for List.

Colors live in ListTheme.

See also
ControlSettings, ListTheme, ListStyle, List

Definition at line 23 of file ListSettings.h.

Member Function Documentation

◆ getDividerThickness()

float ml::ListSettings::getDividerThickness ( ) const
inlinenodiscard

Definition at line 42 of file ListSettings.h.

◆ getIndent()

float ml::ListSettings::getIndent ( ) const
inlinenodiscard

Definition at line 43 of file ListSettings.h.

◆ getShowBackground()

bool ml::ListSettings::getShowBackground ( ) const
inlinenodiscard

Definition at line 41 of file ListSettings.h.

◆ getShowDividers()

bool ml::ListSettings::getShowDividers ( ) const
inlinenodiscard

Definition at line 40 of file ListSettings.h.

◆ operator=() [1/2]

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

Definition at line 32 of file ListSettings.h.

◆ operator=() [2/2]

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

Definition at line 35 of file ListSettings.h.

◆ setDividerThickness()

void ml::ListSettings::setDividerThickness ( float t)
inline

Definition at line 47 of file ListSettings.h.

◆ setIndent()

void ml::ListSettings::setIndent ( float i)
inline

Definition at line 48 of file ListSettings.h.

◆ setShowBackground()

void ml::ListSettings::setShowBackground ( bool b)
inline

Definition at line 46 of file ListSettings.h.

◆ setShowDividers()

void ml::ListSettings::setShowDividers ( bool b)
inline

Definition at line 45 of file ListSettings.h.

Member Data Documentation

◆ dividerThickness

float ml::ListSettings::dividerThickness = 1.f

Definition at line 27 of file ListSettings.h.

◆ indent

float ml::ListSettings::indent = 20.f

Indentation added to nested Lists.

Definition at line 28 of file ListSettings.h.

◆ showBackground

bool ml::ListSettings::showBackground = false

Definition at line 26 of file ListSettings.h.

◆ showDividers

bool ml::ListSettings::showDividers = true

Definition at line 25 of file ListSettings.h.


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