#include <SubtitlesSettings.h>
◆ CSubtitlesSettings()
CSubtitlesSettings::CSubtitlesSettings |
( |
const std::shared_ptr< CSettings > & | settings | ) |
|
|
explicit |
◆ ~CSubtitlesSettings()
CSubtitlesSettings::~CSubtitlesSettings |
( |
| ) |
|
|
override |
◆ GetAlignment()
Align CSubtitlesSettings::GetAlignment |
( |
| ) |
|
Get subtitle alignment.
- Returns
- The alignment
◆ GetBackgroundColor()
Get background color.
- Returns
- The background color
◆ GetBackgroundOpacity()
int CSubtitlesSettings::GetBackgroundOpacity |
( |
| ) |
|
Get background opacity.
- Returns
- The background opacity in %
◆ GetBackgroundType()
Get background type.
- Returns
- The background type
◆ GetBlurSize()
int CSubtitlesSettings::GetBlurSize |
( |
| ) |
|
Get blur size.
- Returns
- The blur size in %
◆ GetBorderColor()
Get border color.
- Returns
- The border color
◆ GetBorderSize()
int CSubtitlesSettings::GetBorderSize |
( |
| ) |
|
Get border size.
- Returns
- The border size in %
◆ GetFontColor()
Get font color.
- Returns
- The font color
◆ GetFontName()
std::string CSubtitlesSettings::GetFontName |
( |
| ) |
|
Get font name.
- Returns
- The font name
◆ GetFontOpacity()
int CSubtitlesSettings::GetFontOpacity |
( |
| ) |
|
Get font opacity.
- Returns
- The font opacity in %
◆ GetFontSize()
int CSubtitlesSettings::GetFontSize |
( |
| ) |
|
Get font size.
- Returns
- The font size in PX
◆ GetFontStyle()
FontStyle CSubtitlesSettings::GetFontStyle |
( |
| ) |
|
Get font style.
- Returns
- The font style
◆ GetHorizontalAlignment()
Get horizontal text alignment.
- Returns
- The alignment
◆ GetLineSpacing()
int CSubtitlesSettings::GetLineSpacing |
( |
| ) |
|
Get line spacing.
- Returns
- The line spacing
◆ GetOverrideStyles()
Get override styles.
- Returns
- The styles to be overriden
◆ GetShadowColor()
Get shadow color.
- Returns
- The shadow color
◆ GetShadowOpacity()
int CSubtitlesSettings::GetShadowOpacity |
( |
| ) |
|
Get shadow opacity.
- Returns
- The shadow opacity in %
◆ GetShadowSize()
int CSubtitlesSettings::GetShadowSize |
( |
| ) |
|
Get shadow size.
- Returns
- The shadow size in %
◆ GetVerticalMarginPerc()
float CSubtitlesSettings::GetVerticalMarginPerc |
( |
| ) |
|
Get the subtitle vertical margin.
- Returns
- The vertical margin in %
◆ IsOverrideFonts()
bool CSubtitlesSettings::IsOverrideFonts |
( |
| ) |
|
Check if font override is enabled.
- Returns
- True if fonts must be overriden, otherwise false
◆ OnSettingChanged()
void CSubtitlesSettings::OnSettingChanged |
( |
const std::shared_ptr< const CSetting > & | setting | ) |
|
|
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.
- Parameters
-
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
◆ SetAlignment()
void CSubtitlesSettings::SetAlignment |
( |
Align | align | ) |
|
Set the subtitle alignment.
- Parameters
-
◆ SettingOptionsSubtitleFontsFiller()
void CSubtitlesSettings::SettingOptionsSubtitleFontsFiller |
( |
const std::shared_ptr< const CSetting > & | setting, |
|
|
std::vector< StringSettingOption > & | list, |
|
|
std::string & | current, |
|
|
void * | data ) |
|
static |
The documentation for this class was generated from the following files: