Audacity 3.2.0
|
#include <ThemedWrappers.h>
Public Member Functions | |
template<typename... Args> | |
ThemedButtonWrapper (Args &&... args) | |
int | GetBitmapIndex () const |
void | SetBitmapFocusIndex (int index) |
void | SetBitmapIndex (int index) |
void | SetBitmapLabelIndex (int index) |
void | SetBitmapPressedIndex (int index) |
void | SetBitmapCurrentIndex (int index) |
void | SetBackgroundColorIndex (int index) |
void | SetTranslatableLabel (TranslatableString label) |
void | UpdatePrefs () override |
Public Member Functions inherited from PrefsListener | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Protected Member Functions | |
void | OnThemeChange (ThemeChangeMessage message) |
Protected Member Functions inherited from PrefsListener | |
virtual void | UpdateSelectedPrefs (int id) |
Private Attributes | |
Observer::Subscription | mThemeChangeSubscription |
int | mBitmapIndex { -1 } |
int | mFocusBitmapIndex { -1 } |
int | mLabelBitmapIndex { -1 } |
int | mPressedBitmapIndex { -1 } |
int | mCurrentBitmapIndex { -1 } |
int | mBackgroundColorIndex { -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... | |
Definition at line 92 of file ThemedWrappers.h.
|
inline |
Definition at line 107 of file ThemedWrappers.h.
References ThemedButtonWrapper< ButtonBase >::mThemeChangeSubscription, ThemedButtonWrapper< ButtonBase >::OnThemeChange(), Observer::Publisher< Message, NotifyAll >::Subscribe(), and theTheme.
|
inline |
Definition at line 113 of file ThemedWrappers.h.
References ThemedButtonWrapper< ButtonBase >::mBitmapIndex.
|
inlineprotected |
Definition at line 168 of file ThemedWrappers.h.
References ThemeChangeMessage::appearance, ThemeBase::Bitmap(), ThemeBase::Colour(), ThemedButtonWrapper< ButtonBase >::mBackgroundColorIndex, ThemedButtonWrapper< ButtonBase >::mBitmapIndex, ThemedButtonWrapper< ButtonBase >::mCurrentBitmapIndex, ThemedButtonWrapper< ButtonBase >::mFocusBitmapIndex, ThemedButtonWrapper< ButtonBase >::mLabelBitmapIndex, ThemedButtonWrapper< ButtonBase >::mPressedBitmapIndex, and theTheme.
Referenced by ThemedButtonWrapper< ButtonBase >::ThemedButtonWrapper().
|
inline |
Definition at line 147 of file ThemedWrappers.h.
References ThemeBase::Colour(), ThemedButtonWrapper< ButtonBase >::mBackgroundColorIndex, and theTheme.
|
inline |
Definition at line 141 of file ThemedWrappers.h.
References ThemeBase::Bitmap(), ThemedButtonWrapper< ButtonBase >::mCurrentBitmapIndex, and theTheme.
|
inline |
Definition at line 118 of file ThemedWrappers.h.
References ThemeBase::Bitmap(), ThemedButtonWrapper< ButtonBase >::mFocusBitmapIndex, and theTheme.
|
inline |
Definition at line 124 of file ThemedWrappers.h.
References ThemeBase::Bitmap(), ThemedButtonWrapper< ButtonBase >::mBitmapIndex, and theTheme.
|
inline |
Definition at line 130 of file ThemedWrappers.h.
References ThemeBase::Bitmap(), ThemedButtonWrapper< ButtonBase >::mLabelBitmapIndex, and theTheme.
|
inline |
Definition at line 135 of file ThemedWrappers.h.
References ThemeBase::Bitmap(), ThemedButtonWrapper< ButtonBase >::mPressedBitmapIndex, and theTheme.
|
inline |
Definition at line 154 of file ThemedWrappers.h.
References label, and ThemedButtonWrapper< ButtonBase >::mTranslatableLabel.
|
inlineoverridevirtual |
Implements PrefsListener.
Definition at line 160 of file ThemedWrappers.h.
References ThemedButtonWrapper< ButtonBase >::mTranslatableLabel, and PrefsListener::UpdatePrefs().
|
private |
Definition at line 102 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBackgroundColorIndex().
|
private |
Definition at line 97 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::GetBitmapIndex(), ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBitmapIndex().
|
private |
Definition at line 101 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBitmapCurrentIndex().
|
private |
Definition at line 98 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBitmapFocusIndex().
|
private |
Definition at line 99 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBitmapLabelIndex().
|
private |
Definition at line 100 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::OnThemeChange(), and ThemedButtonWrapper< ButtonBase >::SetBitmapPressedIndex().
|
private |
Definition at line 96 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::ThemedButtonWrapper().
|
private |
Definition at line 103 of file ThemedWrappers.h.
Referenced by ThemedButtonWrapper< ButtonBase >::SetTranslatableLabel(), and ThemedButtonWrapper< ButtonBase >::UpdatePrefs().