MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FormattedTextSubtitle Class Reference

#include <subtitlescreen.h>

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

Public Member Functions

virtual ~FormattedTextSubtitle ()=default
 
virtual void WrapLongLines (void)
 
virtual void Layout (void)
 
virtual void PreRender (void)
 
virtual void Draw (void)
 
virtual int CacheNum (void) const
 
QStringList ToSRT (void) const
 

Protected Member Functions

 FormattedTextSubtitle (const QString &base, const QRect &safearea, uint64_t start, uint64_t duration, SubtitleScreen *p)
 
 FormattedTextSubtitle (void)=default
 

Protected Attributes

QString m_base
 
QVector< FormattedTextLinem_lines
 
const QRect m_safeArea
 
uint64_t m_start {0}
 
uint64_t m_duration {0}
 
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 71 of file subtitlescreen.h.

Constructor & Destructor Documentation

◆ FormattedTextSubtitle() [1/2]

FormattedTextSubtitle::FormattedTextSubtitle ( const QString &  base,
const QRect &  safearea,
uint64_t  start,
uint64_t  duration,
SubtitleScreen p 
)
inlineprotected

Definition at line 74 of file subtitlescreen.h.

◆ FormattedTextSubtitle() [2/2]

FormattedTextSubtitle::FormattedTextSubtitle ( void  )
protecteddefault

◆ ~FormattedTextSubtitle()

virtual FormattedTextSubtitle::~FormattedTextSubtitle ( )
virtualdefault

Member Function Documentation

◆ WrapLongLines()

virtual void FormattedTextSubtitle::WrapLongLines ( void  )
inlinevirtual

Reimplemented in FormattedTextSubtitleSRT.

Definition at line 84 of file subtitlescreen.h.

Referenced by SubtitleScreen::Pulse().

◆ Layout()

void FormattedTextSubtitle::Layout ( void  )
virtual

Reimplemented in FormattedTextSubtitle608.

Definition at line 774 of file subtitlescreen.cpp.

Referenced by FormattedTextSubtitle608::Layout(), and SubtitleScreen::Pulse().

◆ PreRender()

void FormattedTextSubtitle::PreRender ( void  )
virtual

Definition at line 841 of file subtitlescreen.cpp.

Referenced by SubtitleScreen::Pulse().

◆ Draw()

void FormattedTextSubtitle::Draw ( void  )
virtual

Reimplemented in FormattedTextSubtitle708.

Definition at line 864 of file subtitlescreen.cpp.

Referenced by FormattedTextSubtitle708::Draw(), and SubtitleScreen::Pulse().

◆ CacheNum()

virtual int FormattedTextSubtitle::CacheNum ( void  ) const
inlinevirtual

Reimplemented in FormattedTextSubtitle708.

Definition at line 89 of file subtitlescreen.h.

Referenced by Draw().

◆ ToSRT()

QStringList FormattedTextSubtitle::ToSRT ( void  ) const

Member Data Documentation

◆ m_base

QString FormattedTextSubtitle::m_base
protected

Definition at line 93 of file subtitlescreen.h.

Referenced by Draw().

◆ m_lines

QVector<FormattedTextLine> FormattedTextSubtitle::m_lines
protected

◆ m_safeArea

const QRect FormattedTextSubtitle::m_safeArea
protected

◆ m_start

uint64_t FormattedTextSubtitle::m_start {0}
protected

Definition at line 96 of file subtitlescreen.h.

Referenced by Draw(), and FormattedTextSubtitle708::Draw().

◆ m_duration

uint64_t FormattedTextSubtitle::m_duration {0}
protected

Definition at line 97 of file subtitlescreen.h.

Referenced by Draw(), and FormattedTextSubtitle708::Draw().

◆ m_subScreen

SubtitleScreen* FormattedTextSubtitle::m_subScreen {nullptr}
protected

◆ m_xAnchorPoint

int FormattedTextSubtitle::m_xAnchorPoint {0}
protected

◆ m_yAnchorPoint

int FormattedTextSubtitle::m_yAnchorPoint {0}
protected

◆ m_xAnchor

int FormattedTextSubtitle::m_xAnchor {0}
protected

◆ m_yAnchor

int FormattedTextSubtitle::m_yAnchor {0}
protected

◆ m_bounds

QRect FormattedTextSubtitle::m_bounds
protected

Definition at line 103 of file subtitlescreen.h.

Referenced by FormattedTextSubtitle708::Draw(), and Layout().


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