sptk2 logo
SPTK Home Page

sptk::CFont Class Reference
[GUI Classes]

Font information. More...

#include <CFont.h>

List of all members.

Public Member Functions

 CFont (std::string name="arial", uint32_t size=10, uint32_t color=0, uint32_t index=0, uint32_t attributes=0)
 Constructor.
 CFont (const CFont &font)
 Copy constructor.
std::string name () const
 Returns font name.
uint32_t size () const
 Returns font size.
uint32_t color () const
 Returns font color.
uint32_t index () const
 Returns font index in the fonts collection.
uint32_t attributes () const
 Returns font attributes.
std::string id () const
 Returns unique font id.


Detailed Description

Font information.

Constructor & Destructor Documentation

sptk::CFont::CFont ( std::string  name = "arial",
uint32_t  size = 10,
uint32_t  color = 0,
uint32_t  index = 0,
uint32_t  attributes = 0 
) [inline]

Constructor.

Parameters:
name std::string, full font name
size uint32_t, font size
color uint32_t, font color
index uint32_t, font index in the fonts collection
attributes uint32_t, optional font attributes

References attributes(), color(), index(), name(), and size().

sptk::CFont::CFont ( const CFont font  )  [inline]

Copy constructor.

Parameters:
font const CFont&, font to copy from

References m_attributes, m_color, m_index, m_name, and m_size.


Member Function Documentation

std::string sptk::CFont::id (  )  const

Returns unique font id.

Font id combines all the font attributes separated with "|"


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

Mon Mar 5 11:56:14 2012: SPTK 3.5.7