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

Scrollbar color tokens for TextArea. More...

#include <Malena/Traits/Theme/TextAreaTheme.h>

Inheritance diagram for ml::TextAreaTheme:
[legend]

Public Member Functions

TextAreaThemeapplyFrom (const Theme &t)
sf::Color getScrollBarColor () const
sf::Color getScrollBarTrackColor () const
float getScrollBarWidth () const
void setScrollBarColor (const sf::Color &c)
void setScrollBarTrackColor (const sf::Color &c)
void setScrollBarWidth (float w)

Public Attributes

sf::Color scrollBarColor = sf::Color(100, 100, 100)
sf::Color scrollBarTrackColor = sf::Color(50, 50, 50)
float scrollBarWidth = 8.f

Detailed Description

Scrollbar color tokens for TextArea.

Intentionally does NOT inherit TextInputThemeTextArea already receives those fields through TextInput. Keeping this struct standalone avoids the diamond inheritance that would otherwise occur:

TextAreaTextInputTextInputThemeInputThemeControlTheme TextAreaTextAreaTheme → (standalone — no shared base)

See also
TextInputTheme, TextInputSettings, TextAreaStyle, TextArea

Definition at line 29 of file TextAreaTheme.h.

Member Function Documentation

◆ applyFrom()

TextAreaTheme & ml::TextAreaTheme::applyFrom ( const Theme & t)
inline

Definition at line 37 of file TextAreaTheme.h.

◆ getScrollBarColor()

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

Definition at line 46 of file TextAreaTheme.h.

◆ getScrollBarTrackColor()

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

Definition at line 47 of file TextAreaTheme.h.

◆ getScrollBarWidth()

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

Definition at line 48 of file TextAreaTheme.h.

◆ setScrollBarColor()

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

Definition at line 50 of file TextAreaTheme.h.

◆ setScrollBarTrackColor()

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

Definition at line 51 of file TextAreaTheme.h.

◆ setScrollBarWidth()

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

Definition at line 52 of file TextAreaTheme.h.

Member Data Documentation

◆ scrollBarColor

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

Definition at line 31 of file TextAreaTheme.h.

◆ scrollBarTrackColor

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

Definition at line 32 of file TextAreaTheme.h.

◆ scrollBarWidth

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

Definition at line 33 of file TextAreaTheme.h.


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