COpenFontGlyph Class Reference

class COpenFontGlyph

Note: this class must be self-contained, since instances are added to an RHexTree , that is, it must be possible to destroy instances simply with RHeap::Free() .

Constructor & Destructor Documentation

COpenFontGlyph(TInt, TInt, const TOpenFontCharMetrics &)

COpenFontGlyph ( TInt aCode,
TInt aGlyphIndex,
const TOpenFontCharMetrics & aMetrics
) [protected, inline]

Parameters

TInt aCode
TInt aGlyphIndex
const TOpenFontCharMetrics & aMetrics

~COpenFontGlyph()

~COpenFontGlyph ( ) [protected, inline]

Member Functions Documentation

Bitmap()

const TUint8 * Bitmap ( ) const [inline]

Delete(RHeap *, COpenFontGlyph *)

void Delete ( RHeap * aHeap,
COpenFontGlyph * aGlyph
) [static, inline]

Parameters

RHeap * aHeap
COpenFontGlyph * aGlyph

New(RHeap *, TInt, TInt, const TOpenFontCharMetrics &, const TDesC8 &)

COpenFontGlyph * New ( RHeap * aHeap,
TInt aCode,
TInt aGlyphIndex,
const TOpenFontCharMetrics & aMetrics,
const TDesC8 & aBitmap
) [static]

Create a glyph data object on the shared heap, given the code, metrics and the data bytes. The data is copied; ownership remains with the caller.

Parameters

RHeap * aHeap
TInt aCode
TInt aGlyphIndex
const TOpenFontCharMetrics & aMetrics
const TDesC8 & aBitmap

SetBitmap(const TAny *)

void SetBitmap ( const TAny * aBitmap ) [protected]

Parameters

const TAny * aBitmap

Member Data Documentation

TInt iBitmapOffset

TInt iBitmapOffset [private]

const TInt iCode

const TInt iCode

const TInt iGlyphIndex

const TInt iGlyphIndex

const TOpenFontCharMetrics iMetrics

const TOpenFontCharMetrics iMetrics