Go to the documentation of this file.
6 #include <QDomDocument>
19 #define LOC QString("MythUIVideo(0x%1): ").arg((uint64_t)this, 0, 16)
79 int alphaMod, QRect clipRect)
82 area.translate(xoffset, yoffset);
88 p->SetClipRect(clipRect);
89 p->DrawImage(area.x(), area.y(),
m_image, alphaMod);
97 const QString &
filename, QDomElement &element,
bool showWarnings)
99 if (element.tagName() ==
"backgroundcolor")
MythImage * GetFormatImage()
Returns a blank reference counted image in the format required for the Draw functions for this painte...
void CopyFrom(MythUIType *base) override
Copy this widgets state from another.
virtual void Pulse(void)
Pulse is called 70 times a second to trigger a single frame of an animation.
virtual MythRect GetArea(void) const
If the object has a minimum area defined, return it, other wise return the default area.
static QString getFirstText(QDomElement &element)
void CreateCopy(MythUIType *parent) override
Copy the state of this widget to the one given, it must be of the same type.
int DecrRef(void) override
Decrements reference count and deletes on 0.
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
void Pulse(void) override
Pulse is called 70 times a second to trigger a single frame of an animation.
void UpdateFrame(MythImage *image)
virtual void Reset(void)
Reset the widget to it's original state, should not reset changes made by the theme.
void Reset(void) override
Reset the video back to the default defined in the theme.
The base class on which all widgets and screens are based.
void DrawSelf(MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect) override
void Assign(const QImage &img)
MythPainter * GetMythPainter(void)
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.
bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings) override
Parse the xml definition of this widget setting the state of the object accordingly.
MythUIVideo(MythUIType *parent, const QString &name)