vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cGlyph Class Reference

Public Member Functions

 cGlyph (uint CharCode, FT_GlyphSlotRec_ *GlyphData)
 
virtual ~cGlyph ()
 
uint CharCode (void) const
 
ucharBitmap (void) const
 
int AdvanceX (void) const
 
int AdvanceY (void) const
 
int Left (void) const
 
int Top (void) const
 
int Width (void) const
 
int Rows (void) const
 
int Pitch (void) const
 
int GetKerningCache (uint PrevSym) const
 
void SetKerningCache (uint PrevSym, int Kerning)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Private Attributes

uint charCode
 
ucharbitmap
 
int advanceX
 
int advanceY
 
int left
 
int top
 
int width
 
int rows
 
int pitch
 
cVector< tKerningkerningCache
 

Detailed Description

Definition at line 38 of file font.c.

Constructor & Destructor Documentation

cGlyph::cGlyph ( uint  CharCode,
FT_GlyphSlotRec_ *  GlyphData 
)

Definition at line 66 of file font.c.

References MALLOC.

cGlyph::~cGlyph ( )
virtual

Definition at line 80 of file font.c.

Member Function Documentation

int cGlyph::AdvanceX ( void  ) const
inline

Definition at line 55 of file font.c.

Referenced by cFreetypeFont::DrawText(), and cFreetypeFont::Width().

int cGlyph::AdvanceY ( void  ) const
inline

Definition at line 56 of file font.c.

uchar* cGlyph::Bitmap ( void  ) const
inline

Definition at line 54 of file font.c.

Referenced by cFreetypeFont::DrawText().

uint cGlyph::CharCode ( void  ) const
inline

Definition at line 53 of file font.c.

Referenced by cFreetypeFont::Kerning().

int cGlyph::GetKerningCache ( uint  PrevSym) const

Definition at line 85 of file font.c.

References KERNING_UNKNOWN, and tKerning::prevSym.

Referenced by cFreetypeFont::Kerning().

int cGlyph::Left ( void  ) const
inline

Definition at line 57 of file font.c.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Pitch ( void  ) const
inline

Definition at line 61 of file font.c.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Rows ( void  ) const
inline

Definition at line 60 of file font.c.

Referenced by cFreetypeFont::DrawText().

void cGlyph::SetKerningCache ( uint  PrevSym,
int  Kerning 
)

Definition at line 94 of file font.c.

References tKerning::tKerning().

Referenced by cFreetypeFont::Kerning().

int cGlyph::Top ( void  ) const
inline

Definition at line 58 of file font.c.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Width ( void  ) const
inline

Definition at line 59 of file font.c.

Referenced by cFreetypeFont::DrawText().

Member Data Documentation

int cGlyph::advanceX
private

Definition at line 42 of file font.c.

int cGlyph::advanceY
private

Definition at line 43 of file font.c.

uchar* cGlyph::bitmap
private

Definition at line 41 of file font.c.

uint cGlyph::charCode
private

Definition at line 40 of file font.c.

cVector<tKerning> cGlyph::kerningCache
private

Definition at line 49 of file font.c.

int cGlyph::left
private

The bitmap's left bearing expressed in integer pixels.

Definition at line 44 of file font.c.

int cGlyph::pitch
private

The pitch's absolute value is the number of bytes taken by one bitmap row, including padding.

Definition at line 48 of file font.c.

int cGlyph::rows
private

The number of bitmap rows.

Definition at line 47 of file font.c.

int cGlyph::top
private

The bitmap's top bearing expressed in integer pixels.

Definition at line 45 of file font.c.

int cGlyph::width
private

The number of pixels per bitmap row.

Definition at line 46 of file font.c.


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