MythUIVideo Class Reference

Video widget, displays raw image data. More...

#include <mythuivideo.h>

Inheritance diagram for MythUIVideo:
MythUIType XMLParseBase

List of all members.

Public Member Functions

 MythUIVideo (MythUIType *parent, const QString &name)
 ~MythUIVideo ()
void UpdateFrame (MythImage *image)
void UpdateFrame (QPixmap *pixmap)
QColor GetBackgroundColor (void)
void Reset (void)
 Reset the video back to the default defined in the theme.
virtual void Pulse (void)

Protected Member Functions

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)

Protected Attributes

MythImagem_image
QColor m_backgroundColor

Detailed Description

Video widget, displays raw image data.

Definition at line 14 of file mythuivideo.h.


Constructor & Destructor Documentation

MythUIVideo::MythUIVideo ( MythUIType parent,
const QString &  name 
)

Definition at line 21 of file mythuivideo.cpp.

Referenced by CreateCopy().

MythUIVideo::~MythUIVideo (  ) 

Definition at line 28 of file mythuivideo.cpp.


Member Function Documentation

void MythUIVideo::UpdateFrame ( MythImage image  ) 

Definition at line 53 of file mythuivideo.cpp.

Referenced by MainVisual::timeout().

void MythUIVideo::UpdateFrame ( QPixmap *  pixmap  ) 

Definition at line 60 of file mythuivideo.cpp.

QColor MythUIVideo::GetBackgroundColor ( void   )  [inline]

Definition at line 23 of file mythuivideo.h.

Referenced by MainVisual::resize(), MainVisual::setVisual(), and MainVisual::timeout().

void MythUIVideo::Reset ( void   )  [virtual]

Reset the video back to the default defined in the theme.

Reimplemented from MythUIType.

Definition at line 40 of file mythuivideo.cpp.

void MythUIVideo::Pulse ( void   )  [virtual]

Pulse is called 70 times a second to trigger a single frame of an animation. This changes the alpha value of the widget

Reimplemented from MythUIType.

Definition at line 70 of file mythuivideo.cpp.

void MythUIVideo::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
) [protected, virtual]

Reimplemented from MythUIType.

Definition at line 79 of file mythuivideo.cpp.

bool MythUIVideo::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
) [protected, virtual]

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Definition at line 95 of file mythuivideo.cpp.

void MythUIVideo::CopyFrom ( MythUIType base  )  [protected, virtual]

Copy this widgets state from another.

Reimplemented from MythUIType.

Definition at line 111 of file mythuivideo.cpp.

Referenced by CreateCopy().

void MythUIVideo::CreateCopy ( MythUIType parent  )  [protected, virtual]

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Definition at line 119 of file mythuivideo.cpp.


Member Data Documentation

Definition at line 37 of file mythuivideo.h.

Referenced by DrawSelf(), MythUIVideo(), Reset(), UpdateFrame(), and ~MythUIVideo().

QColor MythUIVideo::m_backgroundColor [protected]

Definition at line 38 of file mythuivideo.h.

Referenced by MythUIVideo(), and ParseElement().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:18 2012 for MythTV by  doxygen 1.6.3