|
MythTV
0.26-pre
|
A widget for rendering primitive shapes and lines. More...
#include <mythuishape.h>
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 |
A widget for rendering primitive shapes and lines.
Definition at line 21 of file mythuishape.h.
| MythUIShape::MythUIShape | ( | MythUIType * | parent, |
| const QString & | name | ||
| ) |
Definition at line 21 of file mythuishape.cpp.
Referenced by CreateCopy().
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 | ) |
Definition at line 42 of file mythuishape.cpp.
Referenced by SubtitleFormat::Complement(), SubtitleFormat::CreateProviderDefault(), and SubtitleFormat::GetBackground().
| 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.
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.
QString MythUIShape::m_type [private] |
Definition at line 41 of file mythuishape.h.
Referenced by CopyFrom(), DrawSelf(), SubtitleFormat::GetBackground(), MythUIShape(), and ParseElement().
QBrush MythUIShape::m_fillBrush [private] |
Definition at line 42 of file mythuishape.h.
Referenced by SubtitleFormat::Complement(), CopyFrom(), SubtitleFormat::Diff(), DrawSelf(), SubtitleFormat::GetBackground(), MythUIShape(), ParseElement(), and SetFillBrush().
QPen MythUIShape::m_linePen [private] |
Definition at line 43 of file mythuishape.h.
Referenced by CopyFrom(), DrawSelf(), MythUIShape(), ParseElement(), and SetLinePen().
int MythUIShape::m_cornerRadius [private] |
Definition at line 44 of file mythuishape.h.
Referenced by CopyFrom(), DrawSelf(), MythUIShape(), and ParseElement().
MythRect MythUIShape::m_cropRect [private] |
Definition at line 45 of file mythuishape.h.
Referenced by CopyFrom(), DrawSelf(), MythUIShape(), and SetCropRect().
1.7.6.1