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

Layout and behaviour settings for Select. More...

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

Inheritance diagram for ml::SelectSettings:
[legend]

Public Member Functions

unsigned int getDescCharSize () const
float getItemHeight () const
std::size_t getMaxLength () const
float getMaxVisibleItems () const
char32_t getPasswordChar () const
sf::Vector2f getSize () const
bool isPasswordMode () const
SelectSettingsoperator= (const ControlSettings &c)
SelectSettingsoperator= (const GraphicSettings &g)
SelectSettingsoperator= (const InputSettings &i)
void setDescCharSize (unsigned int s)
void setItemHeight (float h)
void setMaxLength (std::size_t n)
void setMaxVisibleItems (float n)
void setPasswordChar (char32_t c)
void setPasswordMode (bool b)
void setSize (const sf::Vector2f &s)

Public Attributes

unsigned int descCharSize = 11
float itemHeight = 40.f
std::size_t maxLength = 0
 0 = unlimited
float maxVisibleItems = 6.f
char32_t passwordChar = U'\u2022'
 Bullet •
bool passwordMode = false
sf::Vector2f size = {200.f, 36.f}

Detailed Description

Layout and behaviour settings for Select.

Extends InputSettings with dropdown-specific geometry. Colors live in SelectTheme.

See also
InputSettings, SelectTheme, SelectStyle, Select

Definition at line 24 of file SelectSettings.h.

Member Function Documentation

◆ getDescCharSize()

unsigned int ml::SelectSettings::getDescCharSize ( ) const
inlinenodiscard

Definition at line 45 of file SelectSettings.h.

◆ getItemHeight()

float ml::SelectSettings::getItemHeight ( ) const
inlinenodiscard

Definition at line 43 of file SelectSettings.h.

◆ getMaxLength()

std::size_t ml::InputSettings::getMaxLength ( ) const
inlinenodiscardinherited

Definition at line 44 of file InputSettings.h.

◆ getMaxVisibleItems()

float ml::SelectSettings::getMaxVisibleItems ( ) const
inlinenodiscard

Definition at line 44 of file SelectSettings.h.

◆ getPasswordChar()

char32_t ml::InputSettings::getPasswordChar ( ) const
inlinenodiscardinherited

Definition at line 46 of file InputSettings.h.

◆ getSize()

sf::Vector2f ml::InputSettings::getSize ( ) const
inlinenodiscardinherited

Definition at line 43 of file InputSettings.h.

◆ isPasswordMode()

bool ml::InputSettings::isPasswordMode ( ) const
inlinenodiscardinherited

Definition at line 45 of file InputSettings.h.

◆ operator=() [1/3]

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

Definition at line 35 of file SelectSettings.h.

◆ operator=() [2/3]

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

Definition at line 38 of file SelectSettings.h.

◆ operator=() [3/3]

SelectSettings & ml::SelectSettings::operator= ( const InputSettings & i)
inline

Definition at line 32 of file SelectSettings.h.

◆ setDescCharSize()

void ml::SelectSettings::setDescCharSize ( unsigned int s)
inline

Definition at line 49 of file SelectSettings.h.

◆ setItemHeight()

void ml::SelectSettings::setItemHeight ( float h)
inline

Definition at line 47 of file SelectSettings.h.

◆ setMaxLength()

void ml::InputSettings::setMaxLength ( std::size_t n)
inlineinherited

Definition at line 49 of file InputSettings.h.

◆ setMaxVisibleItems()

void ml::SelectSettings::setMaxVisibleItems ( float n)
inline

Definition at line 48 of file SelectSettings.h.

◆ setPasswordChar()

void ml::InputSettings::setPasswordChar ( char32_t c)
inlineinherited

Definition at line 51 of file InputSettings.h.

◆ setPasswordMode()

void ml::InputSettings::setPasswordMode ( bool b)
inlineinherited

Definition at line 50 of file InputSettings.h.

◆ setSize()

void ml::InputSettings::setSize ( const sf::Vector2f & s)
inlineinherited

Definition at line 48 of file InputSettings.h.

Member Data Documentation

◆ descCharSize

unsigned int ml::SelectSettings::descCharSize = 11

Definition at line 28 of file SelectSettings.h.

◆ itemHeight

float ml::SelectSettings::itemHeight = 40.f

Definition at line 26 of file SelectSettings.h.

◆ maxLength

std::size_t ml::InputSettings::maxLength = 0
inherited

0 = unlimited

Definition at line 29 of file InputSettings.h.

◆ maxVisibleItems

float ml::SelectSettings::maxVisibleItems = 6.f

Definition at line 27 of file SelectSettings.h.

◆ passwordChar

char32_t ml::InputSettings::passwordChar = U'\u2022'
inherited

Bullet •

Definition at line 31 of file InputSettings.h.

◆ passwordMode

bool ml::InputSettings::passwordMode = false
inherited

Definition at line 30 of file InputSettings.h.

◆ size

sf::Vector2f ml::InputSettings::size = {200.f, 36.f}
inherited

Definition at line 28 of file InputSettings.h.


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