00001 #ifndef MYTHPAINTER_YUVA_H_
00002 #define MYTHPAINTER_YUVA_H_
00003
00004 #include "mythpainter_qimage.h"
00005 #include "mythimage.h"
00006 #include "compat.h"
00007
00008 class MythFontProperties;
00009
00010 class MUI_PUBLIC MythYUVAPainter : public MythQImagePainter
00011 {
00012 public:
00013 MythYUVAPainter() : MythQImagePainter() { }
00014 ~MythYUVAPainter();
00015
00016 QString GetName(void) { return QString("YUVA"); }
00017
00018 virtual void DrawImage(const QRect &dest, MythImage *im, const QRect &src,
00019 int alpha);
00020 virtual void DrawText(const QRect &dest, const QString &msg, int flags,
00021 const MythFontProperties &font, int alpha,
00022 const QRect &boundRect);
00023 virtual void DrawRect(const QRect &area, const QBrush &fillBrush,
00024 const QPen &linePen, int alpha);
00025 virtual void DrawRoundRect(const QRect &area, int cornerRadius,
00026 const QBrush &fillBrush, const QPen &linePen,
00027 int alpha);
00028 virtual void DrawEllipse(const QRect &area, const QBrush &fillBrush,
00029 const QPen &linePen, int alpha);
00030
00031 protected:
00032 MythFontProperties* GetConvertedFont(const MythFontProperties &font);
00033
00034 QMap<QString, MythFontProperties*> m_convertedFonts;
00035 std::list<QString> m_expireList;
00036 };
00037
00038 #endif