Go to the documentation of this file. 1 #ifndef TELETEXTSCREEN_H
2 #define TELETEXTSCREEN_H
22 void Pulse()
override;
25 bool KeyPress(
const QString& Key,
bool& Exit);
26 void SetPage(
int page,
int subpage);
28 void Reset()
override;
38 void DrawCharacter(
int x,
int y, QChar ch,
bool doubleheight =
false);
39 void DrawMosaic(
int x,
int y,
int code,
bool doubleheight);
70 #endif // TELETEXTSCREEN_H
void SetDisplaying(bool display)
void DrawCharacter(int x, int y, QChar ch, bool doubleheight=false)
bool KeyPress(const QString &Key, bool &Exit)
static const QColor kColorWhite
void SetPage(int page, int subpage)
static const int kTeletextColumns
void DrawMosaic(int x, int y, int code, bool doubleheight)
void Pulse() override
Pulse is called 70 times a second to trigger a single frame of an animation.
static const QColor kColorRed
static const int kTeletextRows
Screen in which all other widgets are contained and rendered.
void SetBackgroundColor(int color)
QHash< int, QImage * > m_rowImages
static const QColor kColorCyan
static const QColor kColorTransp
static void SetForegroundColor(int color)
void Reset() override
Reset the widget to it's original state, should not reset changes made by the theme.
std::array< uint8_t, 40 > tt_line_array
~TeletextScreen() override
void OptimiseDisplayedArea()
void DrawHeader(const tt_line_array &page, int lang)
static const QColor kColorGreen
void DrawRect(int row, QRect rect)
void DrawBackground(int x, int y)
static const QColor kColorBlue
static const QColor kColorMagenta
static bool InitialiseFont()
TeletextScreen(MythPlayer *Player, MythPainter *Painter, const QString &Name, int FontStretch)
TeletextReader * m_teletextReader
QImage * GetRowImage(int row, QRect &rect)
void DrawLine(const tt_line_array &page, uint row, int lang)
static const QColor kColorBlack
static const QColor kColorYellow