MythTV  master
Public Member Functions | Private Member Functions | List of all members
FormattedTextSubtitleSRT Class Reference

#include <subtitlescreen.h>

Inheritance diagram for FormattedTextSubtitleSRT:
Inheritance graph
[legend]
Collaboration diagram for FormattedTextSubtitleSRT:
Collaboration graph
[legend]

Public Member Functions

 FormattedTextSubtitleSRT (const QString &base, QRect safearea, std::chrono::milliseconds start, std::chrono::milliseconds duration, SubtitleScreen *p, const QStringList &subs)
 
void WrapLongLines (void) override
 
- Public Member Functions inherited from FormattedTextSubtitle
virtual ~FormattedTextSubtitle ()=default
 
virtual void Layout (void)
 
virtual void PreRender (void)
 
virtual void Draw (void)
 
virtual int CacheNum (void) const
 
QStringList ToSRT (void) const
 

Private Member Functions

void Init (const QStringList &subs)
 

Additional Inherited Members

- Protected Member Functions inherited from FormattedTextSubtitle
 FormattedTextSubtitle (QString base, QRect safearea, std::chrono::milliseconds start, std::chrono::milliseconds duration, SubtitleScreen *p)
 
 FormattedTextSubtitle (void)=default
 
- Protected Attributes inherited from FormattedTextSubtitle
QString m_base
 
QVector< FormattedTextLinem_lines
 
const QRect m_safeArea
 
std::chrono::milliseconds m_start {0ms}
 
std::chrono::milliseconds m_duration {0ms}
 
SubtitleScreenm_subScreen {nullptr}
 
int m_xAnchorPoint {0}
 
int m_yAnchorPoint {0}
 
int m_xAnchor {0}
 
int m_yAnchor {0}
 
QRect m_bounds
 

Detailed Description

Definition at line 113 of file subtitlescreen.h.

Constructor & Destructor Documentation

◆ FormattedTextSubtitleSRT()

FormattedTextSubtitleSRT::FormattedTextSubtitleSRT ( const QString &  base,
QRect  safearea,
std::chrono::milliseconds  start,
std::chrono::milliseconds  duration,
SubtitleScreen p,
const QStringList &  subs 
)
inline

Definition at line 116 of file subtitlescreen.h.

Member Function Documentation

◆ WrapLongLines()

void FormattedTextSubtitleSRT::WrapLongLines ( void  )
overridevirtual

Reimplemented from FormattedTextSubtitle.

Definition at line 1092 of file subtitlescreen.cpp.

◆ Init()

void FormattedTextSubtitleSRT::Init ( const QStringList &  subs)
private

Definition at line 986 of file subtitlescreen.cpp.


The documentation for this class was generated from the following files: