10#ifndef __FNT_WRAP__H__
11#define __FNT_WRAP__H__
18#include "GUICommonEnums.h"
80 virtual void Text(
const eC_Value& vX1,
const eC_Value& vY1,
const eC_String *
const lpString) = 0;
107 virtual void RequiredSpace(
const eC_String *
const pkText, eC_Value& vWidth, eC_Value& vHeight) = 0;
115 virtual void FittingNumChars(
const eC_String *
const pkText, eC_Value vWidthMax, eC_UInt &uiNumChars,
const eC_Bool& bStartAtEnd =
false);
152 const eC_String& pcPath,
153 const eC_UInt uiFontSize,
Helper Macros in Guiliani
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54
The font wrapper base class.
Definition: FntWrap.h:36
virtual eC_Value GetTextXPosAdjustment(const CGUIText::HorAligned_t eHorAlignment)
Definition: FntWrap.h:192
void * GetWorkingMemory(const eC_UInt &uiSize)
virtual ~CFntWrap()
Destructor.
virtual eC_Int GetInternalLeading() const
Definition: FntWrap.h:139
virtual void Text(const eC_Value &vX1, const eC_Value &vY1, const eC_String *const lpString)=0
CGUICommonEnums::Rotation_t GetRotation() const
Definition: FntWrap.h:219
CGUICommonEnums::Rotation_t m_eRotation
Rotation.
Definition: FntWrap.h:251
virtual void FittingNumChars(const eC_String *const pkText, eC_Value vWidthMax, eC_UInt &uiNumChars, const eC_Bool &bStartAtEnd=false)
virtual eC_Bool SetNOFFonts(const eC_UInt uiNOFFonts)
virtual void SetFont(const FontResource_t &eID)
virtual void LoadFont(const FontResource_t &eFontID)
Definition: FntWrap.h:161
FontResource_t m_eCurFont
Current font id.
Definition: FntWrap.h:242
virtual eC_UInt GetNOFFonts()
Definition: FntWrap.h:181
TextOperation_t
Definition: FntWrap.h:69
@ RENDER_TEXT
render the text
Definition: FntWrap.h:70
@ GET_REQUIRED_SPACE
get required space for text
Definition: FntWrap.h:71
eC_Value m_vSpacing
Font spacing, i.e the space between letters.
Definition: FntWrap.h:245
static void DeleteInstance()
GUIFont_t
Definition: FntWrap.h:44
void ReleaseWorkingMemory()
release working memory
virtual void GetGlyphMetrics(const eC_Char cChar, GlyphMetrics_t &kMetrics)
Definition: FntWrap.h:100
virtual void UnloadFont(const FontResource_t &eFontID)
Definition: FntWrap.h:166
eC_UInt m_uiNOFFonts
Total number of fonts.
Definition: FntWrap.h:248
virtual void SetFontSpacing(const eC_Float &fSpacing)
void SetRotation(const CGUICommonEnums::Rotation_t &eRotation)
Definition: FntWrap.h:211
virtual void RequiredSpace(const eC_String *const pkText, eC_Value &vWidth, eC_Value &vHeight)=0
virtual eC_Value GetTextYPosAdjustment(const CGUIText::VerAligned_t eVerAlignment)
Definition: FntWrap.h:203
virtual eC_Int GetDescender() const
Definition: FntWrap.h:130
void ChangeFont(const FontResource_t &eFontID, const eC_String &pcPath, const eC_UInt uiFontSize, const GUIFont_t &eFontStyle)
virtual eC_Int GetAscender() const
Definition: FntWrap.h:121
Rotation_t
Enumaration for Rotation.
Definition: GUICommonEnums.h:131
central component-manager
Definition: GUIComponentManager.h:62
Base class for all platform-specific render targets.
Definition: GUIRenderTarget.h:17
HorAligned_t
Possible horizontal alignments.
Definition: GUIText.h:124
VerAligned_t
Possible vertical alignments.
Definition: GUIText.h:116
eC_Value vWidth
width of glyph
Definition: FntWrap.h:61
eC_Value vHeight
height of glyph
Definition: FntWrap.h:62