The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Font Class Reference
+ Collaboration diagram for Font:

Public Member Functions

 Font (cairo_t *pCairo, size_t requestedSize, const char *pFilename, bool bCache, size_t nWidth)
 
virtual size_t render (PedigreeGraphics::Framebuffer *pFb, uint32_t c, size_t x, size_t y, uint32_t f, uint32_t b, bool bBack=true, bool bBold=false, bool bItalic=false, bool bUnderline=false)
 
virtual size_t render (const char *s, size_t x, size_t y, uint32_t f, uint32_t b, bool bBack=true, bool bBold=false, bool bItalic=false, bool bUnderline=false)
 
size_t getWidth ()
 
size_t getHeight ()
 
size_t getBaseline ()
 
const char * precache (uint32_t c)
 
void updateCairo (cairo_t *pCairo)
 

Private Member Functions

 Font (const Font &)
 
Fontoperator= (const Font &)
 

Private Attributes

size_t m_CellWidth
 
size_t m_CellHeight
 
size_t m_Baseline
 
std::map< uint32_t, char * > m_ConversionCache
 
struct FontLibrariesm_FontLibraries
 

Detailed Description

Definition at line 33 of file Font.h.

Constructor & Destructor Documentation

Font::Font ( cairo_t *  pCairo,
size_t  requestedSize,
const char *  pFilename,
bool  bCache,
size_t  nWidth 
)
Todo:
UTF-32 endianness

Definition at line 48 of file Font.cc.

Member Function Documentation

size_t Font::render ( const char *  s,
size_t  x,
size_t  y,
uint32_t  f,
uint32_t  b,
bool  bBack = true,
bool  bBold = false,
bool  bItalic = false,
bool  bUnderline = false 
)
virtual
Todo:
cleanup

Definition at line 127 of file Font.cc.


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