16#define LOC QString("MythUIVideo(0x%1): ").arg((uint64_t)this, 0, 16)
76 int alphaMod, QRect clipRect)
79 area.translate(xoffset, yoffset);
85 p->SetClipRect(clipRect);
86 p->DrawImage(area.x(), area.y(),
m_image, alphaMod);
94 const QString &
filename, QDomElement &element,
bool showWarnings)
96 if (element.tagName() ==
"backgroundcolor")
void Assign(const QImage &img)
int DecrRef(void) override
Decrements reference count and deletes on 0.
MythImage * GetFormatImage()
Returns a blank reference counted image in the format required for the Draw functions for this painte...
The base class on which all widgets and screens are based.
virtual void CopyFrom(MythUIType *base)
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.
virtual void Reset(void)
Reset the widget to it's original state, should not reset changes made by the theme.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.
void CreateCopy(MythUIType *parent) override
Copy the state of this widget to the one given, it must be of the same type.
void DrawSelf(MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect) override
MythUIVideo(MythUIType *parent, const QString &name)
void UpdateFrame(MythImage *image)
bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings) override
Parse the xml definition of this widget setting the state of the object accordingly.
void CopyFrom(MythUIType *base) override
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 Reset(void) override
Reset the video back to the default defined in the theme.
static QString getFirstText(QDomElement &element)
MythPainter * GetMythPainter(void)