vdr 2.7.7
cGlyph Class Reference

Public Member Functions

 cGlyph (uint CharCode, FT_GlyphSlotRec_ *GlyphData)
virtual ~cGlyph () override
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::cGlyph ( uint CharCode,
FT_GlyphSlotRec_ * GlyphData )

Definition at line 66 of file font.c.

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

◆ ~cGlyph()

cGlyph::~cGlyph ( )
overridevirtual

Definition at line 81 of file font.c.

References bitmap.

Member Function Documentation

◆ AdvanceX()

int cGlyph::AdvanceX ( void ) const
inline

◆ AdvanceY()

int cGlyph::AdvanceY ( void ) const
inline

Definition at line 56 of file font.c.

References advanceY.

◆ Bitmap()

uchar * cGlyph::Bitmap ( void ) const
inline

Definition at line 54 of file font.c.

References bitmap.

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

◆ CharCode()

uint cGlyph::CharCode ( void ) const
inline

Definition at line 53 of file font.c.

References charCode.

Referenced by cGlyph().

◆ GetKerningCache()

int cGlyph::GetKerningCache ( uint PrevSym) const

Definition at line 86 of file font.c.

References KERNING_UNKNOWN, and kerningCache.

◆ Left()

int cGlyph::Left ( void ) const
inline

Definition at line 57 of file font.c.

References left.

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

◆ Pitch()

int cGlyph::Pitch ( void ) const
inline

Definition at line 61 of file font.c.

References pitch.

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

◆ Rows()

int cGlyph::Rows ( void ) const
inline

Definition at line 60 of file font.c.

References rows.

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

◆ SetKerningCache()

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

Definition at line 95 of file font.c.

References kerningCache.

◆ Top()

int cGlyph::Top ( void ) const
inline

Definition at line 58 of file font.c.

References top.

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

◆ Width()

int cGlyph::Width ( void ) const
inline

Definition at line 59 of file font.c.

References width.

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

Member Data Documentation

◆ advanceX

int cGlyph::advanceX
private

Definition at line 42 of file font.c.

Referenced by AdvanceX(), and cGlyph().

◆ advanceY

int cGlyph::advanceY
private

Definition at line 43 of file font.c.

Referenced by AdvanceY(), and cGlyph().

◆ bitmap

uchar* cGlyph::bitmap
private

Definition at line 41 of file font.c.

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

◆ charCode

uint cGlyph::charCode
private

Definition at line 40 of file font.c.

Referenced by cGlyph(), and CharCode().

◆ kerningCache

cVector<tKerning> cGlyph::kerningCache
private

Definition at line 49 of file font.c.

Referenced by GetKerningCache(), and SetKerningCache().

◆ left

int cGlyph::left
private

The bitmap's left bearing expressed in integer pixels.

Definition at line 44 of file font.c.

Referenced by cGlyph(), and Left().

◆ pitch

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.

Referenced by cGlyph(), and Pitch().

◆ rows

int cGlyph::rows
private

The number of bitmap rows.

Definition at line 47 of file font.c.

Referenced by cGlyph(), and Rows().

◆ top

int cGlyph::top
private

The bitmap's top bearing expressed in integer pixels.

Definition at line 45 of file font.c.

Referenced by cGlyph(), and Top().

◆ width

int cGlyph::width
private

The number of pixels per bitmap row.

Definition at line 46 of file font.c.

Referenced by cGlyph(), and Width().


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