nux-0.9.48

nux::CairoFont Class Reference

#include <Nux/TextEntry.h>

Public Types

enum  Style { STYLE_NORMAL, STYLE_ITALIC }
enum  Weight { WEIGHT_NORMAL, WEIGHT_BOLD }
 

Enum used to specify font weight.

More...

Public Member Functions

 CairoFont (const std::string &family, double size, Style style, Weight weight)
 Constructor for CairoFont.
virtual ~CairoFont ()
virtual Style GetStyle () const
virtual Weight GetWeight () const
virtual double GetPointSize () const
virtual void Destroy ()
const PangoFontDescription * GetFontDescription () const

Member Enumeration Documentation

Enumerator:
STYLE_NORMAL 
STYLE_ITALIC 

Enum used to specify font weight.

Enumerator:
WEIGHT_NORMAL 
WEIGHT_BOLD 

Constructor & Destructor Documentation

nux::CairoFont::CairoFont ( const std::string &  family,
double  size,
Style  style,
Weight  weight 
)

Constructor for CairoFont.

Takes a PangoFontDescription object and its ownership. Will free the PangoFontDescription object on destruction.

virtual nux::CairoFont::~CairoFont ( ) [virtual]

Member Function Documentation

virtual void nux::CairoFont::Destroy ( ) [inline, virtual]
const PangoFontDescription* nux::CairoFont::GetFontDescription ( ) const [inline]
virtual double nux::CairoFont::GetPointSize ( ) const [inline, virtual]
virtual Style nux::CairoFont::GetStyle ( ) const [inline, virtual]
virtual Weight nux::CairoFont::GetWeight ( ) const [inline, virtual]

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