MythFontProperties Class Reference

#include <mythfontproperties.h>

Inheritance diagram for MythFontProperties:
XMLParseBase

List of all members.

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

Detailed Description

Definition at line 13 of file mythfontproperties.h.


Constructor & Destructor Documentation

MythFontProperties::MythFontProperties (  ) 

Definition at line 18 of file mythfontproperties.cpp.

Referenced by ParseFromXml().


Member Function Documentation

QFont* MythFontProperties::GetFace ( void   )  [inline]
void MythFontProperties::SetFace ( const QFont &  face  ) 
void MythFontProperties::SetColor ( const QColor &  color  ) 
void MythFontProperties::SetShadow ( bool  on,
const QPoint &  offset,
const QColor &  color,
int  alpha 
)
void MythFontProperties::SetOutline ( bool  on,
const QColor &  color,
int  size,
int  alpha 
)
QFont MythFontProperties::face ( void   )  const [inline]
QColor MythFontProperties::color ( void   )  const [inline]
QBrush MythFontProperties::GetBrush ( void   )  const [inline]
bool MythFontProperties::hasShadow ( void   )  const [inline]
void MythFontProperties::GetShadow ( QPoint &  offset,
QColor &  color,
int &  alpha 
) const
bool MythFontProperties::hasOutline ( void   )  const [inline]
void MythFontProperties::GetOutline ( QColor &  color,
int &  size,
int &  alpha 
) const
QString MythFontProperties::GetHash ( void   )  const [inline]
MythFontProperties * MythFontProperties::ParseFromXml ( const QString &  filename,
const QDomElement &  element,
MythUIType parent = NULL,
bool  addToGlobal = false,
bool  showWarnings = true 
) [static]
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   ) 
void MythFontProperties::Rescale ( int  height  ) 

Definition at line 127 of file mythfontproperties.cpp.

void MythFontProperties::AdjustStretch ( int  stretch  ) 
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]

Friends And Related Function Documentation

friend class FontMap [friend]

Definition at line 81 of file mythfontproperties.h.


Member Data Documentation

QFont MythFontProperties::m_face [private]
QBrush MythFontProperties::m_brush [private]

Definition at line 59 of file mythfontproperties.h.

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

Definition at line 61 of file mythfontproperties.h.

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

Definition at line 62 of file mythfontproperties.h.

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

Definition at line 63 of file mythfontproperties.h.

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

Definition at line 64 of file mythfontproperties.h.

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

Definition at line 66 of file mythfontproperties.h.

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

Definition at line 67 of file mythfontproperties.h.

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

Definition at line 68 of file mythfontproperties.h.

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

Definition at line 69 of file mythfontproperties.h.

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

Definition at line 71 of file mythfontproperties.h.

Referenced by CalcHash(), and GetOffset().

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

Definition at line 77 of file mythfontproperties.h.

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

Definition at line 79 of file mythfontproperties.h.

Referenced by AdjustStretch(), and ParseFromXml().


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:15 2012 for MythTV by  doxygen 1.6.3