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

#include <cc708window.h>

Public Member Functions

 CC708CharacterAttribute (bool isItalic=false, bool isBold=false, bool isUnderline=false, QColor fgColor=QColor())
 
QColor GetFGColor (void) const
 
QColor GetBGColor (void) const
 
QColor GetEdgeColor (void) const
 
uint GetFGAlpha (void) const
 
uint GetBGAlpha (void) const
 
bool operator== (const CC708CharacterAttribute &other) const
 
bool operator!= (const CC708CharacterAttribute &other) const
 

Static Public Member Functions

static QColor ConvertToQColor (uint eia708color)
 

Public Attributes

uint m_pen_size {k708AttrSizeStandard}
 
uint m_offset {k708AttrOffsetNormal}
 
uint m_text_tag {0}
 
uint m_font_tag {0}
 
uint m_edge_type {k708AttrEdgeNone}
 
bool m_underline {false}
 
bool m_italics {false}
 
bool m_boldface {false}
 
uint m_fg_color {k708AttrColorWhite}
 
uint m_fg_opacity {k708AttrOpacitySolid}
 
uint m_bg_color {k708AttrColorBlack}
 
uint m_bg_opacity {k708AttrOpacitySolid}
 
uint m_edge_color {k708AttrColorBlack}
 
QColor m_actual_fg_color
 

Detailed Description

Definition at line 73 of file cc708window.h.

Constructor & Destructor Documentation

◆ CC708CharacterAttribute()

CC708CharacterAttribute::CC708CharacterAttribute ( bool  isItalic = false,
bool  isBold = false,
bool  isUnderline = false,
QColor  fgColor = QColor() 
)
inline

Definition at line 93 of file cc708window.h.

Member Function Documentation

◆ ConvertToQColor()

QColor CC708CharacterAttribute::ConvertToQColor ( uint  eia708color)
static

Definition at line 653 of file cc708window.cpp.

Referenced by CC708Window::GetFillColor().

◆ GetFGColor()

QColor CC708CharacterAttribute::GetFGColor ( void  ) const
inline

◆ GetBGColor()

QColor CC708CharacterAttribute::GetBGColor ( void  ) const
inline

◆ GetEdgeColor()

QColor CC708CharacterAttribute::GetEdgeColor ( void  ) const
inline

Definition at line 118 of file cc708window.h.

Referenced by SubtitleFormat::GetFont(), and FormattedTextChunk::ToLogString().

◆ GetFGAlpha()

uint CC708CharacterAttribute::GetFGAlpha ( void  ) const
inline

Definition at line 120 of file cc708window.h.

Referenced by SubtitleFormat::GetFont(), and FormattedTextChunk::ToLogString().

◆ GetBGAlpha()

uint CC708CharacterAttribute::GetBGAlpha ( void  ) const
inline

Definition at line 127 of file cc708window.h.

Referenced by FormattedTextChunk::ToLogString().

◆ operator==()

bool CC708CharacterAttribute::operator== ( const CC708CharacterAttribute other) const

Definition at line 636 of file cc708window.cpp.

◆ operator!=()

bool CC708CharacterAttribute::operator!= ( const CC708CharacterAttribute other) const
inline

Definition at line 135 of file cc708window.h.

Member Data Documentation

◆ m_pen_size

uint CC708CharacterAttribute::m_pen_size {k708AttrSizeStandard}

◆ m_offset

uint CC708CharacterAttribute::m_offset {k708AttrOffsetNormal}

Definition at line 77 of file cc708window.h.

Referenced by operator==(), and FormattedTextChunk::ToLogString().

◆ m_text_tag

uint CC708CharacterAttribute::m_text_tag {0}

Definition at line 78 of file cc708window.h.

Referenced by operator==().

◆ m_font_tag

uint CC708CharacterAttribute::m_font_tag {0}

◆ m_edge_type

uint CC708CharacterAttribute::m_edge_type {k708AttrEdgeNone}

◆ m_underline

bool CC708CharacterAttribute::m_underline {false}

◆ m_italics

bool CC708CharacterAttribute::m_italics {false}

◆ m_boldface

bool CC708CharacterAttribute::m_boldface {false}

◆ m_fg_color

uint CC708CharacterAttribute::m_fg_color {k708AttrColorWhite}

Definition at line 85 of file cc708window.h.

Referenced by operator==(), and CC708Reader::SetPenColor().

◆ m_fg_opacity

uint CC708CharacterAttribute::m_fg_opacity {k708AttrOpacitySolid}

Definition at line 86 of file cc708window.h.

Referenced by operator==(), and CC708Reader::SetPenColor().

◆ m_bg_color

uint CC708CharacterAttribute::m_bg_color {k708AttrColorBlack}

Definition at line 87 of file cc708window.h.

Referenced by operator==(), and CC708Reader::SetPenColor().

◆ m_bg_opacity

uint CC708CharacterAttribute::m_bg_opacity {k708AttrOpacitySolid}

Definition at line 88 of file cc708window.h.

Referenced by operator==(), and CC708Reader::SetPenColor().

◆ m_edge_color

uint CC708CharacterAttribute::m_edge_color {k708AttrColorBlack}

Definition at line 89 of file cc708window.h.

Referenced by operator==(), and CC708Reader::SetPenColor().

◆ m_actual_fg_color

QColor CC708CharacterAttribute::m_actual_fg_color

Definition at line 91 of file cc708window.h.


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