Loading...
Searching...
No Matches
ml::CheckboxGroupWith< MANIFEST > Class Template Reference

#include <Malena/Graphics/Controls/CheckboxGroup.h>

Inheritance diagram for ml::CheckboxGroupWith< MANIFEST >:
[legend]

Public Types

using Flag = CheckboxGroupManifest::Flag
using manifest_type
 The manifest type, used by GatherFlags and GatherStates to locate this class's flag and state declarations.

Public Member Functions

void add (Checkbox &checkbox)
void addOption (const std::string &label, bool checked=false)
CheckboxGroupThemeapplyFrom (const Theme &t) override
 Populate all fields from the global Theme token set.
template<typename S>
void applySettings (const S &s)
template<typename St>
void applyStyle (const St &s)
template<typename T>
void applyTheme (const T &t)
void check (std::size_t index)
void checkAll ()
 CheckboxGroup (const CheckboxGroup &)=delete
 CheckboxGroup (const sf::Font &font=FontManager<>::getDefault())
void clearOptions ()
sf::Color getBgColor () const
sf::Color getBgOutlineColor () const
float getBgOutlineThickness () const
float getBgRadius () const
sf::Color getBoxCheckedColor () const
sf::Color getBoxColor () const
sf::Color getBoxDisabledColor () const
sf::Color getBoxHoverColor () const
float getBoxRadius () const
float getBoxSize () const
sf::Color getCheckColor () const
sf::Color getCheckDisabledColor () const
std::vector< std::size_t > getCheckedIndices () const
std::vector< std::string > getCheckedLabels () 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::FloatRect getGlobalBounds () const override
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
sf::Vector2f getPosition () const override
float getRadius () const
bool getShowBackground () const
float getSpacing () const
std::enable_if_t<!std::is_void_v< T >, T > getState () const
 Return the current state value.
sf::Color getTextColor () const
bool isChecked (std::size_t index) const
bool isSettingsLocked () const
 Return true if applySettings() is currently blocked.
std::enable_if_t<!std::is_void_v< T >, bool > isState (T state) const
 Return true if currently in state.
bool isThemeLocked () const
 Return true if this component ignores theme changes.
void lockSettings ()
 Prevent applySettings() from taking effect.
void lockTheme ()
 Prevent automatic re-styling when the global theme changes.
void onSelectionChanged (std::function< void(const std::vector< std::string > &)> callback)
std::enable_if_t<!std::is_void_v< T > > onStateEnter (std::function< void(T)> callback)
 Register a callback invoked after each state transition.
std::enable_if_t<!std::is_void_v< T > > onStateExit (std::function< void(T)> callback)
 Register a callback invoked before each state transition.
std::size_t optionCount () const
void setBgColor (const sf::Color &c)
void setBgOutlineColor (const sf::Color &c)
void setBgOutlineThickness (float t)
void setBgRadius (float r)
void setBoxCheckedColor (const sf::Color &c)
void setBoxColor (const sf::Color &c)
void setBoxDisabledColor (const sf::Color &c)
void setBoxHoverColor (const sf::Color &c)
void setBoxRadius (float r)
void setBoxSize (float s)
void setCheckColor (const sf::Color &c)
void setCheckDisabledColor (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 setLabelColor (const sf::Color &c)
void setLabelDisabledColor (const sf::Color &c)
void setLabelOffset (float o)
void setMutedColor (const sf::Color &c)
void setOptionEnabled (std::size_t index, bool enabled)
void setOutlineColor (const sf::Color &c)
void setOutlineThickness (float t)
void setPadding (float p)
void setPosition (const sf::Vector2f &position) override
void setRadius (float r)
void setShowBackground (bool b)
void setSpacing (float s)
std::enable_if_t<!std::is_void_v< T > > setState (T newState)
 Transition to a new state.
void setTextColor (const sf::Color &c)
void uncheck (std::size_t index)
void uncheckAll ()
void unlockSettings ()
 Allow applySettings() to take effect again.
void unlockTheme ()
 Resume reacting to global theme changes.

Public Attributes

sf::Color bgColor = sf::Color::Transparent
sf::Color bgOutlineColor = sf::Color::Transparent
float bgOutlineThickness = 0.f
float bgRadius = 0.f
sf::Color boxCheckedColor = sf::Color(70, 130, 230)
sf::Color boxColor = sf::Color(60, 60, 60)
sf::Color boxDisabledColor = sf::Color(180, 180, 180)
sf::Color boxHoverColor = sf::Color(80, 80, 80)
float boxRadius = 2.f
float boxSize = 16.f
sf::Color checkColor = sf::Color::White
sf::Color checkDisabledColor = sf::Color(220, 220, 220)
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)
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(120, 120, 120)
float outlineThickness = 1.5f
float padding = 8.f
float radius = 8.f
bool showBackground = false
float spacing = 28.f
sf::Color textColor = sf::Color::White

Protected Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
void onThemeApplied (const Theme &theme) override
 Called by ThemeManager when the active theme changes.

Detailed Description

template<typename MANIFEST>
class ml::CheckboxGroupWith< MANIFEST >

Definition at line 144 of file CheckboxGroup.h.

Member Typedef Documentation

◆ Flag

Definition at line 51 of file CheckboxGroup.h.

◆ manifest_type

using ml::Customizable< MANIFEST >::manifest_type
inherited

The manifest type, used by GatherFlags and GatherStates to locate this class's flag and state declarations.

Definition at line 65 of file Customizable.h.

Member Function Documentation

◆ add()

void ml::CheckboxGroup::add ( Checkbox & checkbox)
inherited

◆ addOption()

void ml::CheckboxGroup::addOption ( const std::string & label,
bool checked = false )
inherited

◆ applyFrom()

CheckboxGroupTheme & ml::CheckboxGroupTheme::applyFrom ( const Theme & t)
inlineoverridevirtualinherited

Populate all fields from the global Theme token set.

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

Reimplemented from ml::GraphicTheme.

Definition at line 32 of file CheckboxGroupTheme.h.

◆ applySettings()

template<typename S>
void ml::CheckboxGroup::applySettings ( const S & s)
inlineinherited

Definition at line 79 of file CheckboxGroup.h.

◆ applyStyle()

template<typename St>
void ml::CheckboxGroup::applyStyle ( const St & s)
inlineinherited

Definition at line 98 of file CheckboxGroup.h.

◆ applyTheme()

template<typename T>
void ml::CheckboxGroup::applyTheme ( const T & t)
inlineinherited

Definition at line 89 of file CheckboxGroup.h.

◆ check()

void ml::CheckboxGroup::check ( std::size_t index)
inherited

◆ checkAll()

void ml::CheckboxGroup::checkAll ( )
inherited

◆ CheckboxGroup() [1/2]

template<typename MANIFEST>
ml::CheckboxGroup::CheckboxGroup ( const CheckboxGroup & )
delete

◆ CheckboxGroup() [2/2]

template<typename MANIFEST>
ml::CheckboxGroup::CheckboxGroup ( const sf::Font & font = FontManager<>::getDefault())
explicit

◆ clearOptions()

void ml::CheckboxGroup::clearOptions ( )
inherited

◆ draw()

void ml::CheckboxGroup::draw ( sf::RenderTarget & target,
sf::RenderStates states ) const
overrideprotectedinherited

◆ getBgColor()

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

Definition at line 53 of file CheckboxGroupTheme.h.

◆ getBgOutlineColor()

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

Definition at line 54 of file CheckboxGroupTheme.h.

◆ getBgOutlineThickness()

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

Definition at line 51 of file CheckboxGroupSettings.h.

◆ getBgRadius()

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

Definition at line 50 of file CheckboxGroupSettings.h.

◆ getBoxCheckedColor()

sf::Color ml::CheckboxTheme::getBoxCheckedColor ( ) const
inlinenodiscardinherited

Definition at line 64 of file CheckboxTheme.h.

◆ getBoxColor()

sf::Color ml::CheckboxTheme::getBoxColor ( ) const
inlinenodiscardinherited

Definition at line 62 of file CheckboxTheme.h.

◆ getBoxDisabledColor()

sf::Color ml::CheckboxTheme::getBoxDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 65 of file CheckboxTheme.h.

◆ getBoxHoverColor()

sf::Color ml::CheckboxTheme::getBoxHoverColor ( ) const
inlinenodiscardinherited

Definition at line 63 of file CheckboxTheme.h.

◆ getBoxRadius()

float ml::CheckboxSettings::getBoxRadius ( ) const
inlinenodiscardinherited

Definition at line 40 of file CheckboxSettings.h.

◆ getBoxSize()

float ml::CheckboxSettings::getBoxSize ( ) const
inlinenodiscardinherited

Definition at line 39 of file CheckboxSettings.h.

◆ getCheckColor()

sf::Color ml::CheckboxTheme::getCheckColor ( ) const
inlinenodiscardinherited

Definition at line 66 of file CheckboxTheme.h.

◆ getCheckDisabledColor()

sf::Color ml::CheckboxTheme::getCheckDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 67 of file CheckboxTheme.h.

◆ getCheckedIndices()

std::vector< std::size_t > ml::CheckboxGroup::getCheckedIndices ( ) const
nodiscardinherited

◆ getCheckedLabels()

std::vector< std::string > ml::CheckboxGroup::getCheckedLabels ( ) const
nodiscardinherited

◆ 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.

◆ getGlobalBounds()

sf::FloatRect ml::CheckboxGroup::getGlobalBounds ( ) const
overrideinherited

◆ getHoverColor()

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

Definition at line 72 of file ControlTheme.h.

◆ getLabelColor()

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

Definition at line 69 of file CheckboxTheme.h.

◆ getLabelDisabledColor()

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

Definition at line 70 of file CheckboxTheme.h.

◆ getLabelOffset()

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

Definition at line 41 of file CheckboxSettings.h.

◆ getMutedColor()

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

Definition at line 78 of file ControlTheme.h.

◆ getOutlineColor()

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

Definition at line 68 of file CheckboxTheme.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.

◆ getPosition()

sf::Vector2f ml::CheckboxGroup::getPosition ( ) const
overrideinherited

◆ getRadius()

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

Definition at line 70 of file GraphicTheme.h.

◆ getShowBackground()

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

Definition at line 52 of file CheckboxGroupSettings.h.

◆ getSpacing()

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

Definition at line 49 of file CheckboxGroupSettings.h.

◆ getState()

std::enable_if_t<!std::is_void_v< T >, T > ml::StateManager< extract_State< MANIFEST >::type >::getState ( ) const
inherited

Return the current state value.

Returns
The active StateEnum value.

◆ getTextColor()

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

Definition at line 77 of file ControlTheme.h.

◆ isChecked()

bool ml::CheckboxGroup::isChecked ( std::size_t index) const
nodiscardinherited

◆ isSettingsLocked()

bool ml::Themeable::isSettingsLocked ( ) const
inlinenodiscardinherited

Return true if applySettings() is currently blocked.

Definition at line 115 of file Themeable.h.

◆ isState()

std::enable_if_t<!std::is_void_v< T >, bool > ml::StateManager< extract_State< MANIFEST >::type >::isState ( T state) const
inherited

Return true if currently in state.

Parameters
stateThe state value to compare against.
Returns
true if the current state equals state.

◆ isThemeLocked()

bool ml::Themeable::isThemeLocked ( ) const
inlinenodiscardinherited

Return true if this component ignores theme changes.

Definition at line 97 of file Themeable.h.

◆ lockSettings()

void ml::Themeable::lockSettings ( )
inlineinherited

Prevent applySettings() from taking effect.

Explicit individual setter calls still work normally. Only blocks the batch applySettings() path.

Definition at line 107 of file Themeable.h.

◆ lockTheme()

void ml::Themeable::lockTheme ( )
inlineinherited

Prevent automatic re-styling when the global theme changes.

The component keeps its current visual state. Explicit individual setter calls still work normally.

Definition at line 85 of file Themeable.h.

◆ onSelectionChanged()

void ml::CheckboxGroup::onSelectionChanged ( std::function< void(const std::vector< std::string > &)> callback)
inherited

◆ onStateEnter()

std::enable_if_t<!std::is_void_v< T > > ml::StateManager< extract_State< MANIFEST >::type >::onStateEnter ( std::function< void(T)> callback)
inherited

Register a callback invoked after each state transition.

The callback receives the newly entered state. Only one enter callback is active at a time; calling this again replaces it.

Parameters
callbackFunction called with the new state after each transition.

◆ onStateExit()

std::enable_if_t<!std::is_void_v< T > > ml::StateManager< extract_State< MANIFEST >::type >::onStateExit ( std::function< void(T)> callback)
inherited

Register a callback invoked before each state transition.

The callback receives the state being left. Only one exit callback is active at a time; calling this again replaces it.

Parameters
callbackFunction called with the old state before each transition.

◆ onThemeApplied()

void ml::CheckboxGroup::onThemeApplied ( const Theme & theme)
overrideprotectedvirtualinherited

Called by ThemeManager when the active theme changes.

Override in your component to re-style from the new theme. Always check isThemeLocked() first:

void onThemeApplied(const Theme& theme) override
{
if (isThemeLocked()) return;
MySettings::applyTheme(theme);
syncFromSettings();
}
void onThemeApplied(const Theme &theme) override
Called by ThemeManager when the active theme changes.
bool isThemeLocked() const
Return true if this component ignores theme changes.
Definition Themeable.h:97
Universal design token set applied across all Themeable components.
Definition Theme.h:70
Parameters
themeThe newly active theme.

Implements ml::Themeable.

◆ optionCount()

std::size_t ml::CheckboxGroup::optionCount ( ) const
nodiscardinherited

◆ setBgColor()

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

Definition at line 56 of file CheckboxGroupTheme.h.

◆ setBgOutlineColor()

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

Definition at line 57 of file CheckboxGroupTheme.h.

◆ setBgOutlineThickness()

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

Definition at line 56 of file CheckboxGroupSettings.h.

◆ setBgRadius()

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

Definition at line 55 of file CheckboxGroupSettings.h.

◆ setBoxCheckedColor()

void ml::CheckboxTheme::setBoxCheckedColor ( const sf::Color & c)
inlineinherited

Definition at line 74 of file CheckboxTheme.h.

◆ setBoxColor()

void ml::CheckboxTheme::setBoxColor ( const sf::Color & c)
inlineinherited

Definition at line 72 of file CheckboxTheme.h.

◆ setBoxDisabledColor()

void ml::CheckboxTheme::setBoxDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 75 of file CheckboxTheme.h.

◆ setBoxHoverColor()

void ml::CheckboxTheme::setBoxHoverColor ( const sf::Color & c)
inlineinherited

Definition at line 73 of file CheckboxTheme.h.

◆ setBoxRadius()

void ml::CheckboxSettings::setBoxRadius ( float r)
inlineinherited

Definition at line 44 of file CheckboxSettings.h.

◆ setBoxSize()

void ml::CheckboxSettings::setBoxSize ( float s)
inlineinherited

Definition at line 43 of file CheckboxSettings.h.

◆ setCheckColor()

void ml::CheckboxTheme::setCheckColor ( const sf::Color & c)
inlineinherited

Definition at line 76 of file CheckboxTheme.h.

◆ setCheckDisabledColor()

void ml::CheckboxTheme::setCheckDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 77 of file CheckboxTheme.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.

◆ setLabelColor()

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

Definition at line 79 of file CheckboxTheme.h.

◆ setLabelDisabledColor()

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

Definition at line 80 of file CheckboxTheme.h.

◆ setLabelOffset()

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

Definition at line 45 of file CheckboxSettings.h.

◆ setMutedColor()

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

Definition at line 90 of file ControlTheme.h.

◆ setOptionEnabled()

void ml::CheckboxGroup::setOptionEnabled ( std::size_t index,
bool enabled )
inherited

◆ setOutlineColor()

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

Definition at line 78 of file CheckboxTheme.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.

◆ setPosition()

void ml::CheckboxGroup::setPosition ( const sf::Vector2f & position)
overrideinherited

◆ setRadius()

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

Definition at line 75 of file GraphicTheme.h.

◆ setShowBackground()

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

Definition at line 57 of file CheckboxGroupSettings.h.

◆ setSpacing()

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

Definition at line 54 of file CheckboxGroupSettings.h.

◆ setState()

std::enable_if_t<!std::is_void_v< T > > ml::StateManager< extract_State< MANIFEST >::type >::setState ( T newState)
inherited

Transition to a new state.

Fires the exit callback with the current state, updates the stored state to newState, then fires the enter callback with the new state. Either callback may be unset (nullptr), in which case it is skipped.

Parameters
newStateThe state to transition into.

◆ setTextColor()

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

Definition at line 89 of file ControlTheme.h.

◆ uncheck()

void ml::CheckboxGroup::uncheck ( std::size_t index)
inherited

◆ uncheckAll()

void ml::CheckboxGroup::uncheckAll ( )
inherited

◆ unlockSettings()

void ml::Themeable::unlockSettings ( )
inlineinherited

Allow applySettings() to take effect again.

Definition at line 112 of file Themeable.h.

◆ unlockTheme()

void ml::Themeable::unlockTheme ( )
inlineinherited

Resume reacting to global theme changes.

Does NOT immediately re-apply the current theme — call ThemeManager::get() and pass it to onThemeApplied() manually if you want to re-sync immediately after unlocking.

Definition at line 94 of file Themeable.h.

Member Data Documentation

◆ bgColor

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

Definition at line 27 of file CheckboxGroupTheme.h.

◆ bgOutlineColor

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

Definition at line 28 of file CheckboxGroupTheme.h.

◆ bgOutlineThickness

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

Definition at line 33 of file CheckboxGroupSettings.h.

◆ bgRadius

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

Definition at line 32 of file CheckboxGroupSettings.h.

◆ boxCheckedColor

sf::Color ml::CheckboxTheme::boxCheckedColor = sf::Color(70, 130, 230)
inherited

Definition at line 27 of file CheckboxTheme.h.

◆ boxColor

sf::Color ml::CheckboxTheme::boxColor = sf::Color(60, 60, 60)
inherited

Definition at line 25 of file CheckboxTheme.h.

◆ boxDisabledColor

sf::Color ml::CheckboxTheme::boxDisabledColor = sf::Color(180, 180, 180)
inherited

Definition at line 28 of file CheckboxTheme.h.

◆ boxHoverColor

sf::Color ml::CheckboxTheme::boxHoverColor = sf::Color(80, 80, 80)
inherited

Definition at line 26 of file CheckboxTheme.h.

◆ boxRadius

float ml::CheckboxSettings::boxRadius = 2.f
inherited

Definition at line 26 of file CheckboxSettings.h.

◆ boxSize

float ml::CheckboxSettings::boxSize = 16.f
inherited

Definition at line 25 of file CheckboxSettings.h.

◆ checkColor

sf::Color ml::CheckboxTheme::checkColor = sf::Color::White
inherited

Definition at line 29 of file CheckboxTheme.h.

◆ checkDisabledColor

sf::Color ml::CheckboxTheme::checkDisabledColor = sf::Color(220, 220, 220)
inherited

Definition at line 30 of file CheckboxTheme.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.

◆ labelColor

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

Definition at line 32 of file CheckboxTheme.h.

◆ labelDisabledColor

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

Definition at line 33 of file CheckboxTheme.h.

◆ labelOffset

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

Definition at line 27 of file CheckboxSettings.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::CheckboxTheme::outlineColor = sf::Color(120, 120, 120)
inherited

Definition at line 31 of file CheckboxTheme.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.

◆ showBackground

bool ml::CheckboxGroupSettings::showBackground = false
inherited

Definition at line 34 of file CheckboxGroupSettings.h.

◆ spacing

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

Definition at line 31 of file CheckboxGroupSettings.h.

◆ textColor

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

Definition at line 35 of file ControlTheme.h.


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