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

Complete style descriptor for TextArea. More...

#include <Malena/Traits/Style/TextInputStyle.h>

Inheritance diagram for ml::TextAreaStyle:
[legend]

Public Member Functions

TextAreaStyleapplyFrom (const Theme &t)
 Populate all fields from the global Theme token set.
sf::Color getBgDisabled () const
sf::Color getBgFocused () const
sf::Color getBgIdle () const
sf::Color getBorderDisabled () const
sf::Color getBorderError () const
sf::Color getBorderFocused () const
sf::Color getBorderIdle () const
float getBorderThickness () const
sf::Color getCursorColor () const
sf::Color getDisabledColor () const
sf::Color getDisabledTextColor () const
sf::Color getErrorColor () const
sf::Color getFillColor () const
sf::Color getFocusColor () const
const sf::FontgetFont () const
unsigned int getFontSize () const
unsigned int getFontSizeSmall () const
sf::Color getHoverColor () const
std::size_t getMaxLength () const
sf::Color getMutedColor () const
sf::Color getOutlineColor () const
float getOutlineThickness () const
float getPadding () const
char32_t getPasswordChar () const
sf::Color getPlaceholderColor () const
float getRadius () const
sf::Color getScrollBarColor () const
sf::Color getScrollBarTrackColor () const
float getScrollBarWidth () const
sf::Color getSelectionColor () const
sf::Vector2f getSize () const
sf::Color getTextColor () const
bool isPasswordMode () const
TextAreaStyleoperator= (const ControlSettings &c)
TextAreaStyleoperator= (const ControlTheme &c)
TextAreaStyleoperator= (const InputSettings &i)
TextAreaStyleoperator= (const InputTheme &i)
TextAreaStyleoperator= (const TextAreaTheme &t)
TextAreaStyleoperator= (const TextInputSettings &s)
TextAreaStyleoperator= (const TextInputTheme &t)
void setBgDisabled (const sf::Color &c)
void setBgFocused (const sf::Color &c)
void setBgIdle (const sf::Color &c)
void setBorderDisabled (const sf::Color &c)
void setBorderError (const sf::Color &c)
void setBorderFocused (const sf::Color &c)
void setBorderIdle (const sf::Color &c)
void setBorderThickness (float t)
void setCursorColor (const sf::Color &c)
void setDisabledColor (const sf::Color &c)
void setDisabledTextColor (const sf::Color &c)
void setErrorColor (const sf::Color &c)
void setFillColor (const sf::Color &c)
void setFocusColor (const sf::Color &c)
void setFont (const sf::Font &&)=delete
void setFont (const sf::Font &f)
void setFontSize (unsigned int s)
void setFontSizeSmall (unsigned int s)
void setHoverColor (const sf::Color &c)
void setMaxLength (std::size_t n)
void setMutedColor (const sf::Color &c)
void setOutlineColor (const sf::Color &c)
void setOutlineThickness (float t)
void setPadding (float p)
void setPasswordChar (char32_t c)
void setPasswordMode (bool b)
void setPlaceholderColor (const sf::Color &c)
void setRadius (float r)
void setScrollBarColor (const sf::Color &c)
void setScrollBarTrackColor (const sf::Color &c)
void setScrollBarWidth (float w)
void setSelectionColor (const sf::Color &c)
void setSize (const sf::Vector2f &s)
void setTextColor (const sf::Color &c)

Public Attributes

sf::Color bgDisabled = sf::Color(30, 30, 30)
sf::Color bgFocused = sf::Color(50, 50, 50)
sf::Color bgIdle = sf::Color(40, 40, 40)
sf::Color borderDisabled = sf::Color(60, 60, 60)
sf::Color borderError = sf::Color(220, 70, 70)
sf::Color borderFocused = sf::Color(70, 130, 230)
sf::Color borderIdle = sf::Color(100, 100, 100)
float borderThickness = 1.5f
sf::Color cursorColor = sf::Color::White
sf::Color disabledColor = sf::Color(60, 60, 60)
sf::Color disabledTextColor = sf::Color(120, 120, 120)
sf::Color errorColor = sf::Color(220, 70, 70)
sf::Color fillColor = sf::Color(40, 40, 40)
sf::Color focusColor = sf::Color(100, 60, 200)
const sf::Fontfont = &FontManager<>::getDefault()
unsigned int fontSize = 14
unsigned int fontSizeSmall = 11
sf::Color hoverColor = sf::Color(70, 130, 230)
std::size_t maxLength = 0
 0 = unlimited
sf::Color mutedColor = sf::Color(120, 120, 120)
sf::Color outlineColor = sf::Color(100, 100, 100)
float outlineThickness = 1.5f
float padding = 8.f
char32_t passwordChar = U'\u2022'
 Bullet •
bool passwordMode = false
sf::Color placeholderColor = sf::Color(120, 120, 120)
float radius = 8.f
sf::Color scrollBarColor = sf::Color(100, 100, 100)
sf::Color scrollBarTrackColor = sf::Color(50, 50, 50)
float scrollBarWidth = 8.f
sf::Color selectionColor = sf::Color(70, 130, 230, 120)
sf::Vector2f size = {200.f, 36.f}
sf::Color textColor = sf::Color::White

Detailed Description

Complete style descriptor for TextArea.

Combines TextInputSettings (geometry), TextInputTheme (text/cursor/ border colors), and TextAreaTheme (scrollbar colors) into one struct.

Note: TextAreaTheme is standalone (no base classes) to avoid diamond inheritance when used in the TextArea component hierarchy.

See also
TextInputSettings, TextInputTheme, TextAreaTheme, TextArea

Definition at line 58 of file TextInputStyle.h.

Member Function Documentation

◆ applyFrom()

TextAreaStyle & ml::TextAreaStyle::applyFrom ( const Theme & t)
inlinevirtual

Populate all fields from the global Theme token set.

Subclasses call GraphicTheme::applyFrom(t) first, then apply their own token mappings.

Reimplemented from ml::InputTheme.

Definition at line 81 of file TextInputStyle.h.

◆ getBgDisabled()

sf::Color ml::InputTheme::getBgDisabled ( ) const
inlinenodiscardinherited

Definition at line 68 of file InputTheme.h.

◆ getBgFocused()

sf::Color ml::InputTheme::getBgFocused ( ) const
inlinenodiscardinherited

Definition at line 67 of file InputTheme.h.

◆ getBgIdle()

sf::Color ml::InputTheme::getBgIdle ( ) const
inlinenodiscardinherited

Definition at line 66 of file InputTheme.h.

◆ getBorderDisabled()

sf::Color ml::InputTheme::getBorderDisabled ( ) const
inlinenodiscardinherited

Definition at line 72 of file InputTheme.h.

◆ getBorderError()

sf::Color ml::InputTheme::getBorderError ( ) const
inlinenodiscardinherited

Definition at line 71 of file InputTheme.h.

◆ getBorderFocused()

sf::Color ml::InputTheme::getBorderFocused ( ) const
inlinenodiscardinherited

Definition at line 70 of file InputTheme.h.

◆ getBorderIdle()

sf::Color ml::InputTheme::getBorderIdle ( ) const
inlinenodiscardinherited

Definition at line 69 of file InputTheme.h.

◆ getBorderThickness()

float ml::InputTheme::getBorderThickness ( ) const
inlinenodiscardinherited

Definition at line 74 of file InputTheme.h.

◆ getCursorColor()

sf::Color ml::TextInputTheme::getCursorColor ( ) const
inlinenodiscardinherited

Definition at line 52 of file TextInputTheme.h.

◆ getDisabledColor()

sf::Color ml::ControlTheme::getDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 75 of file ControlTheme.h.

◆ getDisabledTextColor()

sf::Color ml::ControlTheme::getDisabledTextColor ( ) const
inlinenodiscardinherited

Definition at line 76 of file ControlTheme.h.

◆ getErrorColor()

sf::Color ml::ControlTheme::getErrorColor ( ) const
inlinenodiscardinherited

Definition at line 74 of file ControlTheme.h.

◆ getFillColor()

sf::Color ml::GraphicTheme::getFillColor ( ) const
inlinenodiscardinherited

Definition at line 67 of file GraphicTheme.h.

◆ getFocusColor()

sf::Color ml::ControlTheme::getFocusColor ( ) const
inlinenodiscardinherited

Definition at line 73 of file ControlTheme.h.

◆ getFont()

const sf::Font * ml::ControlTheme::getFont ( ) const
inlinenodiscardinherited

Definition at line 80 of file ControlTheme.h.

◆ getFontSize()

unsigned int ml::ControlTheme::getFontSize ( ) const
inlinenodiscardinherited

Definition at line 81 of file ControlTheme.h.

◆ getFontSizeSmall()

unsigned int ml::ControlTheme::getFontSizeSmall ( ) const
inlinenodiscardinherited

Definition at line 82 of file ControlTheme.h.

◆ getHoverColor()

sf::Color ml::ControlTheme::getHoverColor ( ) const
inlinenodiscardinherited

Definition at line 72 of file ControlTheme.h.

◆ getMaxLength()

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

Definition at line 44 of file InputSettings.h.

◆ getMutedColor()

sf::Color ml::ControlTheme::getMutedColor ( ) const
inlinenodiscardinherited

Definition at line 78 of file ControlTheme.h.

◆ getOutlineColor()

sf::Color ml::GraphicTheme::getOutlineColor ( ) const
inlinenodiscardinherited

Definition at line 68 of file GraphicTheme.h.

◆ getOutlineThickness()

float ml::GraphicTheme::getOutlineThickness ( ) const
inlinenodiscardinherited

Definition at line 69 of file GraphicTheme.h.

◆ getPadding()

float ml::ControlTheme::getPadding ( ) const
inlinenodiscardinherited

Definition at line 79 of file ControlTheme.h.

◆ getPasswordChar()

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

Definition at line 46 of file InputSettings.h.

◆ getPlaceholderColor()

sf::Color ml::InputTheme::getPlaceholderColor ( ) const
inlinenodiscardinherited

Definition at line 73 of file InputTheme.h.

◆ getRadius()

float ml::GraphicTheme::getRadius ( ) const
inlinenodiscardinherited

Definition at line 70 of file GraphicTheme.h.

◆ getScrollBarColor()

sf::Color ml::TextAreaTheme::getScrollBarColor ( ) const
inlinenodiscardinherited

Definition at line 46 of file TextAreaTheme.h.

◆ getScrollBarTrackColor()

sf::Color ml::TextAreaTheme::getScrollBarTrackColor ( ) const
inlinenodiscardinherited

Definition at line 47 of file TextAreaTheme.h.

◆ getScrollBarWidth()

float ml::TextAreaTheme::getScrollBarWidth ( ) const
inlinenodiscardinherited

Definition at line 48 of file TextAreaTheme.h.

◆ getSelectionColor()

sf::Color ml::TextInputTheme::getSelectionColor ( ) const
inlinenodiscardinherited

Definition at line 51 of file TextInputTheme.h.

◆ getSize()

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

Definition at line 43 of file InputSettings.h.

◆ getTextColor()

sf::Color ml::ControlTheme::getTextColor ( ) const
inlinenodiscardinherited

Definition at line 77 of file ControlTheme.h.

◆ isPasswordMode()

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

Definition at line 45 of file InputSettings.h.

◆ operator=() [1/7]

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

Definition at line 78 of file TextInputStyle.h.

◆ operator=() [2/7]

TextAreaStyle & ml::TextAreaStyle::operator= ( const ControlTheme & c)
inline

Definition at line 75 of file TextInputStyle.h.

◆ operator=() [3/7]

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

Definition at line 72 of file TextInputStyle.h.

◆ operator=() [4/7]

TextAreaStyle & ml::TextAreaStyle::operator= ( const InputTheme & i)
inline

Definition at line 69 of file TextInputStyle.h.

◆ operator=() [5/7]

TextAreaStyle & ml::TextAreaStyle::operator= ( const TextAreaTheme & t)
inline

Definition at line 66 of file TextInputStyle.h.

◆ operator=() [6/7]

TextAreaStyle & ml::TextAreaStyle::operator= ( const TextInputSettings & s)
inline

Definition at line 60 of file TextInputStyle.h.

◆ operator=() [7/7]

TextAreaStyle & ml::TextAreaStyle::operator= ( const TextInputTheme & t)
inline

Definition at line 63 of file TextInputStyle.h.

◆ setBgDisabled()

void ml::InputTheme::setBgDisabled ( const sf::Color & c)
inlineinherited

Definition at line 78 of file InputTheme.h.

◆ setBgFocused()

void ml::InputTheme::setBgFocused ( const sf::Color & c)
inlineinherited

Definition at line 77 of file InputTheme.h.

◆ setBgIdle()

void ml::InputTheme::setBgIdle ( const sf::Color & c)
inlineinherited

Definition at line 76 of file InputTheme.h.

◆ setBorderDisabled()

void ml::InputTheme::setBorderDisabled ( const sf::Color & c)
inlineinherited

Definition at line 82 of file InputTheme.h.

◆ setBorderError()

void ml::InputTheme::setBorderError ( const sf::Color & c)
inlineinherited

Definition at line 81 of file InputTheme.h.

◆ setBorderFocused()

void ml::InputTheme::setBorderFocused ( const sf::Color & c)
inlineinherited

Definition at line 80 of file InputTheme.h.

◆ setBorderIdle()

void ml::InputTheme::setBorderIdle ( const sf::Color & c)
inlineinherited

Definition at line 79 of file InputTheme.h.

◆ setBorderThickness()

void ml::InputTheme::setBorderThickness ( float t)
inlineinherited

Definition at line 84 of file InputTheme.h.

◆ setCursorColor()

void ml::TextInputTheme::setCursorColor ( const sf::Color & c)
inlineinherited

Definition at line 55 of file TextInputTheme.h.

◆ setDisabledColor()

void ml::ControlTheme::setDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 87 of file ControlTheme.h.

◆ setDisabledTextColor()

void ml::ControlTheme::setDisabledTextColor ( const sf::Color & c)
inlineinherited

Definition at line 88 of file ControlTheme.h.

◆ setErrorColor()

void ml::ControlTheme::setErrorColor ( const sf::Color & c)
inlineinherited

Definition at line 86 of file ControlTheme.h.

◆ setFillColor()

void ml::GraphicTheme::setFillColor ( const sf::Color & c)
inlineinherited

Definition at line 72 of file GraphicTheme.h.

◆ setFocusColor()

void ml::ControlTheme::setFocusColor ( const sf::Color & c)
inlineinherited

Definition at line 85 of file ControlTheme.h.

◆ setFont() [1/2]

void ml::ControlTheme::setFont ( const sf::Font && )
deleteinherited

◆ setFont() [2/2]

void ml::ControlTheme::setFont ( const sf::Font & f)
inlineinherited

Definition at line 92 of file ControlTheme.h.

◆ setFontSize()

void ml::ControlTheme::setFontSize ( unsigned int s)
inlineinherited

Definition at line 94 of file ControlTheme.h.

◆ setFontSizeSmall()

void ml::ControlTheme::setFontSizeSmall ( unsigned int s)
inlineinherited

Definition at line 95 of file ControlTheme.h.

◆ setHoverColor()

void ml::ControlTheme::setHoverColor ( const sf::Color & c)
inlineinherited

Definition at line 84 of file ControlTheme.h.

◆ setMaxLength()

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

Definition at line 49 of file InputSettings.h.

◆ setMutedColor()

void ml::ControlTheme::setMutedColor ( const sf::Color & c)
inlineinherited

Definition at line 90 of file ControlTheme.h.

◆ setOutlineColor()

void ml::GraphicTheme::setOutlineColor ( const sf::Color & c)
inlineinherited

Definition at line 73 of file GraphicTheme.h.

◆ setOutlineThickness()

void ml::GraphicTheme::setOutlineThickness ( float t)
inlineinherited

Definition at line 74 of file GraphicTheme.h.

◆ setPadding()

void ml::ControlTheme::setPadding ( float p)
inlineinherited

Definition at line 91 of file ControlTheme.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.

◆ setPlaceholderColor()

void ml::InputTheme::setPlaceholderColor ( const sf::Color & c)
inlineinherited

Definition at line 83 of file InputTheme.h.

◆ setRadius()

void ml::GraphicTheme::setRadius ( float r)
inlineinherited

Definition at line 75 of file GraphicTheme.h.

◆ setScrollBarColor()

void ml::TextAreaTheme::setScrollBarColor ( const sf::Color & c)
inlineinherited

Definition at line 50 of file TextAreaTheme.h.

◆ setScrollBarTrackColor()

void ml::TextAreaTheme::setScrollBarTrackColor ( const sf::Color & c)
inlineinherited

Definition at line 51 of file TextAreaTheme.h.

◆ setScrollBarWidth()

void ml::TextAreaTheme::setScrollBarWidth ( float w)
inlineinherited

Definition at line 52 of file TextAreaTheme.h.

◆ setSelectionColor()

void ml::TextInputTheme::setSelectionColor ( const sf::Color & c)
inlineinherited

Definition at line 54 of file TextInputTheme.h.

◆ setSize()

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

Definition at line 48 of file InputSettings.h.

◆ setTextColor()

void ml::ControlTheme::setTextColor ( const sf::Color & c)
inlineinherited

Definition at line 89 of file ControlTheme.h.

Member Data Documentation

◆ bgDisabled

sf::Color ml::InputTheme::bgDisabled = sf::Color(30, 30, 30)
inherited

Definition at line 28 of file InputTheme.h.

◆ bgFocused

sf::Color ml::InputTheme::bgFocused = sf::Color(50, 50, 50)
inherited

Definition at line 27 of file InputTheme.h.

◆ bgIdle

sf::Color ml::InputTheme::bgIdle = sf::Color(40, 40, 40)
inherited

Definition at line 26 of file InputTheme.h.

◆ borderDisabled

sf::Color ml::InputTheme::borderDisabled = sf::Color(60, 60, 60)
inherited

Definition at line 32 of file InputTheme.h.

◆ borderError

sf::Color ml::InputTheme::borderError = sf::Color(220, 70, 70)
inherited

Definition at line 31 of file InputTheme.h.

◆ borderFocused

sf::Color ml::InputTheme::borderFocused = sf::Color(70, 130, 230)
inherited

Definition at line 30 of file InputTheme.h.

◆ borderIdle

sf::Color ml::InputTheme::borderIdle = sf::Color(100, 100, 100)
inherited

Definition at line 29 of file InputTheme.h.

◆ borderThickness

float ml::InputTheme::borderThickness = 1.5f
inherited

Definition at line 34 of file InputTheme.h.

◆ cursorColor

sf::Color ml::TextInputTheme::cursorColor = sf::Color::White
inherited

Definition at line 26 of file TextInputTheme.h.

◆ disabledColor

sf::Color ml::ControlTheme::disabledColor = sf::Color(60, 60, 60)
inherited

Definition at line 33 of file ControlTheme.h.

◆ disabledTextColor

sf::Color ml::ControlTheme::disabledTextColor = sf::Color(120, 120, 120)
inherited

Definition at line 34 of file ControlTheme.h.

◆ errorColor

sf::Color ml::ControlTheme::errorColor = sf::Color(220, 70, 70)
inherited

Definition at line 32 of file ControlTheme.h.

◆ fillColor

sf::Color ml::GraphicTheme::fillColor = sf::Color(40, 40, 40)
inherited

Definition at line 43 of file GraphicTheme.h.

◆ focusColor

sf::Color ml::ControlTheme::focusColor = sf::Color(100, 60, 200)
inherited

Definition at line 31 of file ControlTheme.h.

◆ font

const sf::Font* ml::ControlTheme::font = &FontManager<>::getDefault()
inherited

Definition at line 39 of file ControlTheme.h.

◆ fontSize

unsigned int ml::ControlTheme::fontSize = 14
inherited

Definition at line 40 of file ControlTheme.h.

◆ fontSizeSmall

unsigned int ml::ControlTheme::fontSizeSmall = 11
inherited

Definition at line 41 of file ControlTheme.h.

◆ hoverColor

sf::Color ml::ControlTheme::hoverColor = sf::Color(70, 130, 230)
inherited

Definition at line 30 of file ControlTheme.h.

◆ maxLength

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

0 = unlimited

Definition at line 29 of file InputSettings.h.

◆ mutedColor

sf::Color ml::ControlTheme::mutedColor = sf::Color(120, 120, 120)
inherited

Definition at line 36 of file ControlTheme.h.

◆ outlineColor

sf::Color ml::GraphicTheme::outlineColor = sf::Color(100, 100, 100)
inherited

Definition at line 44 of file GraphicTheme.h.

◆ outlineThickness

float ml::GraphicTheme::outlineThickness = 1.5f
inherited

Definition at line 45 of file GraphicTheme.h.

◆ padding

float ml::ControlTheme::padding = 8.f
inherited

Definition at line 37 of file ControlTheme.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.

◆ placeholderColor

sf::Color ml::InputTheme::placeholderColor = sf::Color(120, 120, 120)
inherited

Definition at line 33 of file InputTheme.h.

◆ radius

float ml::GraphicTheme::radius = 8.f
inherited

Definition at line 46 of file GraphicTheme.h.

◆ scrollBarColor

sf::Color ml::TextAreaTheme::scrollBarColor = sf::Color(100, 100, 100)
inherited

Definition at line 31 of file TextAreaTheme.h.

◆ scrollBarTrackColor

sf::Color ml::TextAreaTheme::scrollBarTrackColor = sf::Color(50, 50, 50)
inherited

Definition at line 32 of file TextAreaTheme.h.

◆ scrollBarWidth

float ml::TextAreaTheme::scrollBarWidth = 8.f
inherited

Definition at line 33 of file TextAreaTheme.h.

◆ selectionColor

sf::Color ml::TextInputTheme::selectionColor = sf::Color(70, 130, 230, 120)
inherited

Definition at line 25 of file TextInputTheme.h.

◆ size

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

Definition at line 28 of file InputSettings.h.

◆ textColor

sf::Color ml::ControlTheme::textColor = sf::Color::White
inherited

Definition at line 35 of file ControlTheme.h.


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