Audacity 3.2.0
|
#include <ThemedWrappers.h>
Public Member Functions | |
template<typename... Args> | |
ThemedAButtonWrapper (Args &&... args) | |
void | SetImageIndices (int setIndex, int up, int over, int down, int overDown, int disabled) |
void | SetBackgroundColorIndex (int index) |
void | SetForegroundColorIndex (int index) |
void | SetTranslatableLabel (TranslatableString label) |
void | UpdatePrefs () override |
Public Member Functions inherited from PrefsListener | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
void | OnThemeChange (ThemeChangeMessage message) |
Private Attributes | |
Observer::Subscription | mThemeChangeSubscription |
std::map< int, std::array< int, AButton::AButtonStateCount > > | mSets |
int | mBackgroundColorIndex {-1} |
int | mForegroundColorIndex {-1} |
std::optional< TranslatableString > | mTranslatableLabel |
Additional Inherited Members | |
Static Public Member Functions inherited from PrefsListener | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Protected Member Functions inherited from PrefsListener | |
virtual void | UpdateSelectedPrefs (int id) |
Definition at line 191 of file ThemedWrappers.h.
|
inline |
Definition at line 204 of file ThemedWrappers.h.
References ThemedAButtonWrapper< AButtonBase >::mThemeChangeSubscription, ThemedAButtonWrapper< AButtonBase >::OnThemeChange(), Observer::Publisher< Message, NotifyAll >::Subscribe(), and theTheme.
|
inlineprivate |
Definition at line 255 of file ThemedWrappers.h.
References AButton::AButtonDis, AButton::AButtonDown, AButton::AButtonOver, AButton::AButtonOverDown, AButton::AButtonUp, ThemeChangeMessage::appearance, ThemeBase::Colour(), ThemeBase::Image(), ThemedAButtonWrapper< AButtonBase >::mBackgroundColorIndex, ThemedAButtonWrapper< AButtonBase >::mForegroundColorIndex, ThemedAButtonWrapper< AButtonBase >::mSets, and theTheme.
Referenced by ThemedAButtonWrapper< AButtonBase >::ThemedAButtonWrapper().
|
inline |
Definition at line 223 of file ThemedWrappers.h.
References ThemeBase::Colour(), ThemedAButtonWrapper< AButtonBase >::mBackgroundColorIndex, and theTheme.
|
inline |
Definition at line 230 of file ThemedWrappers.h.
References ThemeBase::Colour(), ThemedAButtonWrapper< AButtonBase >::mForegroundColorIndex, and theTheme.
|
inline |
Definition at line 210 of file ThemedWrappers.h.
References ThemeBase::Image(), ThemedAButtonWrapper< AButtonBase >::mSets, and theTheme.
|
inline |
Definition at line 237 of file ThemedWrappers.h.
References label, and ThemedAButtonWrapper< AButtonBase >::mTranslatableLabel.
|
inlineoverridevirtual |
Implements PrefsListener.
Definition at line 243 of file ThemedWrappers.h.
References ThemedAButtonWrapper< AButtonBase >::mTranslatableLabel, and PrefsListener::UpdatePrefs().
|
private |
Definition at line 198 of file ThemedWrappers.h.
Referenced by ThemedAButtonWrapper< AButtonBase >::OnThemeChange(), and ThemedAButtonWrapper< AButtonBase >::SetBackgroundColorIndex().
|
private |
Definition at line 199 of file ThemedWrappers.h.
Referenced by ThemedAButtonWrapper< AButtonBase >::OnThemeChange(), and ThemedAButtonWrapper< AButtonBase >::SetForegroundColorIndex().
|
private |
Definition at line 197 of file ThemedWrappers.h.
Referenced by ThemedAButtonWrapper< AButtonBase >::OnThemeChange(), and ThemedAButtonWrapper< AButtonBase >::SetImageIndices().
|
private |
Definition at line 195 of file ThemedWrappers.h.
Referenced by ThemedAButtonWrapper< AButtonBase >::ThemedAButtonWrapper().
|
private |
Definition at line 200 of file ThemedWrappers.h.
Referenced by ThemedAButtonWrapper< AButtonBase >::SetTranslatableLabel(), and ThemedAButtonWrapper< AButtonBase >::UpdatePrefs().