#include <mythfontproperties.h>
Public Member Functions | |
| MythFontProperties () | |
| QFont * | GetFace (void) |
| 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 |
| QBrush | GetBrush (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 |
| void | GetOffset (QPoint &offset) const |
| void | SetRelativeSize (float rSize) |
| float | GetRelativeSize (void) const |
| void | SetPixelSize (float size) |
| void | SetPointSize (uint size) |
| void | Rescale (void) |
| void | Rescale (int height) |
| void | AdjustStretch (int stretch) |
Static Public Member Functions | |
| static MythFontProperties * | ParseFromXml (const QString &filename, const QDomElement &element, MythUIType *parent=NULL, bool addToGlobal=false, bool showWarnings=true) |
Private Member Functions | |
| void | Freeze (void) |
| void | Unfreeze (void) |
| void | CalcHash (void) |
Private Attributes | |
| QFont | m_face |
| QBrush | m_brush |
| bool | m_hasShadow |
| QPoint | m_shadowOffset |
| QColor | m_shadowColor |
| int | m_shadowAlpha |
| bool | m_hasOutline |
| QColor | m_outlineColor |
| int | m_outlineSize |
| int | m_outlineAlpha |
| QPoint | m_drawingOffset |
| float | m_relativeSize |
| QString | m_hash |
| bool | m_bFreeze |
| int | m_stretch |
Friends | |
| class | FontMap |
Definition at line 13 of file mythfontproperties.h.
| MythFontProperties::MythFontProperties | ( | ) |
Definition at line 18 of file mythfontproperties.cpp.
Referenced by ParseFromXml().
| QFont* MythFontProperties::GetFace | ( | void | ) | [inline] |
Definition at line 18 of file mythfontproperties.h.
Referenced by SubtitleScreen::CalcPadding(), SubtitleScreen::CalcTextSize(), SubtitleFormat::Complement(), SubtitleFormat::CreateProviderDefault(), SubtitleFormat::Diff(), FormattedTextSubtitle::Draw(), TeletextScreen::DrawCharacter(), fontToString(), SubtitleFormat::GetFont(), FormattedTextSubtitle::InitFromCC608(), SubtitleFormat::Load(), and TeletextScreen::Pulse().
| void MythFontProperties::SetFace | ( | const QFont & | face | ) |
Definition at line 25 of file mythfontproperties.cpp.
Referenced by MythUIType::Draw(), MythYUVAPainter::GetConvertedFont(), and TeletextScreen::InitialiseFont().
| void MythFontProperties::SetColor | ( | const QColor & | color | ) |
Definition at line 31 of file mythfontproperties.cpp.
Referenced by SubtitleFormat::Complement(), MythUIType::Draw(), MythYUVAPainter::GetConvertedFont(), SubtitleFormat::GetFont(), MythUIText::Pulse(), TeletextScreen::SetForegroundColor(), and MythUIText::StopCycling().
| void MythFontProperties::SetShadow | ( | bool | on, | |
| const QPoint & | offset, | |||
| const QColor & | color, | |||
| int | alpha | |||
| ) |
Definition at line 37 of file mythfontproperties.cpp.
Referenced by SubtitleFormat::Complement(), MythYUVAPainter::GetConvertedFont(), and SubtitleFormat::GetFont().
| void MythFontProperties::SetOutline | ( | bool | on, | |
| const QColor & | color, | |||
| int | size, | |||
| int | alpha | |||
| ) |
Definition at line 47 of file mythfontproperties.cpp.
Referenced by SubtitleFormat::Complement(), MythYUVAPainter::GetConvertedFont(), and SubtitleFormat::GetFont().
| QFont MythFontProperties::face | ( | void | ) | const [inline] |
Definition at line 25 of file mythfontproperties.h.
Referenced by TeletextScreen::DrawCharacter(), MythPainter::DrawTextPriv(), MythYUVAPainter::GetConvertedFont(), MythPainter::GetImageFromTextLayout(), SubtitleScreen::GetTeletextFontName(), TeletextScreen::InitialiseFont(), MythUIText::LayoutParagraphs(), ParseFromXml(), and MythUITextEdit::SetInitialStates().
| QColor MythFontProperties::color | ( | void | ) | const [inline] |
Definition at line 26 of file mythfontproperties.h.
Referenced by SubtitleFormat::Complement(), SubtitleFormat::Diff(), TeletextScreen::DrawCharacter(), MythPainter::DrawTextPriv(), fontToString(), MythYUVAPainter::GetConvertedFont(), MythPainter::GetImageFromString(), and MythUIText::Pulse().
| QBrush MythFontProperties::GetBrush | ( | void | ) | const [inline] |
Definition at line 27 of file mythfontproperties.h.
Referenced by MythPainter::DrawTextPriv(), and MythPainter::GetImageFromTextLayout().
| bool MythFontProperties::hasShadow | ( | void | ) | const [inline] |
Definition at line 29 of file mythfontproperties.h.
Referenced by CalcShadowOffsetPadding(), SubtitleFormat::Complement(), SubtitleFormat::Diff(), MythUIText::DrawSelf(), MythPainter::DrawTextPriv(), fontToString(), MythYUVAPainter::GetConvertedFont(), SubtitleFormat::GetFont(), and MythPainter::GetImageFromTextLayout().
| void MythFontProperties::GetShadow | ( | QPoint & | offset, | |
| QColor & | color, | |||
| int & | alpha | |||
| ) | const |
Definition at line 57 of file mythfontproperties.cpp.
Referenced by CalcShadowOffsetPadding(), SubtitleFormat::Complement(), SubtitleFormat::Diff(), MythUIText::DrawSelf(), MythPainter::DrawTextPriv(), fontToString(), MythYUVAPainter::GetConvertedFont(), SubtitleFormat::GetFont(), and MythPainter::GetImageFromTextLayout().
| bool MythFontProperties::hasOutline | ( | void | ) | const [inline] |
Definition at line 32 of file mythfontproperties.h.
Referenced by CalcShadowOffsetPadding(), SubtitleFormat::Complement(), SubtitleFormat::Diff(), MythUIText::DrawSelf(), MythPainter::DrawTextPriv(), fontToString(), MythYUVAPainter::GetConvertedFont(), and SubtitleFormat::GetFont().
| void MythFontProperties::GetOutline | ( | QColor & | color, | |
| int & | size, | |||
| int & | alpha | |||
| ) | const |
Definition at line 64 of file mythfontproperties.cpp.
Referenced by CalcShadowOffsetPadding(), SubtitleFormat::Complement(), SubtitleFormat::Diff(), MythUIText::DrawSelf(), MythPainter::DrawTextPriv(), fontToString(), MythYUVAPainter::GetConvertedFont(), and SubtitleFormat::GetFont().
| QString MythFontProperties::GetHash | ( | void | ) | const [inline] |
Definition at line 35 of file mythfontproperties.h.
Referenced by MythYUVAPainter::GetConvertedFont(), MythPainter::GetImageFromString(), MythPainter::GetImageFromTextLayout(), MythUIText::SetFontProperties(), and MythUIText::SetFontState().
| MythFontProperties * MythFontProperties::ParseFromXml | ( | const QString & | filename, | |
| const QDomElement & | element, | |||
| MythUIType * | parent = NULL, |
|||
| bool | addToGlobal = false, |
|||
| bool | showWarnings = true | |||
| ) | [static] |
Definition at line 172 of file mythfontproperties.cpp.
Referenced by XMLParseBase::doLoad(), XMLParseBase::ParseChildren(), and XMLParseBase::ParseUIType().
| void MythFontProperties::GetOffset | ( | QPoint & | offset | ) | const |
Definition at line 71 of file mythfontproperties.cpp.
Referenced by MythPainter::DrawTextPriv().
| void MythFontProperties::SetRelativeSize | ( | float | rSize | ) | [inline] |
Definition at line 44 of file mythfontproperties.h.
| float MythFontProperties::GetRelativeSize | ( | void | ) | const [inline] |
Definition at line 45 of file mythfontproperties.h.
| void MythFontProperties::SetPixelSize | ( | float | size | ) |
Definition at line 148 of file mythfontproperties.cpp.
Referenced by ParseFromXml(), and SetPointSize().
| void MythFontProperties::SetPointSize | ( | uint | size | ) |
Definition at line 155 of file mythfontproperties.cpp.
Referenced by MythUIType::Draw(), and ParseFromXml().
| void MythFontProperties::Rescale | ( | void | ) |
Definition at line 132 of file mythfontproperties.cpp.
Referenced by MythUIText::ParseElement(), and MythUIGuideGrid::ParseElement().
| void MythFontProperties::Rescale | ( | int | height | ) |
Definition at line 127 of file mythfontproperties.cpp.
| void MythFontProperties::AdjustStretch | ( | int | stretch | ) |
Definition at line 138 of file mythfontproperties.cpp.
Referenced by MythUIText::ParseElement(), and MythUIGuideGrid::ParseElement().
| void MythFontProperties::Freeze | ( | void | ) | [private] |
Definition at line 161 of file mythfontproperties.cpp.
Referenced by ParseFromXml().
| void MythFontProperties::Unfreeze | ( | void | ) | [private] |
Definition at line 166 of file mythfontproperties.cpp.
Referenced by ParseFromXml().
| void MythFontProperties::CalcHash | ( | void | ) | [private] |
Definition at line 76 of file mythfontproperties.cpp.
Referenced by MythFontProperties(), SetColor(), SetFace(), SetOutline(), SetShadow(), and Unfreeze().
friend class FontMap [friend] |
Definition at line 81 of file mythfontproperties.h.
QFont MythFontProperties::m_face [private] |
Definition at line 58 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), AdjustStretch(), CalcHash(), ParseFromXml(), Rescale(), SetFace(), and SetPixelSize().
QBrush MythFontProperties::m_brush [private] |
Definition at line 59 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), ParseFromXml(), and SetColor().
bool MythFontProperties::m_hasShadow [private] |
Definition at line 61 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), ParseFromXml(), and SetShadow().
QPoint MythFontProperties::m_shadowOffset [private] |
Definition at line 62 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
QColor MythFontProperties::m_shadowColor [private] |
Definition at line 63 of file mythfontproperties.h.
Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
int MythFontProperties::m_shadowAlpha [private] |
Definition at line 64 of file mythfontproperties.h.
Referenced by CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().
bool MythFontProperties::m_hasOutline [private] |
Definition at line 66 of file mythfontproperties.h.
Referenced by CalcHash(), ParseFromXml(), and SetOutline().
QColor MythFontProperties::m_outlineColor [private] |
Definition at line 67 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
int MythFontProperties::m_outlineSize [private] |
Definition at line 68 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
int MythFontProperties::m_outlineAlpha [private] |
Definition at line 69 of file mythfontproperties.h.
Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().
QPoint MythFontProperties::m_drawingOffset [private] |
Definition at line 71 of file mythfontproperties.h.
Referenced by CalcHash(), and GetOffset().
float MythFontProperties::m_relativeSize [private] |
Definition at line 73 of file mythfontproperties.h.
Referenced by Rescale(), and SetPixelSize().
QString MythFontProperties::m_hash [private] |
Definition at line 75 of file mythfontproperties.h.
Referenced by CalcHash().
bool MythFontProperties::m_bFreeze [private] |
Definition at line 77 of file mythfontproperties.h.
Referenced by CalcHash(), Freeze(), and Unfreeze().
int MythFontProperties::m_stretch [private] |
Definition at line 79 of file mythfontproperties.h.
Referenced by AdjustStretch(), and ParseFromXml().
1.6.3