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().

Public Member Functions
const TUint8 *Bitmap()
voidDelete(RHeap *, COpenFontGlyph *)
COpenFontGlyph *New(RHeap *, TInt, TInt, const TOpenFontCharMetrics &, const TDesC8 &)
Protected Member Functions
COpenFontGlyph(TInt, TInt, const TOpenFontCharMetrics &)
~COpenFontGlyph()
voidSetBitmap(const TAny *)
Public Attributes
const TIntiCode
const TIntiGlyphIndex
const TOpenFontCharMetricsiMetrics
Private Attributes
TInt iBitmapOffset

Constructor & Destructor Documentation

COpenFontGlyph(TInt, TInt, const TOpenFontCharMetrics &)

COpenFontGlyph(TIntaCode,
TIntaGlyphIndex,
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 *)

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

Parameters

RHeap * aHeap
COpenFontGlyph * aGlyph

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

COpenFontGlyph *New(RHeap *aHeap,
TIntaCode,
TIntaGlyphIndex,
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 *)

voidSetBitmap(const TAny *aBitmap)[protected]

Parameters

const TAny * aBitmap

Member Data Documentation

TInt iBitmapOffset

TInt iBitmapOffset[private]

const TInt iCode

const TIntiCode

const TInt iGlyphIndex

const TIntiGlyphIndex

const TOpenFontCharMetrics iMetrics

const TOpenFontCharMetricsiMetrics