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

#include <subtitlescreen.h>

Collaboration diagram for FormattedTextChunk:
Collaboration graph
[legend]

Public Member Functions

 FormattedTextChunk (QString t, CC708CharacterAttribute formatting, SubtitleScreen *p)
 
 FormattedTextChunk (void)=default
 
QSize CalcSize (float layoutSpacing=0.0F) const
 
void CalcPadding (bool isFirst, bool isLast, int &left, int &right) const
 
bool Split (FormattedTextChunk &newChunk)
 
QString ToLogString (void) const
 
bool PreRender (bool isFirst, bool isLast, int &x, int y, int height)
 

Public Attributes

QString m_text
 
CC708CharacterAttribute m_format
 
const SubtitleScreenm_parent {nullptr}
 
QString m_bgShapeName
 
QRect m_bgShapeRect
 
MythFontPropertiesm_textFont {nullptr}
 
QString m_textName
 
QRect m_textRect
 

Detailed Description

Definition at line 32 of file subtitlescreen.h.

Constructor & Destructor Documentation

◆ FormattedTextChunk() [1/2]

FormattedTextChunk::FormattedTextChunk ( QString  t,
CC708CharacterAttribute  formatting,
SubtitleScreen p 
)
inline

Definition at line 35 of file subtitlescreen.h.

◆ FormattedTextChunk() [2/2]

FormattedTextChunk::FormattedTextChunk ( void  )
default

Member Function Documentation

◆ CalcSize()

QSize FormattedTextChunk::CalcSize ( float  layoutSpacing = 0.0F) const

Definition at line 663 of file subtitlescreen.cpp.

Referenced by PreRender().

◆ CalcPadding()

void FormattedTextChunk::CalcPadding ( bool  isFirst,
bool  isLast,
int &  left,
int &  right 
) const

Definition at line 668 of file subtitlescreen.cpp.

Referenced by PreRender().

◆ Split()

bool FormattedTextChunk::Split ( FormattedTextChunk newChunk)

Definition at line 674 of file subtitlescreen.cpp.

◆ ToLogString()

QString FormattedTextChunk::ToLogString ( void  ) const

◆ PreRender()

bool FormattedTextChunk::PreRender ( bool  isFirst,
bool  isLast,
int &  x,
int  y,
int  height 
)

Definition at line 718 of file subtitlescreen.cpp.

Member Data Documentation

◆ m_text

QString FormattedTextChunk::m_text

Definition at line 48 of file subtitlescreen.h.

Referenced by CalcSize(), PreRender(), Split(), and ToLogString().

◆ m_format

CC708CharacterAttribute FormattedTextChunk::m_format

Definition at line 49 of file subtitlescreen.h.

Referenced by CalcPadding(), CalcSize(), PreRender(), Split(), and ToLogString().

◆ m_parent

const SubtitleScreen* FormattedTextChunk::m_parent {nullptr}

Definition at line 50 of file subtitlescreen.h.

Referenced by CalcPadding(), CalcSize(), PreRender(), and Split().

◆ m_bgShapeName

QString FormattedTextChunk::m_bgShapeName

Definition at line 53 of file subtitlescreen.h.

Referenced by PreRender().

◆ m_bgShapeRect

QRect FormattedTextChunk::m_bgShapeRect

Definition at line 54 of file subtitlescreen.h.

Referenced by PreRender().

◆ m_textFont

MythFontProperties* FormattedTextChunk::m_textFont {nullptr}

Definition at line 55 of file subtitlescreen.h.

Referenced by PreRender().

◆ m_textName

QString FormattedTextChunk::m_textName

Definition at line 56 of file subtitlescreen.h.

Referenced by PreRender().

◆ m_textRect

QRect FormattedTextChunk::m_textRect

Definition at line 57 of file subtitlescreen.h.

Referenced by PreRender().


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