6#include <QCoreApplication>
22 const QRect rect, Qt::Alignment align,
25 m_justification(align),
26 m_font(
std::move(font)),
27 m_message(text.trimmed())
33 int alphaMod, QRect clipRect)
36 area.translate(xoffset, yoffset);
40 p->SetClipRect(clipRect);
50 LOG(VB_GENERAL, LOG_ERR,
"ERROR, bad parsing");
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
QRect toQRect(void) const
Simplified text widget, displays a text string.
void DrawSelf(MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect) override
void CreateCopy(MythUIType *parent) override
Copy the state of this widget to the one given, it must be of the same type.
Qt::Alignment m_justification
MythFontProperties m_font
void CopyFrom(MythUIType *base) override
Copy this widgets state from another.
MythUISimpleText(MythUIType *parent, const QString &name)
The base class on which all widgets and screens are based.
virtual void SetArea(const MythRect &rect)
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
virtual MythRect GetArea(void) const
If the object has a minimum area defined, return it, other wise return the default area.
int CalcAlpha(int alphamod) const
#define LOG(_MASK_, _LEVEL_, _QSTRING_)