kodi
Public Member Functions | Protected Attributes | List of all members
Collaboration diagram for CGUIFont:
Collaboration graph
[legend]

Public Member Functions

 CGUIFont (const std::string &strFontName, uint32_t style, UTILS::COLOR::Color textColor, UTILS::COLOR::Color shadowColor, float lineSpacing, float origHeight, CGUIFontTTF *font)
 
std::string & GetFontName ()
 
void DrawText (float x, float y, UTILS::COLOR::Color color, UTILS::COLOR::Color shadowColor, const vecText &text, uint32_t alignment, float maxPixelWidth)
 
void DrawText (float x, float y, const std::vector< UTILS::COLOR::Color > &colors, UTILS::COLOR::Color shadowColor, const vecText &text, uint32_t alignment, float maxPixelWidth)
 
void DrawScrollingText (float x, float y, const std::vector< UTILS::COLOR::Color > &colors, UTILS::COLOR::Color shadowColor, const vecText &text, uint32_t alignment, float maxPixelWidth, const CScrollInfo &scrollInfo)
 
bool UpdateScrollInfo (const vecText &text, CScrollInfo &scrollInfo)
 
float GetTextWidth (const vecText &text)
 
float GetCharWidth (character_t ch)
 
float GetTextHeight (int numLines) const
 
float GetTextBaseLine () const
 
float GetLineHeight () const
 
float GetScaleFactor () const
 get font scale factor (rendered height / original height)
 
void Begin ()
 
void End ()
 
uint32_t GetStyle () const
 
CGUIFontTTFGetFont () const
 
void SetFont (CGUIFontTTF *font)
 

Protected Attributes

std::string m_strFontName
 
uint32_t m_style
 
UTILS::COLOR::Color m_shadowColor
 
UTILS::COLOR::Color m_textColor
 
float m_lineSpacing
 
float m_origHeight
 
CGUIFontTTFm_font
 

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