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

Layout and behaviour settings shared by all input controls. More...

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

Inheritance diagram for ml::InputSettings:
[legend]

Public Member Functions

std::size_t getMaxLength () const
char32_t getPasswordChar () const
sf::Vector2f getSize () const
bool isPasswordMode () const
InputSettingsoperator= (const ControlSettings &c)
InputSettingsoperator= (const GraphicSettings &g)
void setMaxLength (std::size_t n)
void setPasswordChar (char32_t c)
void setPasswordMode (bool b)
void setSize (const sf::Vector2f &s)

Public Attributes

std::size_t maxLength = 0
 0 = unlimited
char32_t passwordChar = U'\u2022'
 Bullet •
bool passwordMode = false
sf::Vector2f size = {200.f, 36.f}

Detailed Description

Layout and behaviour settings shared by all input controls.

Base for TextInputSettings and SelectSettings. Colors live in InputTheme.

See also
ControlSettings, InputTheme, TextInputSettings, SelectSettings

Definition at line 26 of file InputSettings.h.

Member Function Documentation

◆ getMaxLength()

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

Definition at line 44 of file InputSettings.h.

◆ getPasswordChar()

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

Definition at line 46 of file InputSettings.h.

◆ getSize()

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

Definition at line 43 of file InputSettings.h.

◆ isPasswordMode()

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

Definition at line 45 of file InputSettings.h.

◆ operator=() [1/2]

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

Definition at line 35 of file InputSettings.h.

◆ operator=() [2/2]

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

Definition at line 38 of file InputSettings.h.

◆ setMaxLength()

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

Definition at line 49 of file InputSettings.h.

◆ setPasswordChar()

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

Definition at line 51 of file InputSettings.h.

◆ setPasswordMode()

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

Definition at line 50 of file InputSettings.h.

◆ setSize()

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

Definition at line 48 of file InputSettings.h.

Member Data Documentation

◆ maxLength

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

0 = unlimited

Definition at line 29 of file InputSettings.h.

◆ passwordChar

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

Bullet •

Definition at line 31 of file InputSettings.h.

◆ passwordMode

bool ml::InputSettings::passwordMode = false

Definition at line 30 of file InputSettings.h.

◆ size

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

Definition at line 28 of file InputSettings.h.


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