00001 #ifndef MYTHUI_SIMPLE_TEXT_H_
00002 #define MYTHUI_SIMPLE_TEXT_H_
00003
00004
00005 #include <QColor>
00006
00007
00008 #include "mythstorage.h"
00009
00010
00011 #include "mythuitype.h"
00012 #include "mythfontproperties.h"
00013
00014 class MythFontProperties;
00015
00025 class MUI_PUBLIC MythUISimpleText : public MythUIType
00026 {
00027 public:
00028 MythUISimpleText(MythUIType *parent, const QString &name);
00029 MythUISimpleText(const QString &text, const MythFontProperties &font,
00030 const QRect &rect, Qt::Alignment align,
00031 MythUIType *parent, const QString &name);
00032 ~MythUISimpleText();
00033
00034 protected:
00035 virtual void DrawSelf(MythPainter *p, int xoffset, int yoffset,
00036 int alphaMod, QRect clipRect);
00037
00038 virtual void CopyFrom(MythUIType *base);
00039 virtual void CreateCopy(MythUIType *parent);
00040
00041 Qt::Alignment m_Justification;
00042 MythFontProperties m_Font;
00043 QString m_Message;
00044 };
00045
00046 #endif