MythTV  master
mythuisimpletext.h
Go to the documentation of this file.
1 #ifndef MYTHUI_SIMPLE_TEXT_H_
2 #define MYTHUI_SIMPLE_TEXT_H_
3 
4 // QT headers
5 #include <QColor>
6 
7 // Mythui headers
8 #include "mythuitype.h"
9 #include "mythfontproperties.h"
10 
11 class MythFontProperties;
12 
23 {
24  public:
25  MythUISimpleText(MythUIType *parent, const QString &name)
26  : MythUIType(parent, name) {}
27  MythUISimpleText(const QString &text, const MythFontProperties &font,
28  const QRect &rect, Qt::Alignment align,
29  MythUIType *parent, const QString &name);
30  ~MythUISimpleText() = default;
31 
32  protected:
33  void DrawSelf(MythPainter *p, int xoffset, int yoffset,
34  int alphaMod, QRect clipRect) override; // MythUIType
35 
36  void CopyFrom(MythUIType *base) override; // MythUIType
37  void CreateCopy(MythUIType *parent) override; // MythUIType
38 
39  Qt::Alignment m_Justification {Qt::AlignLeft | Qt::AlignTop};
41  QString m_Message;
42 };
43 
44 #endif
The base class on which all widgets and screens are based.
Definition: mythuitype.h:63
Simplified text widget, displays a text string.
virtual void CreateCopy(MythUIType *parent)
Copy the state of this widget to the one given, it must be of the same type.
virtual void DrawSelf(MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
Definition: mythuitype.cpp:465
const char * name
Definition: ParseText.cpp:328
#define MUI_PUBLIC
Definition: mythuiexp.h:9
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
MythUISimpleText(MythUIType *parent, const QString &name)
MythFontProperties m_Font