Guiliani  Version 2.6 revision 7293 (documentation build 12)
CFontCacheGlyphLib Class Reference

#include <FontCacheGlyphLib.h>

Inheritance diagram for CFontCacheGlyphLib:

Public Member Functions

 CFontCacheGlyphLib (gui_font_t *pkFont, const FontResource_t &eFontID, const eC_UInt &uiInitialCacheSize, const eC_Bool &bAutoResize, const eC_UInt &uiResizeBy)
 
virtual ~CFontCacheGlyphLib ()
 
- Public Member Functions inherited from CFontCache
 CFontCache (const FontResource_t &eFontID, const eC_UInt &uiInitialCacheSize, const eC_Bool &bAutoResize, const eC_UInt &uiResizeBy)
 
virtual ~CFontCache ()
 
eC_Int GetAscender () const
 
CachedChar_t GetChar (const eC_UInt &uiUnicode)
 
eC_Int GetDescender () const
 
void * GetFace ()
 
eC_Int GetHeight () const
 
eC_Int GetInternalLeading () const
 

Protected Member Functions

 CFontCacheGlyphLib (const CFontCacheGlyphLib &kSource)
 
virtual CachedChar_t AddChar (const eC_UInt &uiUnicode, const eC_UInt &uiPos)
 
CFontCacheGlyphLiboperator= (const CFontCacheGlyphLib &kSource)
 
- Protected Member Functions inherited from CFontCache
 CFontCache (const CFontCache &kSource)
 
virtual CachedChar_t AddChar (const eC_UInt &uiUnicode, const eC_UInt &uiPos)=0
 
eC_Int FindChar (const eC_UInt &uiUnicode)
 
eC_UInt FindLowestTimestampPos ()
 
CFontCacheoperator= (const CFontCache &kSource)
 
virtual void RemoveChar (const eC_UInt &uiPos)
 
void Sort ()
 
void Swap (CachedChar_t *pPosA, CachedChar_t *pPosB)
 

Additional Inherited Members

- Protected Attributes inherited from CFontCache
eC_TArray< CachedChar_tm_asCache
 The dynamic cache array.
 
eC_Bool m_bArrayNeedsSorting
 sorting needed after modification
 
eC_Bool m_bAutoResize
 auto-resize
 
eC_Bool m_bUseTimeStamp
 timestamp
 
FontResource_t m_eFontID
 loaded font
 
eC_Int m_iAscender
 ascender
 
eC_Int m_iDescender
 descender
 
eC_Int m_iHeight
 height of font
 
eC_Int m_iInternalLeading
 internal leading
 
void * m_pkFace
 face of font
 
eC_UInt m_uiNextGlyphIndex
 index of next glyph
 
eC_UInt m_uiResizeBy
 resize by amount
 
eC_UInt m_uiTimer
 current timer
 

Detailed Description

This class is used to cache glyphs loaded by GlyphLib. It stores the cache information for one Font.

Constructor & Destructor Documentation

◆ CFontCacheGlyphLib() [1/2]

CFontCacheGlyphLib::CFontCacheGlyphLib ( gui_font_t *  pkFont,
const FontResource_t eFontID,
const eC_UInt &  uiInitialCacheSize,
const eC_Bool &  bAutoResize,
const eC_UInt &  uiResizeBy 
)

Constructor

Parameters
eFontIDID of selected font.
pkFontPointer of initialized FreeType library.
uiInitialCacheSizeinitial number of simultaneously cached characters. If parameter equals zero the cache will automatically be resized to be large enough to contain all required characters.
bAutoResizeif true the cache gets resized if not big enough to hold new entries
uiResizeBynumber of elements which are added on resize

◆ ~CFontCacheGlyphLib()

virtual CFontCacheGlyphLib::~CFontCacheGlyphLib ( )
virtual

Destructor

◆ CFontCacheGlyphLib() [2/2]

CFontCacheGlyphLib::CFontCacheGlyphLib ( const CFontCacheGlyphLib kSource)
protected

Copy-constructor. Dummy implementation to avoid unintended use of compiler-generated default

Parameters
kSource

Member Function Documentation

◆ AddChar()

virtual CachedChar_t CFontCacheGlyphLib::AddChar ( const eC_UInt &  uiUnicode,
const eC_UInt &  uiPos 
)
protectedvirtual

Adds a character to the cache array and sorts array afterwards.

Parameters
uiUnicodeUnicode to add to array.
uiPosPosition in array where the character should be added.
Returns
Struct of just added character.

Implements CFontCache.

◆ operator=()

CFontCacheGlyphLib & CFontCacheGlyphLib::operator= ( const CFontCacheGlyphLib kSource)
protected

Operator= method. Dummy implementation to avoid unintended use of compiler-generated default

Parameters
kSource
Returns

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