MythFontProperties Class Reference

#include <mythfontproperties.h>

Inheritance diagram for MythFontProperties:

XMLParseBase

List of all members.


Detailed Description

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 MythFontPropertiesParseFromXml (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

Constructor & Destructor Documentation

MythFontProperties::MythFontProperties (  ) 

Definition at line 10 of file mythfontproperties.cpp.

Referenced by ParseFromXml().


Member Function Documentation

void MythFontProperties::SetFace ( const QFont &  face  ) 

Definition at line 17 of file mythfontproperties.cpp.

Referenced by MythThemedMenuState::parseText().

void MythFontProperties::SetColor ( const QColor &  color  ) 

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]

QColor MythFontProperties::color ( void   )  const [inline]

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]

void MythFontProperties::Freeze ( void   )  [private]

Definition at line 81 of file mythfontproperties.cpp.

Referenced by ParseFromXml().

void MythFontProperties::Unfreeze ( void   )  [private]

Definition at line 86 of file mythfontproperties.cpp.

Referenced by ParseFromXml().

void MythFontProperties::CalcHash ( void   )  [private]


Friends And Related Function Documentation

friend class FontMap [friend]

Definition at line 58 of file mythfontproperties.h.


Member Data Documentation

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().

Definition at line 44 of file mythfontproperties.h.

Referenced by FontMap::AddFont(), CalcHash(), hasShadow(), ParseFromXml(), and SetShadow().

Definition at line 45 of file mythfontproperties.h.

Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().

Definition at line 46 of file mythfontproperties.h.

Referenced by FontMap::AddFont(), CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().

Definition at line 47 of file mythfontproperties.h.

Referenced by CalcHash(), GetShadow(), ParseFromXml(), and SetShadow().

Definition at line 49 of file mythfontproperties.h.

Referenced by CalcHash(), hasOutline(), ParseFromXml(), and SetOutline().

Definition at line 50 of file mythfontproperties.h.

Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().

Definition at line 51 of file mythfontproperties.h.

Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().

Definition at line 52 of file mythfontproperties.h.

Referenced by CalcHash(), GetOutline(), ParseFromXml(), and SetOutline().

QString MythFontProperties::m_hash [private]

Definition at line 54 of file mythfontproperties.h.

Referenced by CalcHash(), and GetHash().

Definition at line 56 of file mythfontproperties.h.

Referenced by CalcHash(), Freeze(), and Unfreeze().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:07 2010 for MythTV by  doxygen 1.5.5