-
Notifications
You must be signed in to change notification settings - Fork 345
/
mythuivideo.h
41 lines (31 loc) · 949 Bytes
/
mythuivideo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef MYTHUI_VIDEO_H_
#define MYTHUI_VIDEO_H_
#include <QString>
#include <QColor>
#include "mythuitype.h"
/**
* \class MythUIVideo
*
* \brief Video widget, displays raw image data
*/
class MUI_PUBLIC MythUIVideo : public MythUIType
{
public:
MythUIVideo(MythUIType *parent, const QString &name);
~MythUIVideo();
void UpdateFrame(MythImage *image);
void UpdateFrame(QPixmap *pixmap);
QColor GetBackgroundColor(void) { return m_backgroundColor; }
void Reset(void);
virtual void Pulse(void);
protected:
virtual void DrawSelf(MythPainter *p, int xoffset, int yoffset,
int alphaMod, QRect clipRect);
virtual bool ParseElement(
const QString &filename, QDomElement &element, bool showWarnings);
virtual void CopyFrom(MythUIType *base);
virtual void CreateCopy(MythUIType *parent);
MythImage *m_image;
QColor m_backgroundColor;
};
#endif