Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIBaseRadioButton.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 GUIBASERADIOBUTTON__H_
11#define GUIBASERADIOBUTTON__H_
12
13#include "GUIBaseCheckBox.h"
14
16
18
43{
44 friend class CGUIRadioButtonGroup;
45public:
56 CGUIRadioButtonGroup* const pkParent,
57 const eC_Value& vX,
58 const eC_Value& vY,
59 const eC_Value& vWidth,
60 const eC_Value& vHeight,
61 const eC_Bool &bSelected = false,
62 const ObjectHandle_t &eID = NO_HANDLE);
63
71 CGUIRadioButtonGroup* const pkParent,
72 const CGUIRect &kRect,
73 const eC_Bool &bSelected = false,
74 const ObjectHandle_t &eID = NO_HANDLE);
75
80
86
91
92 virtual ~CGUIBaseRadioButton();
93
94 eC_Bool DoDraw();
95
99 void Select();
100
110 eC_Bool DoClick(const eC_Value& vAbsX, const eC_Value& vAbsY);
111
112#ifdef GUILIANI_STREAM_GUI
113 virtual void ReadFromStream();
114#endif
115#ifdef GUILIANI_WRITE_GUI
116 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
117#endif
118
119
120private:
125 void CopyAttributes(const CGUIBaseRadioButton& kSource);
126
128 void Init();
129
131 CGUIRadioButtonGroup* m_pkRbGroup;
132};
133#endif
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Base class for checkboxes.
Definition: GUIBaseCheckBox.h:66
Base class for radio buttons.
Definition: GUIBaseRadioButton.h:43
CGUIBaseRadioButton(CGUIRadioButtonGroup *const pkParent, const CGUIRect &kRect, const eC_Bool &bSelected=false, const ObjectHandle_t &eID=NO_HANDLE)
CGUIBaseRadioButton & operator=(const CGUIBaseRadioButton &kSource)
virtual void ReadFromStream()
eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
CGUIBaseRadioButton(CGUIRadioButtonGroup *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Bool &bSelected=false, const ObjectHandle_t &eID=NO_HANDLE)
CGUIBaseRadioButton(const CGUIBaseRadioButton &kSource)
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
Container for radio buttons.
Definition: GUIRadioButtonGroup.h:42
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63