Guiliani  Version 2.6 revision 7293 (documentation build 12)
FntWrapNull.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef __FNT_WRAP_NULL__H__
11#define __FNT_WRAP_NULL__H__
12
13#include "FntWrap.h"
14
16
23class CFntWrapNull : public CFntWrap
24{
25public:
27 inline static void CreateInstance()
28 {
29 if (!CGUIComponentManager::GetInstance().HasFntWrap())
31 }
32
33protected:
34 virtual void Text(
35 const eC_Value& vX1, const eC_Value& vY1, const eC_String * const lpString) {}
36
37 virtual void RequiredSpace(
38 const eC_String * const pkText, eC_Value& vWidth, eC_Value& vHeight) {}
39
40 virtual eC_Bool SetNOFFonts(const eC_UInt uiNOFFonts)
41 {
42 m_uiNOFFonts = uiNOFFonts;
43 return true;
44 }
45
46 private:
50 CFntWrapNull(const CFntWrapNull& kSource);
51
55 CFntWrapNull& operator=(const CFntWrapNull& kSource);
56
58 {
59 GUILOG(GUI_TRACE_WARNING, "------------------------\n");
60 GUILOG(GUI_TRACE_WARNING, "| FntWrapNull chosen |\n");
61 GUILOG(GUI_TRACE_WARNING, "------------------------\n");
62 }
63};
64#endif
The font wrapper base class.
Definition: FntWrap.h:36
eC_UInt m_uiNOFFonts
Total number of fonts.
Definition: FntWrap.h:248
The dummy font wrapper class.
Definition: FntWrapNull.h:24
static void CreateInstance()
Create the insta nce.
Definition: FntWrapNull.h:27
virtual void RequiredSpace(const eC_String *const pkText, eC_Value &vWidth, eC_Value &vHeight)
Definition: FntWrapNull.h:37
virtual void Text(const eC_Value &vX1, const eC_Value &vY1, const eC_String *const lpString)
Definition: FntWrapNull.h:34
virtual eC_Bool SetNOFFonts(const eC_UInt uiNOFFonts)
Definition: FntWrapNull.h:40
static CGUIComponentManager & GetInstance()
void SetFntWrap(CFntWrap *pkFntWrap)