cGlyph Class Reference

Inheritance diagram for cGlyph:

Inheritance graph
[legend]
Collaboration diagram for cGlyph:

Collaboration graph
[legend]

List of all members.

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)

Private Attributes

uint charCode
ucharbitmap
int advanceX
int advanceY
int left
 The bitmap's left bearing expressed in integer pixels.
int top
 The bitmap's top bearing expressed in integer pixels.
int width
 The number of pixels per bitmap row.
int rows
 The number of bitmap rows.
int pitch
 The pitch's absolute value is the number of bytes taken by one bitmap row, including padding.
cVector< tKerningkerningCache


Detailed Description

Definition at line 33 of file font.c.


Constructor & Destructor Documentation

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

Definition at line 61 of file font.c.

References advanceX, advanceY, bitmap, charCode, left, MALLOC, pitch, rows, top, and width.

cGlyph::~cGlyph (  )  [virtual]

Definition at line 75 of file font.c.

References bitmap.


Member Function Documentation

uint cGlyph::CharCode ( void   )  const [inline]

Definition at line 48 of file font.c.

References charCode.

Referenced by cFreetypeFont::Kerning().

uchar* cGlyph::Bitmap ( void   )  const [inline]

Definition at line 49 of file font.c.

References bitmap.

Referenced by cFreetypeFont::DrawText().

int cGlyph::AdvanceX ( void   )  const [inline]

Definition at line 50 of file font.c.

References advanceX.

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

int cGlyph::AdvanceY ( void   )  const [inline]

Definition at line 51 of file font.c.

References advanceY.

int cGlyph::Left ( void   )  const [inline]

Definition at line 52 of file font.c.

References left.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Top ( void   )  const [inline]

Definition at line 53 of file font.c.

References top.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Width ( void   )  const [inline]

Definition at line 54 of file font.c.

References width.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Rows ( void   )  const [inline]

Definition at line 55 of file font.c.

References rows.

Referenced by cFreetypeFont::DrawText().

int cGlyph::Pitch ( void   )  const [inline]

Definition at line 56 of file font.c.

References pitch.

Referenced by cFreetypeFont::DrawText().

int cGlyph::GetKerningCache ( uint  PrevSym  )  const

Definition at line 80 of file font.c.

References KERNING_UNKNOWN, kerningCache, and cVector< T >::Size().

Referenced by cFreetypeFont::Kerning().

Here is the call graph for this function:

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

Definition at line 89 of file font.c.

References cVector< T >::Append(), and kerningCache.

Referenced by cFreetypeFont::Kerning().

Here is the call graph for this function:


Member Data Documentation

uint cGlyph::charCode [private]

Definition at line 35 of file font.c.

Referenced by cGlyph(), and CharCode().

uchar* cGlyph::bitmap [private]

Definition at line 36 of file font.c.

Referenced by Bitmap(), cGlyph(), and ~cGlyph().

int cGlyph::advanceX [private]

Definition at line 37 of file font.c.

Referenced by AdvanceX(), and cGlyph().

int cGlyph::advanceY [private]

Definition at line 38 of file font.c.

Referenced by AdvanceY(), and cGlyph().

int cGlyph::left [private]

The bitmap's left bearing expressed in integer pixels.

Definition at line 39 of file font.c.

Referenced by cGlyph(), and Left().

int cGlyph::top [private]

The bitmap's top bearing expressed in integer pixels.

Definition at line 40 of file font.c.

Referenced by cGlyph(), and Top().

int cGlyph::width [private]

The number of pixels per bitmap row.

Definition at line 41 of file font.c.

Referenced by cGlyph(), and Width().

int cGlyph::rows [private]

The number of bitmap rows.

Definition at line 42 of file font.c.

Referenced by cGlyph(), and Rows().

int cGlyph::pitch [private]

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

Definition at line 43 of file font.c.

Referenced by cGlyph(), and Pitch().

Definition at line 44 of file font.c.

Referenced by GetKerningCache(), and SetKerningCache().


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

Generated on Tue Jan 13 14:29:03 2009 for VDR by  doxygen 1.5.6