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

Layout and behaviour settings for TextInput and TextArea. More...

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

Inheritance diagram for ml::TextInputSettings:
[legend]

Public Member Functions

std::size_t getMaxLength () const
char32_t getPasswordChar () const
sf::Vector2f getSize () const
bool isPasswordMode () const
TextInputSettingsoperator= (const ControlSettings &c)
TextInputSettingsoperator= (const GraphicSettings &g)
TextInputSettingsoperator= (const InputSettings &i)
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 for TextInput and TextArea.

No extra fields over InputSettings — exists for naming clarity and as a future extension point. Colors live in TextInputTheme.

See also
InputSettings, TextInputTheme, TextInputStyle, TextInput

Definition at line 24 of file TextInputSettings.h.

Member Function Documentation

◆ getMaxLength()

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

Definition at line 44 of file InputSettings.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]

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

Definition at line 31 of file TextInputSettings.h.

◆ operator=() [2/3]

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

Definition at line 34 of file TextInputSettings.h.

◆ operator=() [3/3]

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

Definition at line 28 of file TextInputSettings.h.

◆ setMaxLength()

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

Definition at line 49 of file InputSettings.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

◆ maxLength

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

0 = unlimited

Definition at line 29 of file InputSettings.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: