MythTV  master
mythpainter_yuva.h
Go to the documentation of this file.
1 #ifndef MYTHPAINTER_YUVA_H_
2 #define MYTHPAINTER_YUVA_H_
3 
4 #include "mythpainter_qimage.h"
5 #include "mythimage.h"
6 #include "compat.h"
7 
9 
11 {
12  public:
14  ~MythYUVAPainter();
15 
16  QString GetName(void) override // MythQImagePainter
17  { return QString("YUVA"); }
18 
19  void DrawImage(const QRect &dest, MythImage *im, const QRect &src,
20  int alpha) override; // MythQImagePainter
21  void DrawText(const QRect &dest, const QString &msg, int flags,
22  const MythFontProperties &font, int alpha,
23  const QRect &boundRect) override; // MythQImagePainter
24  void DrawRect(const QRect &area, const QBrush &fillBrush,
25  const QPen &linePen, int alpha) override; // MythQImagePainter
26  void DrawRoundRect(const QRect &area, int cornerRadius,
27  const QBrush &fillBrush, const QPen &linePen,
28  int alpha) override; // MythQImagePainter
29  void DrawEllipse(const QRect &area, const QBrush &fillBrush,
30  const QPen &linePen, int alpha) override; // MythQImagePainter
31 
32  protected:
33  MythFontProperties* GetConvertedFont(const MythFontProperties &font);
34 
35  QMap<QString, MythFontProperties*> m_convertedFonts;
36  std::list<QString> m_expireList;
37 };
38 
39 #endif
QString GetName(void) override
void DrawEllipse(const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) override
void DrawImage(const QRect &r, MythImage *im, const QRect &src, int alpha) override
void DrawRoundRect(const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha) override
QMap< QString, MythFontProperties * > m_convertedFonts
void DrawText(const QRect &r, const QString &msg, int flags, const MythFontProperties &font, int alpha, const QRect &boundRect) override
#define MUI_PUBLIC
Definition: mythuiexp.h:9
std::list< QString > m_expireList
void DrawRect(const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) override