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

Complete style descriptor for RadioGroup. More...

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

Inheritance diagram for ml::RadioGroupStyle:
[legend]

Public Member Functions

RadioGroupStyleapplyFrom (const Theme &t)
 Populate all fields from the global Theme token set.
sf::Color getBgColor () const
sf::Color getBgOutlineColor () const
float getBgOutlineThickness () const
float getBgRadius () const
sf::Color getDisabledColor () const
sf::Color getDisabledTextColor () const
sf::Color getDotColor () const
sf::Color getDotDisabledColor () const
float getDotScale () 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
sf::Color getLabelColor () const
sf::Color getLabelDisabledColor () const
float getLabelOffset () const
sf::Color getMutedColor () const
sf::Color getOutlineColor () const
float getOutlineThickness () const
float getPadding () const
float getRadius () const
sf::Color getRingColor () const
sf::Color getRingDisabledColor () const
sf::Color getRingHoverColor () const
sf::Color getRingSelectedColor () const
float getRingThickness () const
bool getShowBackground () const
float getSpacing () const
sf::Color getTextColor () const
RadioGroupStyleoperator= (const ControlSettings &c)
RadioGroupStyleoperator= (const ControlTheme &c)
RadioGroupStyleoperator= (const RadioButtonSettings &s)
RadioGroupStyleoperator= (const RadioButtonTheme &t)
RadioGroupStyleoperator= (const RadioGroupSettings &s)
RadioGroupStyleoperator= (const RadioGroupTheme &t)
void setBgColor (const sf::Color &c)
void setBgOutlineColor (const sf::Color &c)
void setBgOutlineThickness (float t)
void setBgRadius (float r)
void setDisabledColor (const sf::Color &c)
void setDisabledTextColor (const sf::Color &c)
void setDotColor (const sf::Color &c)
void setDotDisabledColor (const sf::Color &c)
void setDotScale (float s)
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 setLabelColor (const sf::Color &c)
void setLabelDisabledColor (const sf::Color &c)
void setLabelOffset (float o)
void setMutedColor (const sf::Color &c)
void setOutlineColor (const sf::Color &c)
void setOutlineThickness (float t)
void setPadding (float p)
void setRadius (float r)
void setRingColor (const sf::Color &c)
void setRingDisabledColor (const sf::Color &c)
void setRingHoverColor (const sf::Color &c)
void setRingSelectedColor (const sf::Color &c)
void setRingThickness (float t)
void setShowBackground (bool b)
void setSpacing (float s)
void setTextColor (const sf::Color &c)

Public Attributes

sf::Color bgColor = sf::Color::Transparent
sf::Color bgOutlineColor = sf::Color::Transparent
float bgOutlineThickness = 0.f
float bgRadius = 0.f
sf::Color disabledColor = sf::Color(60, 60, 60)
sf::Color disabledTextColor = sf::Color(120, 120, 120)
sf::Color dotColor = sf::Color(70, 130, 230)
sf::Color dotDisabledColor = sf::Color(200, 200, 200)
float dotScale = 0.5f
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)
sf::Color labelColor = sf::Color::White
sf::Color labelDisabledColor = sf::Color(160, 160, 160)
float labelOffset = 8.f
sf::Color mutedColor = sf::Color(120, 120, 120)
sf::Color outlineColor = sf::Color(100, 100, 100)
float outlineThickness = 1.5f
float padding = 8.f
float radius = 8.f
sf::Color ringColor = sf::Color(120, 120, 120)
sf::Color ringDisabledColor = sf::Color(180, 180, 180)
sf::Color ringHoverColor = sf::Color(80, 80, 80)
sf::Color ringSelectedColor = sf::Color(70, 130, 230)
float ringThickness = 2.f
bool showBackground = false
float spacing = 28.f
sf::Color textColor = sf::Color::White

Detailed Description

Complete style descriptor for RadioGroup.

See also
RadioGroupSettings, RadioGroupTheme, RadioGroup

Definition at line 46 of file RadioButtonStyle.h.

Member Function Documentation

◆ applyFrom()

RadioGroupStyle & ml::RadioGroupStyle::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::RadioButtonTheme.

Definition at line 66 of file RadioButtonStyle.h.

◆ getBgColor()

sf::Color ml::RadioGroupTheme::getBgColor ( ) const
inlinenodiscardinherited

Definition at line 51 of file RadioGroupTheme.h.

◆ getBgOutlineColor()

sf::Color ml::RadioGroupTheme::getBgOutlineColor ( ) const
inlinenodiscardinherited

Definition at line 52 of file RadioGroupTheme.h.

◆ getBgOutlineThickness()

float ml::RadioGroupSettings::getBgOutlineThickness ( ) const
inlinenodiscardinherited

Definition at line 48 of file RadioGroupSettings.h.

◆ getBgRadius()

float ml::RadioGroupSettings::getBgRadius ( ) const
inlinenodiscardinherited

Definition at line 47 of file RadioGroupSettings.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.

◆ getDotColor()

sf::Color ml::RadioButtonTheme::getDotColor ( ) const
inlinenodiscardinherited

Definition at line 64 of file RadioButtonTheme.h.

◆ getDotDisabledColor()

sf::Color ml::RadioButtonTheme::getDotDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 66 of file RadioButtonTheme.h.

◆ getDotScale()

float ml::RadioButtonSettings::getDotScale ( ) const
inlinenodiscardinherited

Definition at line 38 of file RadioButtonSettings.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.

◆ getLabelColor()

sf::Color ml::RadioButtonTheme::getLabelColor ( ) const
inlinenodiscardinherited

Definition at line 67 of file RadioButtonTheme.h.

◆ getLabelDisabledColor()

sf::Color ml::RadioButtonTheme::getLabelDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 68 of file RadioButtonTheme.h.

◆ getLabelOffset()

float ml::RadioButtonSettings::getLabelOffset ( ) const
inlinenodiscardinherited

Definition at line 39 of file RadioButtonSettings.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.

◆ getRadius()

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

Definition at line 70 of file GraphicTheme.h.

◆ getRingColor()

sf::Color ml::RadioButtonTheme::getRingColor ( ) const
inlinenodiscardinherited

Definition at line 61 of file RadioButtonTheme.h.

◆ getRingDisabledColor()

sf::Color ml::RadioButtonTheme::getRingDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 65 of file RadioButtonTheme.h.

◆ getRingHoverColor()

sf::Color ml::RadioButtonTheme::getRingHoverColor ( ) const
inlinenodiscardinherited

Definition at line 62 of file RadioButtonTheme.h.

◆ getRingSelectedColor()

sf::Color ml::RadioButtonTheme::getRingSelectedColor ( ) const
inlinenodiscardinherited

Definition at line 63 of file RadioButtonTheme.h.

◆ getRingThickness()

float ml::RadioButtonTheme::getRingThickness ( ) const
inlinenodiscardinherited

Definition at line 69 of file RadioButtonTheme.h.

◆ getShowBackground()

bool ml::RadioGroupSettings::getShowBackground ( ) const
inlinenodiscardinherited

Definition at line 49 of file RadioGroupSettings.h.

◆ getSpacing()

float ml::RadioGroupSettings::getSpacing ( ) const
inlinenodiscardinherited

Definition at line 46 of file RadioGroupSettings.h.

◆ getTextColor()

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

Definition at line 77 of file ControlTheme.h.

◆ operator=() [1/6]

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

Definition at line 63 of file RadioButtonStyle.h.

◆ operator=() [2/6]

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

Definition at line 60 of file RadioButtonStyle.h.

◆ operator=() [3/6]

RadioGroupStyle & ml::RadioGroupStyle::operator= ( const RadioButtonSettings & s)
inline

Definition at line 54 of file RadioButtonStyle.h.

◆ operator=() [4/6]

RadioGroupStyle & ml::RadioGroupStyle::operator= ( const RadioButtonTheme & t)
inline

Definition at line 57 of file RadioButtonStyle.h.

◆ operator=() [5/6]

RadioGroupStyle & ml::RadioGroupStyle::operator= ( const RadioGroupSettings & s)
inline

Definition at line 48 of file RadioButtonStyle.h.

◆ operator=() [6/6]

RadioGroupStyle & ml::RadioGroupStyle::operator= ( const RadioGroupTheme & t)
inline

Definition at line 51 of file RadioButtonStyle.h.

◆ setBgColor()

void ml::RadioGroupTheme::setBgColor ( const sf::Color & c)
inlineinherited

Definition at line 54 of file RadioGroupTheme.h.

◆ setBgOutlineColor()

void ml::RadioGroupTheme::setBgOutlineColor ( const sf::Color & c)
inlineinherited

Definition at line 55 of file RadioGroupTheme.h.

◆ setBgOutlineThickness()

void ml::RadioGroupSettings::setBgOutlineThickness ( float t)
inlineinherited

Definition at line 53 of file RadioGroupSettings.h.

◆ setBgRadius()

void ml::RadioGroupSettings::setBgRadius ( float r)
inlineinherited

Definition at line 52 of file RadioGroupSettings.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.

◆ setDotColor()

void ml::RadioButtonTheme::setDotColor ( const sf::Color & c)
inlineinherited

Definition at line 74 of file RadioButtonTheme.h.

◆ setDotDisabledColor()

void ml::RadioButtonTheme::setDotDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 76 of file RadioButtonTheme.h.

◆ setDotScale()

void ml::RadioButtonSettings::setDotScale ( float s)
inlineinherited

Definition at line 41 of file RadioButtonSettings.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.

◆ setLabelColor()

void ml::RadioButtonTheme::setLabelColor ( const sf::Color & c)
inlineinherited

Definition at line 77 of file RadioButtonTheme.h.

◆ setLabelDisabledColor()

void ml::RadioButtonTheme::setLabelDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 78 of file RadioButtonTheme.h.

◆ setLabelOffset()

void ml::RadioButtonSettings::setLabelOffset ( float o)
inlineinherited

Definition at line 42 of file RadioButtonSettings.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.

◆ setRadius()

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

Definition at line 75 of file GraphicTheme.h.

◆ setRingColor()

void ml::RadioButtonTheme::setRingColor ( const sf::Color & c)
inlineinherited

Definition at line 71 of file RadioButtonTheme.h.

◆ setRingDisabledColor()

void ml::RadioButtonTheme::setRingDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 75 of file RadioButtonTheme.h.

◆ setRingHoverColor()

void ml::RadioButtonTheme::setRingHoverColor ( const sf::Color & c)
inlineinherited

Definition at line 72 of file RadioButtonTheme.h.

◆ setRingSelectedColor()

void ml::RadioButtonTheme::setRingSelectedColor ( const sf::Color & c)
inlineinherited

Definition at line 73 of file RadioButtonTheme.h.

◆ setRingThickness()

void ml::RadioButtonTheme::setRingThickness ( float t)
inlineinherited

Definition at line 79 of file RadioButtonTheme.h.

◆ setShowBackground()

void ml::RadioGroupSettings::setShowBackground ( bool b)
inlineinherited

Definition at line 54 of file RadioGroupSettings.h.

◆ setSpacing()

void ml::RadioGroupSettings::setSpacing ( float s)
inlineinherited

Definition at line 51 of file RadioGroupSettings.h.

◆ setTextColor()

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

Definition at line 89 of file ControlTheme.h.

Member Data Documentation

◆ bgColor

sf::Color ml::RadioGroupTheme::bgColor = sf::Color::Transparent
inherited

Definition at line 25 of file RadioGroupTheme.h.

◆ bgOutlineColor

sf::Color ml::RadioGroupTheme::bgOutlineColor = sf::Color::Transparent
inherited

Definition at line 26 of file RadioGroupTheme.h.

◆ bgOutlineThickness

float ml::RadioGroupSettings::bgOutlineThickness = 0.f
inherited

Definition at line 30 of file RadioGroupSettings.h.

◆ bgRadius

float ml::RadioGroupSettings::bgRadius = 0.f
inherited

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

◆ dotColor

sf::Color ml::RadioButtonTheme::dotColor = sf::Color(70, 130, 230)
inherited

Definition at line 28 of file RadioButtonTheme.h.

◆ dotDisabledColor

sf::Color ml::RadioButtonTheme::dotDisabledColor = sf::Color(200, 200, 200)
inherited

Definition at line 30 of file RadioButtonTheme.h.

◆ dotScale

float ml::RadioButtonSettings::dotScale = 0.5f
inherited

Definition at line 25 of file RadioButtonSettings.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.

◆ labelColor

sf::Color ml::RadioButtonTheme::labelColor = sf::Color::White
inherited

Definition at line 31 of file RadioButtonTheme.h.

◆ labelDisabledColor

sf::Color ml::RadioButtonTheme::labelDisabledColor = sf::Color(160, 160, 160)
inherited

Definition at line 32 of file RadioButtonTheme.h.

◆ labelOffset

float ml::RadioButtonSettings::labelOffset = 8.f
inherited

Definition at line 26 of file RadioButtonSettings.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.

◆ radius

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

Definition at line 46 of file GraphicTheme.h.

◆ ringColor

sf::Color ml::RadioButtonTheme::ringColor = sf::Color(120, 120, 120)
inherited

Definition at line 25 of file RadioButtonTheme.h.

◆ ringDisabledColor

sf::Color ml::RadioButtonTheme::ringDisabledColor = sf::Color(180, 180, 180)
inherited

Definition at line 29 of file RadioButtonTheme.h.

◆ ringHoverColor

sf::Color ml::RadioButtonTheme::ringHoverColor = sf::Color(80, 80, 80)
inherited

Definition at line 26 of file RadioButtonTheme.h.

◆ ringSelectedColor

sf::Color ml::RadioButtonTheme::ringSelectedColor = sf::Color(70, 130, 230)
inherited

Definition at line 27 of file RadioButtonTheme.h.

◆ ringThickness

float ml::RadioButtonTheme::ringThickness = 2.f
inherited

Definition at line 33 of file RadioButtonTheme.h.

◆ showBackground

bool ml::RadioGroupSettings::showBackground = false
inherited

Definition at line 31 of file RadioGroupSettings.h.

◆ spacing

float ml::RadioGroupSettings::spacing = 28.f
inherited

Definition at line 28 of file RadioGroupSettings.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: