MythTV
master
|
#include <libmythtv/captions/cc708window.h>
Public Types | |
enum | : std::uint8_t { kAnchorUpperLeft = 0, kAnchorUpperCenter = 1, kAnchorUpperRight = 2, kAnchorCenterLeft = 3, kAnchorCenter = 4, kAnchorCenterRight = 5, kAnchorLowerLeft = 6, kAnchorLowerCenter = 7, kAnchorLowerRight = 8 } |
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 style) |
void | AddChar (QChar ch) |
void | IncrPenLocation (void) |
void | DecrPenLocation (void) |
void | SetPenLocation (uint row, uint column) |
void | LimitPenLocation (void) |
bool | IsPenValid (void) const |
CC708Character & | GetCCChar (void) const |
std::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 (std::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} |
CC708Character * | m_text {nullptr} |
CC708Pen | m_pen |
QRecursiveMutex | m_lock |
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} |
Definition at line 194 of file cc708window.h.
anonymous enum : std::uint8_t |
Enumerator | |
---|---|
kAnchorUpperLeft | |
kAnchorUpperCenter | |
kAnchorUpperRight | |
kAnchorCenterLeft | |
kAnchorCenter | |
kAnchorCenterRight | |
kAnchorLowerLeft | |
kAnchorLowerCenter | |
kAnchorLowerRight |
Definition at line 245 of file cc708window.h.
|
default |
CC708Window::~CC708Window | ( | ) |
Definition at line 245 of file cc708window.cpp.
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 108 of file cc708window.cpp.
Referenced by CC708Reader::DefineWindow().
Definition at line 157 of file cc708window.cpp.
Referenced by DefineWindow().
void CC708Window::Clear | ( | void | ) |
Definition at line 260 of file cc708window.cpp.
Referenced by AddChar(), CC708Reader::ClearWindows(), CC708Reader::DeleteWindows(), and Resize().
void CC708Window::SetWindowStyle | ( | uint | style | ) |
Definition at line 387 of file cc708window.cpp.
Referenced by DefineWindow().
void CC708Window::AddChar | ( | QChar | ch | ) |
Definition at line 417 of file cc708window.cpp.
Referenced by CC708Reader::TextWrite().
void CC708Window::IncrPenLocation | ( | void | ) |
Definition at line 535 of file cc708window.cpp.
Referenced by AddChar().
void CC708Window::DecrPenLocation | ( | void | ) |
Definition at line 578 of file cc708window.cpp.
Referenced by AddChar().
Definition at line 621 of file cc708window.cpp.
Referenced by AddChar(), and CC708Reader::SetPenLocation().
void CC708Window::LimitPenLocation | ( | void | ) |
Definition at line 641 of file cc708window.cpp.
Referenced by AddChar(), DecrPenLocation(), DefineWindow(), IncrPenLocation(), and SetPenLocation().
|
inline |
Definition at line 216 of file cc708window.h.
Referenced by AddChar().
CC708Character & CC708Window::GetCCChar | ( | void | ) | const |
Definition at line 275 of file cc708window.cpp.
Referenced by AddChar().
std::vector< CC708String * > CC708Window::GetStrings | ( | void | ) | const |
Definition at line 284 of file cc708window.cpp.
Referenced by SubtitleScreen::DisplayCC708Subtitles(), and MythCCExtractorPlayer::Ingest708Captions().
|
static |
Definition at line 378 of file cc708window.cpp.
Referenced by SubtitleScreen::DisplayCC708Subtitles(), and MythCCExtractorPlayer::Ingest708Captions().
|
inline |
Definition at line 224 of file cc708window.h.
|
inline |
Definition at line 230 of file cc708window.h.
|
private |
Definition at line 500 of file cc708window.cpp.
Referenced by AddChar(), DecrPenLocation(), IncrPenLocation(), and SetPenLocation().
|
inline |
Definition at line 287 of file cc708window.h.
Referenced by AddChar(), Clear(), DefineWindow(), SubtitleScreen::DisplayCC708Subtitles(), GetCCChar(), and Resize().
|
inline |
Definition at line 288 of file cc708window.h.
Referenced by SubtitleScreen::DisplayCC708Subtitles(), MythCCExtractorPlayer::Ingest708Captions(), and CC708Reader::ToggleWindows().
|
inline |
Definition at line 289 of file cc708window.h.
Referenced by SubtitleScreen::DisplayCC708Subtitles(), and MythCCExtractorPlayer::Ingest708Captions().
|
inline |
Definition at line 290 of file cc708window.h.
Referenced by DefineWindow(), CC708Reader::DisplayWindows(), Resize(), and ~CC708Window().
|
inline |
Definition at line 296 of file cc708window.h.
Referenced by DefineWindow(), CC708Reader::DisplayWindows(), CC708Reader::HideWindows(), and CC708Reader::ToggleWindows().
|
inline |
|
inline |
Definition at line 306 of file cc708window.h.
Referenced by SubtitleScreen::DisplayCC708Subtitles().
uint CC708Window::m_priority {0} |
Definition at line 241 of file cc708window.h.
Referenced by DefineWindow().
Definition at line 243 of file cc708window.h.
uint CC708Window::m_anchor_point {0} |
Definition at line 250 of file cc708window.h.
Referenced by DefineWindow(), and FormattedTextSubtitle708::Init().
uint CC708Window::m_relative_pos {0} |
Definition at line 251 of file cc708window.h.
Referenced by DefineWindow(), and FormattedTextSubtitle708::Init().
uint CC708Window::m_anchor_vertical {0} |
Definition at line 252 of file cc708window.h.
Referenced by DefineWindow(), and FormattedTextSubtitle708::Init().
uint CC708Window::m_anchor_horizontal {0} |
Definition at line 253 of file cc708window.h.
Referenced by DefineWindow(), and FormattedTextSubtitle708::Init().
uint CC708Window::m_row_count {0} |
Definition at line 254 of file cc708window.h.
Referenced by DefineWindow(), GetStrings(), Resize(), and SetPenLocation().
uint CC708Window::m_column_count {0} |
Definition at line 255 of file cc708window.h.
Referenced by AddChar(), DefineWindow(), GetStrings(), Resize(), and SetPenLocation().
uint CC708Window::m_row_lock {0} |
Definition at line 256 of file cc708window.h.
Referenced by DecrPenLocation(), DefineWindow(), and IncrPenLocation().
uint CC708Window::m_column_lock {0} |
Definition at line 257 of file cc708window.h.
Referenced by DecrPenLocation(), DefineWindow(), and IncrPenLocation().
uint CC708Window::m_fill_color {0} |
Definition at line 261 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_fill_opacity {0} |
Definition at line 262 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_border_color {0} |
Definition at line 263 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_border_type {0} |
Definition at line 264 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_scroll_dir {0} |
Definition at line 265 of file cc708window.h.
Referenced by Scroll(), CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_print_dir {0} |
Definition at line 266 of file cc708window.h.
Referenced by DecrPenLocation(), IncrPenLocation(), CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_effect_dir {0} |
Definition at line 267 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_display_effect {0} |
Definition at line 268 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_effect_speed {0} |
Definition at line 269 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_justify {0} |
Definition at line 270 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_word_wrap {0} |
Definition at line 271 of file cc708window.h.
Referenced by CC708Reader::SetWindowAttributes(), and SetWindowStyle().
uint CC708Window::m_true_row_count {0} |
Definition at line 275 of file cc708window.h.
Referenced by AddChar(), Clear(), GetCCChar(), LimitPenLocation(), Resize(), Scroll(), SetPenLocation(), and ~CC708Window().
uint CC708Window::m_true_column_count {0} |
Definition at line 276 of file cc708window.h.
Referenced by AddChar(), Clear(), DecrPenLocation(), GetCCChar(), GetStrings(), IncrPenLocation(), LimitPenLocation(), Resize(), Scroll(), SetPenLocation(), and ~CC708Window().
CC708Character* CC708Window::m_text {nullptr} |
Definition at line 278 of file cc708window.h.
Referenced by AddChar(), Clear(), CC708Reader::DisplayWindows(), GetCCChar(), GetStrings(), Resize(), Scroll(), and ~CC708Window().
CC708Pen CC708Window::m_pen |
Definition at line 279 of file cc708window.h.
Referenced by AddChar(), Clear(), DecrPenLocation(), DefineWindow(), GetCCChar(), IncrPenLocation(), MythCCExtractorPlayer::Ingest708Captions(), LimitPenLocation(), Resize(), Scroll(), CC708Reader::SetPenAttributes(), CC708Reader::SetPenColor(), and SetPenLocation().
set to false when DeleteWindow is called on the window.
Definition at line 283 of file cc708window.h.
Definition at line 284 of file cc708window.h.
|
mutable |
Definition at line 310 of file cc708window.h.
Referenced by AddChar(), Clear(), DefineWindow(), SubtitleScreen::DisplayCC708Subtitles(), CC708Reader::DisplayWindows(), GetStrings(), Scroll(), and ~CC708Window().