10#ifndef __FONTCACHE_H__
11#define __FONTCACHE_H__
16#include "GUIImageData.h"
74 const eC_UInt& uiInitialCacheSize,
75 const eC_Bool& bAutoResize,
76 const eC_UInt& uiResizeBy);
Helper Macros in Guiliani
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54
FontCache is the base-class for glyph-cache.
Definition: FontCache.h:24
void Swap(CachedChar_t *pPosA, CachedChar_t *pPosB)
eC_Bool m_bAutoResize
auto-resize
Definition: FontCache.h:171
eC_Bool m_bArrayNeedsSorting
sorting needed after modification
Definition: FontCache.h:176
eC_UInt FindLowestTimestampPos()
CFontCache(const CFontCache &kSource)
virtual void RemoveChar(const eC_UInt &uiPos)
eC_UInt m_uiTimer
current timer
Definition: FontCache.h:169
eC_TArray< CachedChar_t > m_asCache
The dynamic cache array.
Definition: FontCache.h:174
eC_Int FindChar(const eC_UInt &uiUnicode)
eC_Int GetDescender() const
Definition: FontCache.h:101
void * m_pkFace
face of font
Definition: FontCache.h:177
eC_Int m_iInternalLeading
internal leading
Definition: FontCache.h:165
eC_Int GetHeight() const
Definition: FontCache.h:91
void * GetFace()
Definition: FontCache.h:111
eC_Int m_iDescender
descender
Definition: FontCache.h:164
eC_Int m_iAscender
ascender
Definition: FontCache.h:163
eC_Int m_iHeight
height of font
Definition: FontCache.h:166
virtual CachedChar_t AddChar(const eC_UInt &uiUnicode, const eC_UInt &uiPos)=0
eC_Int GetAscender() const
Definition: FontCache.h:96
eC_Bool m_bUseTimeStamp
timestamp
Definition: FontCache.h:168
eC_UInt m_uiResizeBy
resize by amount
Definition: FontCache.h:172
eC_Int GetInternalLeading() const
Definition: FontCache.h:106
FontResource_t m_eFontID
loaded font
Definition: FontCache.h:162
eC_UInt m_uiNextGlyphIndex
index of next glyph
Definition: FontCache.h:167
CFontCache & operator=(const CFontCache &kSource)
CFontCache(const FontResource_t &eFontID, const eC_UInt &uiInitialCacheSize, const eC_Bool &bAutoResize, const eC_UInt &uiResizeBy)
CachedChar_t GetChar(const eC_UInt &uiUnicode)
Contains information about an image loaded by CGUIImageLoader.
Definition: GUIImageData.h:29
struct for holding the unicode and a pointer to the related info-block
Definition: FontCache.h:53
eC_UInt m_uiUnicode
unicode
Definition: FontCache.h:59
CachedCharInfo_t * m_pkInfo
info-block
Definition: FontCache.h:60
Definition: FontCache.h:29
eC_UInt m_uiWidth
Total width of character with space on the left and right.
Definition: FontCache.h:45
eC_Int m_iBitmapRows
Bitmap height.
Definition: FontCache.h:43
eC_Int m_iBitmapGlyphLeft
Glyph bitmap position offset.
Definition: FontCache.h:41
eC_Int m_iBitmapWidth
Width of the bitmap itself.
Definition: FontCache.h:44
eC_Int m_iBitmapGlyphTop
Glyph bitmap position offset.
Definition: FontCache.h:42
CGUIImageData * m_pkImageData
image-data
Definition: FontCache.h:48
eC_UInt m_uiTimestamp
Stores timestamp of last access.
Definition: FontCache.h:46
eC_UInt m_uiXAdvance
x-advance
Definition: FontCache.h:47