#include <mythfontproperties.h>

Definition at line 11 of file mythfontproperties.h.
Public Member Functions | |
| MythFontProperties () | |
| void | SetFace (const QFont &face) |
| void | SetColor (const QColor &color) |
| void | SetShadow (bool on, const QPoint &offset, const QColor &color, int alpha) |
| void | SetOutline (bool on, const QColor &color, int size, int alpha) |
| QFont | face (void) const |
| QColor | color (void) const |
| bool | hasShadow (void) const |
| void | GetShadow (QPoint &offset, QColor &color, int &alpha) const |
| bool | hasOutline (void) const |
| void | GetOutline (QColor &color, int &size, int &alpha) const |
| QString | GetHash (void) const |
Static Public Member Functions | |
| static MythFontProperties * | ParseFromXml (QDomElement &element, bool addToGlobal=false) |
Private Member Functions | |
| void | Freeze (void) |
| void | Unfreeze (void) |
| void | CalcHash (void) |
Private Attributes | |
| QFont | m_face |
| QColor | m_color |
| bool | m_hasShadow |
| QPoint | m_shadowOffset |
| QColor | m_shadowColor |
| int | m_shadowAlpha |
| bool | m_hasOutline |
| QColor | m_outlineColor |
| int | m_outlineSize |
| int | m_outlineAlpha |
| QString | m_hash |
| bool | m_bFreeze |
Friends | |
| class | FontMap |
| MythFontProperties::MythFontProperties | ( | ) |
| void MythFontProperties::SetFace | ( | const QFont & | face | ) |
Definition at line 17 of file mythfontproperties.cpp.
Referenced by MythThemedMenuState::parseText().
| void MythFontProperties::SetColor | ( | const QColor & | color | ) |
Definition at line 23 of file mythfontproperties.cpp.
Referenced by MythThemedMenuState::parseText(), MythUIText::Pulse(), and MythUIText::StopCycling().
| void MythFontProperties::SetShadow | ( | bool | on, | |
| const QPoint & | offset, | |||
| const QColor & | color, | |||
| int | alpha | |||
| ) |
Definition at line 29 of file mythfontproperties.cpp.
Referenced by MythThemedMenuState::parseShadow().
| void MythFontProperties::SetOutline | ( | bool | on, | |
| const QColor & | color, | |||
| int | size, | |||
| int | alpha | |||
| ) |
Definition at line 39 of file mythfontproperties.cpp.
Referenced by MythThemedMenuState::parseOutline().
| QFont MythFontProperties::face | ( | void | ) | const [inline] |
Definition at line 21 of file mythfontproperties.h.
Referenced by MythThemedMenuPrivate::addButton(), MythUIText::DrawSelf(), MythQtPainter::DrawText(), MythOpenGLPainter::GetImageFromString(), MythListButton::Init(), and ParseFromXml().
| QColor MythFontProperties::color | ( | void | ) | const [inline] |
Definition at line 22 of file mythfontproperties.h.
Referenced by MythQtPainter::DrawText(), MythOpenGLPainter::DrawText(), and MythUIText::Pulse().
| bool MythFontProperties::hasShadow | ( | void | ) | const [inline] |
Definition at line 24 of file mythfontproperties.h.
Referenced by MythQtPainter::DrawText(), and MythOpenGLPainter::DrawText().
| void MythFontProperties::GetShadow | ( | QPoint & | offset, | |
| QColor & | color, | |||
| int & | alpha | |||
| ) | const |
Definition at line 49 of file mythfontproperties.cpp.
Referenced by MythQtPainter::DrawText(), and MythOpenGLPainter::DrawText().
| bool MythFontProperties::hasOutline | ( | void | ) | const [inline] |
Definition at line 27 of file mythfontproperties.h.
Referenced by MythQtPainter::DrawText(), and MythOpenGLPainter::DrawText().
| void MythFontProperties::GetOutline | ( | QColor & | color, | |
| int & | size, | |||
| int & | alpha | |||
| ) | const |
Definition at line 56 of file mythfontproperties.cpp.
Referenced by MythQtPainter::DrawText(), and MythOpenGLPainter::DrawText().
| QString MythFontProperties::GetHash | ( | void | ) | const [inline] |
Definition at line 30 of file mythfontproperties.h.
Referenced by MythOpenGLPainter::GetImageFromString().
| MythFontProperties * MythFontProperties::ParseFromXml | ( | QDomElement & | element, | |
| bool | addToGlobal = false | |||
| ) | [static] |
Definition at line 92 of file mythfontproperties.cpp.
Referenced by XMLParseBase::doLoad(), XMLParseBase::ParseChildren(), MythThemedMenuState::parseSettings(), and XMLParseBase::ParseUIType().
| void MythFontProperties::Freeze | ( | void | ) | [private] |
| void MythFontProperties::Unfreeze | ( | void | ) | [private] |
| void MythFontProperties::CalcHash | ( | void | ) | [private] |
Definition at line 63 of file mythfontproperties.cpp.
Referenced by MythFontProperties(), SetColor(), SetFace(), SetOutline(), SetShadow(), and Unfreeze().
friend class FontMap [friend] |
Definition at line 58 of file mythfontproperties.h.
QFont MythFontProperties::m_face [private] |
Definition at line 41 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), face(), ParseFromXml(), and SetFace().
QColor MythFontProperties::m_color [private] |
Definition at line 42 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), color(), ParseFromXml(), and SetColor().
bool MythFontProperties::m_hasShadow [private] |
Definition at line 44 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), hasShadow(), ParseFromXml(), and SetShadow().
QPoint MythFontProperties::m_shadowOffset [private] |
Definition at line 45 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
QColor MythFontProperties::m_shadowColor [private] |
Definition at line 46 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
int MythFontProperties::m_shadowAlpha [private] |
Definition at line 47 of file mythfontproperties.h.
Referenced by CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
bool MythFontProperties::m_hasOutline [private] |
Definition at line 49 of file mythfontproperties.h.
Referenced by CalcHash(), hasOutline(), ParseFromXml(), and SetOutline().
QColor MythFontProperties::m_outlineColor [private] |
Definition at line 50 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
int MythFontProperties::m_outlineSize [private] |
Definition at line 51 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
int MythFontProperties::m_outlineAlpha [private] |
Definition at line 52 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
QString MythFontProperties::m_hash [private] |
bool MythFontProperties::m_bFreeze [private] |
Definition at line 56 of file mythfontproperties.h.
Referenced by CalcHash(), Freeze(), and Unfreeze().
1.5.5