Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIRepositionCompositeObject.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 __GUI_REPOSITION_COMPOSITE_OBJECT__H__
11#define __GUI_REPOSITION_COMPOSITE_OBJECT__H__
12
13#include "GUICompositeObject.h"
14#include "GUILayoutHelper.h"
15
17
18// @guiliani_doxygen toplevel_control Reposition Composite Object
29// @endguiliani_doxygen
71{
72public:
84 CGUICompositeObject* const pkParent,
85 const eC_Value& vX, const eC_Value& vY,
86 const eC_Value& vWidth, const eC_Value& vHeight,
87 const CGUILayoutHelper::RepositionAlignment_t &eBasePoint = CGUILayoutHelper::REPOSITION_ALIGN_INVALID,
88 const eC_Value& vGap = eC_FromInt(0),
89 const ObjectHandle_t &eID = NO_HANDLE);
90
99 CGUICompositeObject* const pkParent,
100 const CGUIRect &kRect,
101 const CGUILayoutHelper::RepositionAlignment_t &eBasePoint = CGUILayoutHelper::REPOSITION_ALIGN_INVALID,
102 const eC_Value& vGap = eC_FromInt(0),
103 const ObjectHandle_t &eID = NO_HANDLE);
104
107
112
116 void SetBasePoint(CGUILayoutHelper::RepositionAlignment_t eNewBasePoint) { m_eBasePoint = eNewBasePoint; }
117
121 void SetBorder(const eC_Value vBorder) { m_vBorder = vBorder; }
122
126 void SetGap(const eC_Value vGap) { m_vGap = vGap; }
127
129 eC_Value GetGap() const { return m_vGap; }
130
135
136#ifdef GUILIANI_STREAM_GUI
137 virtual void ReadFromStream();
138#endif
139#ifdef GUILIANI_WRITE_GUI
140 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
141#endif
142
143private:
147 eC_Value m_vGap;
149 eC_Value m_vBorder;
150};
151#endif
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
RepositionAlignment_t
Definition: GUILayoutHelper.h:59
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
Can reposition its visible children in different directions.
Definition: GUIRepositionCompositeObject.h:71
eC_Value GetGap() const
Definition: GUIRepositionCompositeObject.h:129
void SetBorder(const eC_Value vBorder)
Definition: GUIRepositionCompositeObject.h:121
CGUIRepositionCompositeObject(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const CGUILayoutHelper::RepositionAlignment_t &eBasePoint=CGUILayoutHelper::REPOSITION_ALIGN_INVALID, const eC_Value &vGap=eC_FromInt(0), const ObjectHandle_t &eID=NO_HANDLE)
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetBasePoint(CGUILayoutHelper::RepositionAlignment_t eNewBasePoint)
Definition: GUIRepositionCompositeObject.h:116
CGUIRepositionCompositeObject(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const CGUILayoutHelper::RepositionAlignment_t &eBasePoint=CGUILayoutHelper::REPOSITION_ALIGN_INVALID, const eC_Value &vGap=eC_FromInt(0), const ObjectHandle_t &eID=NO_HANDLE)
virtual ~CGUIRepositionCompositeObject()
Definition: GUIRepositionCompositeObject.h:106
void SetGap(const eC_Value vGap)
Definition: GUIRepositionCompositeObject.h:126