![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <SubtitlesSettings.h>
Public Member Functions | |
CSubtitlesSettings (const std::shared_ptr< CSettings > &settings) | |
~CSubtitlesSettings () override | |
void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override |
The value of the given setting has changed. | |
Align | GetAlignment () const |
Get subtitle alignment. | |
void | SetAlignment (Align align) const |
Set the subtitle alignment. | |
HorizontalAlign | GetHorizontalAlignment () const |
Get horizontal text alignment. | |
std::string | GetFontName () const |
Get font name. | |
FontStyle | GetFontStyle () const |
Get font style. | |
int | GetFontSize () const |
Get font size. | |
UTILS::COLOR::Color | GetFontColor () const |
Get font color. | |
int | GetFontOpacity () const |
Get font opacity. | |
int | GetBorderSize () const |
Get border size. | |
UTILS::COLOR::Color | GetBorderColor () const |
Get border color. | |
int | GetShadowSize () const |
Get shadow size. | |
UTILS::COLOR::Color | GetShadowColor () const |
Get shadow color. | |
int | GetShadowOpacity () const |
Get shadow opacity. | |
int | GetBlurSize () const |
Get blur size. | |
int | GetLineSpacing () const |
Get line spacing. | |
BackgroundType | GetBackgroundType () const |
Get background type. | |
UTILS::COLOR::Color | GetBackgroundColor () const |
Get background color. | |
int | GetBackgroundOpacity () const |
Get background opacity. | |
bool | IsOverrideFonts () const |
Check if font override is enabled. | |
OverrideStyles | GetOverrideStyles () const |
Get override styles. | |
float | GetVerticalMarginPerc () const |
Get the subtitle vertical margin. | |
![]() | |
virtual | ~ISettingCallback ()=default |
virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
The value of the given setting is being changed. | |
virtual void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) |
The given setting has been activated. | |
virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
The given setting needs to be updated. | |
virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
The given property of the given setting has changed. | |
![]() | |
Observable ()=default | |
virtual | ~Observable ()=default |
Observable & | operator= (const Observable &observable) |
virtual void | RegisterObserver (Observer *obs) |
Register an observer. | |
virtual void | UnregisterObserver (Observer *obs) |
Unregister an observer. | |
virtual void | NotifyObservers (const ObservableMessage message=ObservableMessageNone) |
Send a message to all observers when m_bObservableChanged is true. | |
virtual void | SetChanged (bool bSetTo=true) |
Mark an observable changed. | |
virtual bool | IsObserving (const Observer &obs) const |
Check whether this observable is being observed by an observer. | |
Static Public Member Functions | |
static void | SettingOptionsSubtitleFontsFiller (const std::shared_ptr< const CSetting > &setting, std::vector< StringSettingOption > &list, std::string ¤t) |
Additional Inherited Members | |
![]() | |
void | SendMessage (const ObservableMessage message) |
Send a message to all observer when m_bObservableChanged is true. | |
![]() | |
std::atomic< bool > | m_bObservableChanged {false} |
std::vector< Observer * > | m_observers |
CCriticalSection | m_obsCritSection |
|
explicit |
|
override |
Align CSubtitlesSettings::GetAlignment | ( | ) | const |
Get subtitle alignment.
UTILS::COLOR::Color CSubtitlesSettings::GetBackgroundColor | ( | ) | const |
Get background color.
int CSubtitlesSettings::GetBackgroundOpacity | ( | ) | const |
Get background opacity.
BackgroundType CSubtitlesSettings::GetBackgroundType | ( | ) | const |
Get background type.
int CSubtitlesSettings::GetBlurSize | ( | ) | const |
Get blur size.
UTILS::COLOR::Color CSubtitlesSettings::GetBorderColor | ( | ) | const |
Get border color.
int CSubtitlesSettings::GetBorderSize | ( | ) | const |
Get border size.
UTILS::COLOR::Color CSubtitlesSettings::GetFontColor | ( | ) | const |
Get font color.
std::string CSubtitlesSettings::GetFontName | ( | ) | const |
Get font name.
int CSubtitlesSettings::GetFontOpacity | ( | ) | const |
Get font opacity.
int CSubtitlesSettings::GetFontSize | ( | ) | const |
Get font size.
FontStyle CSubtitlesSettings::GetFontStyle | ( | ) | const |
Get font style.
HorizontalAlign CSubtitlesSettings::GetHorizontalAlignment | ( | ) | const |
Get horizontal text alignment.
int CSubtitlesSettings::GetLineSpacing | ( | ) | const |
Get line spacing.
OverrideStyles CSubtitlesSettings::GetOverrideStyles | ( | ) | const |
Get override styles.
UTILS::COLOR::Color CSubtitlesSettings::GetShadowColor | ( | ) | const |
Get shadow color.
int CSubtitlesSettings::GetShadowOpacity | ( | ) | const |
Get shadow opacity.
int CSubtitlesSettings::GetShadowSize | ( | ) | const |
Get shadow size.
float CSubtitlesSettings::GetVerticalMarginPerc | ( | ) | const |
Get the subtitle vertical margin.
bool CSubtitlesSettings::IsOverrideFonts | ( | ) | const |
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.
Set the subtitle alignment.
align | The alignment |
|
static |