MythUIShape Class Reference
[MythUI Widget and theme handling]

A widget for rendering primitive shapes and lines. More...

#include <mythuishape.h>

Inheritance diagram for MythUIShape:
MythUIType XMLParseBase

List of all members.

Public Member Functions

 MythUIShape (MythUIType *parent, const QString &name)
void SetCropRect (int x, int y, int width, int height)
void SetCropRect (const MythRect &rect)
void SetFillBrush (QBrush fill)
void SetLinePen (QPen pen)

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)

Private Attributes

QString m_type
QBrush m_fillBrush
QPen m_linePen
int m_cornerRadius
MythRect m_cropRect

Friends

class MythUIProgressBar
class MythUIEditBar
class SubtitleFormat

Detailed Description

A widget for rendering primitive shapes and lines.

Definition at line 21 of file mythuishape.h.


Constructor & Destructor Documentation

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

Definition at line 21 of file mythuishape.cpp.

Referenced by CreateCopy().


Member Function Documentation

void MythUIShape::SetCropRect ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 31 of file mythuishape.cpp.

Referenced by MythUIEditBar::AddBar(), and MythUIProgressBar::CalculatePosition().

void MythUIShape::SetCropRect ( const MythRect rect  ) 

Definition at line 36 of file mythuishape.cpp.

void MythUIShape::SetFillBrush ( QBrush  fill  ) 
void MythUIShape::SetLinePen ( QPen  pen  ) 

Definition at line 47 of file mythuishape.cpp.

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

Reimplemented from MythUIType.

Definition at line 55 of file mythuishape.cpp.

bool MythUIShape::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 78 of file mythuishape.cpp.

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

Copy this widgets state from another.

Reimplemented from MythUIType.

Definition at line 149 of file mythuishape.cpp.

Referenced by CreateCopy(), SubtitleFormat::GetBackground(), and MythUIEditBar::GetNew().

void MythUIShape::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 171 of file mythuishape.cpp.


Friends And Related Function Documentation

friend class MythUIProgressBar [friend]

Definition at line 47 of file mythuishape.h.

friend class MythUIEditBar [friend]

Definition at line 48 of file mythuishape.h.

friend class SubtitleFormat [friend]

Definition at line 49 of file mythuishape.h.


Member Data Documentation

QString MythUIShape::m_type [private]
QBrush MythUIShape::m_fillBrush [private]
QPen MythUIShape::m_linePen [private]

Definition at line 43 of file mythuishape.h.

Referenced by CopyFrom(), DrawSelf(), MythUIShape(), ParseElement(), and SetLinePen().

Definition at line 44 of file mythuishape.h.

Referenced by CopyFrom(), DrawSelf(), MythUIShape(), and ParseElement().

Definition at line 45 of file mythuishape.h.

Referenced by CopyFrom(), DrawSelf(), MythUIShape(), and SetCropRect().


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