MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CC708Window Class Reference

#include <cc708window.h>

Collaboration diagram for CC708Window:
Collaboration graph
[legend]

Public Types

enum  {
  kAnchorUpperLeft = 0, kAnchorUpperCenter, kAnchorUpperRight, kAnchorCenterLeft = 3,
  kAnchorCenter, kAnchorCenterRight, kAnchorLowerLeft = 6, kAnchorLowerCenter,
  kAnchorLowerRight
}
 

Public Member Functions

 CC708Window ()=default
 
 ~CC708Window ()
 
void DefineWindow (int priority, bool visible, int anchor_point, int relative_pos, int anchor_vertical, int anchor_horizontal, int row_count, int column_count, int row_lock, int column_lock, int pen_style, int window_style)
 
void Resize (uint new_rows, uint new_columns)
 
void Clear (void)
 
void SetWindowStyle (uint)
 
void AddChar (QChar)
 
void IncrPenLocation (void)
 
void DecrPenLocation (void)
 
void SetPenLocation (uint, uint)
 
void LimitPenLocation (void)
 
bool IsPenValid (void) const
 
CC708CharacterGetCCChar (void) const
 
vector< CC708String * > GetStrings (void) const
 
QColor GetFillColor (void) const
 
uint GetFillAlpha (void) const
 
bool GetExists (void) const
 
bool GetVisible (void) const
 
bool GetChanged (void) const
 
void SetExists (bool value)
 
void SetVisible (bool value)
 
void SetChanged (void)
 
void ResetChanged (void)
 

Static Public Member Functions

static void DisposeStrings (vector< CC708String * > &strings)
 

Public Attributes

uint m_priority {0}
 
uint m_anchor_point {0}
 
uint m_relative_pos {0}
 
uint m_anchor_vertical {0}
 
uint m_anchor_horizontal {0}
 
uint m_row_count {0}
 
uint m_column_count {0}
 
uint m_row_lock {0}
 
uint m_column_lock {0}
 
uint m_fill_color {0}
 
uint m_fill_opacity {0}
 
uint m_border_color {0}
 
uint m_border_type {0}
 
uint m_scroll_dir {0}
 
uint m_print_dir {0}
 
uint m_effect_dir {0}
 
uint m_display_effect {0}
 
uint m_effect_speed {0}
 
uint m_justify {0}
 
uint m_word_wrap {0}
 
uint m_true_row_count {0}
 
uint m_true_column_count {0}
 
CC708Characterm_text {nullptr}
 
CC708Pen m_pen
 
QMutex m_lock {QMutex::Recursive}
 

Private Member Functions

void Scroll (int row, int col)
 

Private Attributes

bool m_visible {false}
 
bool m_exists {false}
 set to false when DeleteWindow is called on the window. More...
 
bool m_changed {true}
 

Detailed Description

Definition at line 183 of file cc708window.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kAnchorUpperLeft 
kAnchorUpperCenter 
kAnchorUpperRight 
kAnchorCenterLeft 
kAnchorCenter 
kAnchorCenterRight 
kAnchorLowerLeft 
kAnchorLowerCenter 
kAnchorLowerRight 

Definition at line 234 of file cc708window.h.

Constructor & Destructor Documentation

◆ CC708Window()

CC708Window::CC708Window ( )
default

◆ ~CC708Window()

CC708Window::~CC708Window ( )

Definition at line 241 of file cc708window.cpp.

Member Function Documentation

◆ DefineWindow()

void CC708Window::DefineWindow ( int  priority,
bool  visible,
int  anchor_point,
int  relative_pos,
int  anchor_vertical,
int  anchor_horizontal,
int  row_count,
int  column_count,
int  row_lock,
int  column_lock,
int  pen_style,
int  window_style 
)

Definition at line 109 of file cc708window.cpp.

Referenced by CC708Reader::DefineWindow().

◆ Resize()

void CC708Window::Resize ( uint  new_rows,
uint  new_columns 
)

Definition at line 158 of file cc708window.cpp.

◆ Clear()

void CC708Window::Clear ( void  )

Definition at line 256 of file cc708window.cpp.

Referenced by CC708Reader::ClearWindows(), and CC708Reader::DeleteWindows().

◆ SetWindowStyle()

void CC708Window::SetWindowStyle ( uint  style)

Definition at line 381 of file cc708window.cpp.

◆ AddChar()

void CC708Window::AddChar ( QChar  ch)

Definition at line 411 of file cc708window.cpp.

Referenced by CC708Reader::TextWrite().

◆ IncrPenLocation()

void CC708Window::IncrPenLocation ( void  )

Definition at line 492 of file cc708window.cpp.

◆ DecrPenLocation()

void CC708Window::DecrPenLocation ( void  )

Definition at line 534 of file cc708window.cpp.

◆ SetPenLocation()

void CC708Window::SetPenLocation ( uint  row,
uint  column 
)

Definition at line 576 of file cc708window.cpp.

Referenced by CC708Reader::SetPenLocation().

◆ LimitPenLocation()

void CC708Window::LimitPenLocation ( void  )

Definition at line 596 of file cc708window.cpp.

◆ IsPenValid()

bool CC708Window::IsPenValid ( void  ) const
inline

Definition at line 205 of file cc708window.h.

◆ GetCCChar()

CC708Character & CC708Window::GetCCChar ( void  ) const

Definition at line 271 of file cc708window.cpp.

◆ GetStrings()

vector< CC708String * > CC708Window::GetStrings ( void  ) const

◆ DisposeStrings()

void CC708Window::DisposeStrings ( vector< CC708String * > &  strings)
static

◆ GetFillColor()

QColor CC708Window::GetFillColor ( void  ) const
inline

Definition at line 213 of file cc708window.h.

◆ GetFillAlpha()

uint CC708Window::GetFillAlpha ( void  ) const
inline

Definition at line 219 of file cc708window.h.

◆ Scroll()

void CC708Window::Scroll ( int  row,
int  col 
)
private

Definition at line 459 of file cc708window.cpp.

◆ GetExists()

bool CC708Window::GetExists ( void  ) const
inline

Definition at line 276 of file cc708window.h.

Referenced by SubtitleScreen::DisplayCC708Subtitles().

◆ GetVisible()

bool CC708Window::GetVisible ( void  ) const
inline

◆ GetChanged()

bool CC708Window::GetChanged ( void  ) const
inline

◆ SetExists()

void CC708Window::SetExists ( bool  value)
inline

Definition at line 279 of file cc708window.h.

Referenced by CC708Reader::DisplayWindows().

◆ SetVisible()

void CC708Window::SetVisible ( bool  value)
inline

◆ SetChanged()

void CC708Window::SetChanged ( void  )
inline

Definition at line 291 of file cc708window.h.

Referenced by SubtitleScreen::DisplayCC708Subtitles().

◆ ResetChanged()

void CC708Window::ResetChanged ( void  )
inline

Member Data Documentation

◆ m_priority

uint CC708Window::m_priority {0}

Definition at line 230 of file cc708window.h.

◆ m_visible

bool CC708Window::m_visible {false}
private

Definition at line 232 of file cc708window.h.

◆ m_anchor_point

uint CC708Window::m_anchor_point {0}

Definition at line 239 of file cc708window.h.

Referenced by FormattedTextSubtitle708::Init().

◆ m_relative_pos

uint CC708Window::m_relative_pos {0}

Definition at line 240 of file cc708window.h.

Referenced by FormattedTextSubtitle708::Init().

◆ m_anchor_vertical

uint CC708Window::m_anchor_vertical {0}

Definition at line 241 of file cc708window.h.

Referenced by FormattedTextSubtitle708::Init().

◆ m_anchor_horizontal

uint CC708Window::m_anchor_horizontal {0}

Definition at line 242 of file cc708window.h.

Referenced by FormattedTextSubtitle708::Init().

◆ m_row_count

uint CC708Window::m_row_count {0}

Definition at line 243 of file cc708window.h.

◆ m_column_count

uint CC708Window::m_column_count {0}

Definition at line 244 of file cc708window.h.

◆ m_row_lock

uint CC708Window::m_row_lock {0}

Definition at line 245 of file cc708window.h.

◆ m_column_lock

uint CC708Window::m_column_lock {0}

Definition at line 246 of file cc708window.h.

◆ m_fill_color

uint CC708Window::m_fill_color {0}

Definition at line 250 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_fill_opacity

uint CC708Window::m_fill_opacity {0}

Definition at line 251 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_border_color

uint CC708Window::m_border_color {0}

Definition at line 252 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_border_type

uint CC708Window::m_border_type {0}

Definition at line 253 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_scroll_dir

uint CC708Window::m_scroll_dir {0}

Definition at line 254 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_print_dir

uint CC708Window::m_print_dir {0}

Definition at line 255 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_effect_dir

uint CC708Window::m_effect_dir {0}

Definition at line 256 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_display_effect

uint CC708Window::m_display_effect {0}

Definition at line 257 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_effect_speed

uint CC708Window::m_effect_speed {0}

Definition at line 258 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_justify

uint CC708Window::m_justify {0}

Definition at line 259 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_word_wrap

uint CC708Window::m_word_wrap {0}

Definition at line 260 of file cc708window.h.

Referenced by CC708Reader::SetWindowAttributes().

◆ m_true_row_count

uint CC708Window::m_true_row_count {0}

Definition at line 264 of file cc708window.h.

◆ m_true_column_count

uint CC708Window::m_true_column_count {0}

Definition at line 265 of file cc708window.h.

◆ m_text

CC708Character* CC708Window::m_text {nullptr}

Definition at line 267 of file cc708window.h.

Referenced by CC708Reader::DisplayWindows().

◆ m_pen

CC708Pen CC708Window::m_pen

◆ m_exists

bool CC708Window::m_exists {false}
private

set to false when DeleteWindow is called on the window.

Definition at line 272 of file cc708window.h.

◆ m_changed

bool CC708Window::m_changed {true}
private

Definition at line 273 of file cc708window.h.

◆ m_lock

QMutex CC708Window::m_lock {QMutex::Recursive}
mutable

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