Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUITextField.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 GUITEXTFIELD__H_
11#define GUITEXTFIELD__H_
12
13#include "GUIObject.h"
14#include "GUITextResource.h"
15#include "GUIImageResource.h"
16#include "GUINinePatch.h"
17#include "GUIBaseTextField.h"
18
19class CGUI;
20class CGUIText;
21
23
24// @guiliani_doxygen toplevel_control Text Field
35// @endguiliani_doxygen
83{
84public:
97 CGUICompositeObject* const pkParent,
98 const eC_Value& vX, const eC_Value& vY,
99 const eC_Value& vWidth, const eC_Value& vHeight,
100 const eC_String &kText,
101 const eC_Bool& bMultiLine = false,
102 const ImageResource_t &eBackgroundImg = DUMMY_IMAGE,
103 const ObjectHandle_t &eID = NO_HANDLE);
104
114 CGUICompositeObject* const pkParent,
115 const CGUIRect &kRect,
116 const eC_String &kText,
117 const eC_Bool& bMultiLine = false,
118 const ImageResource_t &eBackgroundImg = DUMMY_IMAGE,
119 const ObjectHandle_t &eID = NO_HANDLE);
120
133 CGUICompositeObject* const pkParent,
134 const eC_Value& vX, const eC_Value& vY,
135 const eC_Value& vWidth, const eC_Value& vHeight,
136 const TextResource_t &eTextID,
137 const eC_Bool& bMultiLine = false,
138 const ImageResource_t &eBackgroundImg = DUMMY_IMAGE,
139 const ObjectHandle_t &eID = NO_HANDLE);
140
150 CGUICompositeObject* const pkParent,
151 const CGUIRect &kRect,
152 const TextResource_t &eTextID,
153 const eC_Bool& bMultiLine = false,
154 const ImageResource_t &eBackgroundImg = DUMMY_IMAGE,
155 const ObjectHandle_t &eID = NO_HANDLE);
156
159
164
170
171 eC_Bool DoDraw();
172
176 void SetBackgroundImage(const ImageResource_t &eBackgroundImg);
177
181
182#ifdef GUILIANI_STREAM_GUI
183 virtual void ReadFromStream();
184#endif
185
186#ifdef GUILIANI_WRITE_GUI
187 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
188#endif
189
190protected:
194
195private:
197 void Init();
198
200 void DeInit();
201};
202#endif
Helper Macros in Guiliani
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Helper Macros in Guiliani
TextResource_t
List of text resource ids.
Definition: GUITextResource.h:40
Represents a simple GUI object containing a text.
Definition: GUIBaseTextField.h:64
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
GUI base class for any Guiliani application.
Definition: GUI.h:39
Helper class to for storing Nine-Patch images.
Definition: GUINinePatch.h:41
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
Represents a simple GUI object containing a text.
Definition: GUITextField.h:83
virtual void ReadFromStream()
CGUITextField(const CGUITextField &kSource)
void SetBackgroundImage(const ImageResource_t &eBackgroundImg)
CGUITextField(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const eC_String &kText, const eC_Bool &bMultiLine=false, const ImageResource_t &eBackgroundImg=DUMMY_IMAGE, const ObjectHandle_t &eID=NO_HANDLE)
CGUITextField(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const TextResource_t &eTextID, const eC_Bool &bMultiLine=false, const ImageResource_t &eBackgroundImg=DUMMY_IMAGE, const ObjectHandle_t &eID=NO_HANDLE)
CGUINinePatch m_kNinePatch
the nine patch
Definition: GUITextField.h:193
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
CGUITextField & operator=(const CGUITextField &kSource)
CGUITextField(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const TextResource_t &eTextID, const eC_Bool &bMultiLine=false, const ImageResource_t &eBackgroundImg=DUMMY_IMAGE, const ObjectHandle_t &eID=NO_HANDLE)
ImageResource_t m_eBackgroundImg
ID of the background image.
Definition: GUITextField.h:192
CGUITextField(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_String &kText, const eC_Bool &bMultiLine=false, const ImageResource_t &eBackgroundImg=DUMMY_IMAGE, const ObjectHandle_t &eID=NO_HANDLE)
eC_Bool DoDraw()
Class for handling a text.
Definition: GUIText.h:103