xbmc
|
Public Member Functions | |
CSubtitlesSettings (const std::shared_ptr< CSettings > &settings) | |
void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override |
The value of the given setting has changed. More... | |
Align | GetAlignment () |
Get subtitle alignment. More... | |
void | SetAlignment (Align align) |
Set the subtitle alignment. More... | |
HorizontalAlign | GetHorizontalAlignment () |
Get horizontal text alignment. More... | |
std::string | GetFontName () |
Get font name. More... | |
FontStyle | GetFontStyle () |
Get font style. More... | |
int | GetFontSize () |
Get font size. More... | |
UTILS::COLOR::Color | GetFontColor () |
Get font color. More... | |
int | GetFontOpacity () |
Get font opacity. More... | |
int | GetBorderSize () |
Get border size. More... | |
UTILS::COLOR::Color | GetBorderColor () |
Get border color. More... | |
int | GetShadowSize () |
Get shadow size. More... | |
UTILS::COLOR::Color | GetShadowColor () |
Get shadow color. More... | |
int | GetShadowOpacity () |
Get shadow opacity. More... | |
int | GetBlurSize () |
Get blur size. More... | |
BackgroundType | GetBackgroundType () |
Get background type. More... | |
UTILS::COLOR::Color | GetBackgroundColor () |
Get background color. More... | |
int | GetBackgroundOpacity () |
Get background opacity. More... | |
bool | IsOverrideFonts () |
Check if font override is enabled. More... | |
OverrideStyles | GetOverrideStyles () |
Get override styles. More... | |
float | GetVerticalMarginPerc () |
Get the subtitle vertical margin. More... | |
![]() | |
virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
The value of the given setting is being changed. More... | |
virtual void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) |
The given setting has been activated. More... | |
virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
The given setting needs to be updated. More... | |
virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
The given property of the given setting has changed. More... | |
![]() | |
Observable & | operator= (const Observable &observable) |
virtual void | RegisterObserver (Observer *obs) |
Register an observer. More... | |
virtual void | UnregisterObserver (Observer *obs) |
Unregister an observer. More... | |
virtual void | NotifyObservers (const ObservableMessage message=ObservableMessageNone) |
Send a message to all observers when m_bObservableChanged is true. More... | |
virtual void | SetChanged (bool bSetTo=true) |
Mark an observable changed. More... | |
virtual bool | IsObserving (const Observer &obs) const |
Check whether this observable is being observed by an observer. More... | |
Static Public Member Functions | |
static void | SettingOptionsSubtitleFontsFiller (const std::shared_ptr< const CSetting > &setting, std::vector< StringSettingOption > &list, std::string ¤t, void *data) |
Additional Inherited Members | |
![]() | |
void | SendMessage (const ObservableMessage message) |
Send a message to all observer when m_bObservableChanged is true. More... | |
![]() | |
std::atomic< bool > | m_bObservableChanged {false} |
std::vector< Observer * > | m_observers |
CCriticalSection | m_obsCritSection |
Align CSubtitlesSettings::GetAlignment | ( | ) |
Get subtitle alignment.
UTILS::COLOR::Color CSubtitlesSettings::GetBackgroundColor | ( | ) |
Get background color.
int CSubtitlesSettings::GetBackgroundOpacity | ( | ) |
Get background opacity.
BackgroundType CSubtitlesSettings::GetBackgroundType | ( | ) |
Get background type.
int CSubtitlesSettings::GetBlurSize | ( | ) |
Get blur size.
UTILS::COLOR::Color CSubtitlesSettings::GetBorderColor | ( | ) |
Get border color.
int CSubtitlesSettings::GetBorderSize | ( | ) |
Get border size.
UTILS::COLOR::Color CSubtitlesSettings::GetFontColor | ( | ) |
Get font color.
std::string CSubtitlesSettings::GetFontName | ( | ) |
Get font name.
int CSubtitlesSettings::GetFontOpacity | ( | ) |
Get font opacity.
int CSubtitlesSettings::GetFontSize | ( | ) |
Get font size.
FontStyle CSubtitlesSettings::GetFontStyle | ( | ) |
Get font style.
HorizontalAlign CSubtitlesSettings::GetHorizontalAlignment | ( | ) |
Get horizontal text alignment.
OverrideStyles CSubtitlesSettings::GetOverrideStyles | ( | ) |
Get override styles.
UTILS::COLOR::Color CSubtitlesSettings::GetShadowColor | ( | ) |
Get shadow color.
int CSubtitlesSettings::GetShadowOpacity | ( | ) |
Get shadow opacity.
int CSubtitlesSettings::GetShadowSize | ( | ) |
Get shadow size.
float CSubtitlesSettings::GetVerticalMarginPerc | ( | ) |
Get the subtitle vertical margin.
bool CSubtitlesSettings::IsOverrideFonts | ( | ) |
Check if font override is enabled.
|
overridevirtual |
The value of the given setting has changed.
This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
void CSubtitlesSettings::SetAlignment | ( | Align | align | ) |
Set the subtitle alignment.
align | The alignment |