Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIFragmentContainer.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 GUIFRAGMENTCONTAINER_H__
11#define GUIFRAGMENTCONTAINER_H__
12
13#include "GUICompositeObject.h"
14#include "GUIImageResource.h"
15
16// @guiliani_doxygen toplevel_control Fragment-Container
32// @endguiliani_doxygen
33
49{
50public:
51#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
53 static const eC_Char XMLTAG_FRAGMENTFILENAME[];
54#endif
55
60
61 // Destructor
62 virtual ~CGUIFragmentContainer();
63
75 CGUICompositeObject* const pkParent,
76 const eC_Value& vX,
77 const eC_Value& vY,
78 const eC_Value& vWidth,
79 const eC_Value& vHeight,
80 const ObjectHandle_t &eID = NO_HANDLE);
81
88 CGUICompositeObject* const pkParent,
89 const CGUIRect &kRect,
90 const ObjectHandle_t &eID = NO_HANDLE);
91
96
102
103 virtual void SetWidth(const eC_Value& vX);
104
105 virtual void SetHeight(const eC_Value& vY);
106
107 eC_Bool DoDraw();
108
109 eC_Bool DoPostDraw();
110
114 void SetFragmentName(const eC_String& kFragmentName);
115
119 eC_String GetFragmentName() const;
120
124 void SetAutoSize(const eC_Bool& bAutoSize);
125
129 eC_Bool GetAutoSize() const;
130
131#ifdef GUILIANI_STREAM_GUI
132 virtual void ReadFromStream();
133#endif
134
135#ifdef GUILIANI_WRITE_GUI
136 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
137#endif
138
139protected:
141 void Init();
142
143private:
145 void DeInit();
146
149 void LoadFragment();
150
151private:
152 static const eC_String ms_kOverlay;
153 eC_String m_kFragmentName;
154 eC_Bool m_bAutoSize;
155
156 CGUIObject* m_pkContainedFragment;
157
158 eC_Bool m_bUseSnapshot;
159 GUIBitmapPlaneID_t m_eBitmapPlaneID;
160
161 eC_Bool m_bFragmentNameChanged;
162};
163
164#endif
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
Definition: GUIFragmentContainer.h:49
void SetFragmentName(const eC_String &kFragmentName)
CGUIFragmentContainer & operator=(const CGUIFragmentContainer &kSource)
virtual void SetHeight(const eC_Value &vY)
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetAutoSize(const eC_Bool &bAutoSize)
eC_Bool GetAutoSize() const
static const eC_Char XMLTAG_FRAGMENTFILENAME[]
Definition: GUIFragmentContainer.h:53
CGUIFragmentContainer(const CGUIFragmentContainer &kSource)
CGUIFragmentContainer(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE)
virtual void SetWidth(const eC_Value &vX)
CGUIFragmentContainer(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const ObjectHandle_t &eID=NO_HANDLE)
eC_String GetFragmentName() const
virtual void ReadFromStream()
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63