10#if !defined(EXAMPLE_CONTROL_H)
11#define EXAMPLE_CONTROL_H
13#include "GUIAbstractBar.h"
15#include "GUINinePatch.h"
16#include "GUICommonEnums.h"
36 const eC_Value& vX,
const eC_Value& vY,
37 const eC_Value& vWidth,
const eC_Value& vHeight,
78 void SetMargin(
const eC_Value& vMarginX,
const eC_Value& vMarginY);
84 void GetMargin(eC_Value& vMarginX, eC_Value& vMarginY);
91 virtual eC_Bool
DoButtonDown(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
93 virtual eC_Bool
DoDrag(
const eC_Value& vDeltaX,
const eC_Value& vDeltaY,
const eC_Value& vAbsX,
const eC_Value& vAbsY);
95 virtual eC_Bool
DoDragEnd(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
97 virtual eC_Bool
DoClick(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
110#if defined(GUILIANI_STREAM_GUI)
118#if defined(GUILIANI_WRITE_GUI)
145 void CalculateImageSizes();
146 void CalculateValues();
147 void CalculateHandle();
149 void MoveHandle(
const eC_Value& vDeltaX,
const eC_Value& vDeltaY,
const eC_Value& vAbsX,
const eC_Value& vAbsY);
162 MovingPart_t m_eMovingHandle;
167 eC_Value m_vHandleWidth;
168 eC_Value m_vHandleHeight;
169 eC_Value m_vRangeWidth;
170 eC_Value m_vRangeHeight;
172 eC_Value m_vBackgroundWidth;
173 eC_Value m_vBackgroundHeight;
174 eC_Value m_vBackgroundPosX;
175 eC_Value m_vBackgroundPosY;
181 eC_Bool m_bSelfUpdate;
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
Base class for bars.
Definition: GUIAbstractBar.h:33
Orientation_t
orientation of controls
Definition: GUICommonEnums.h:57
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
Helper class to supply a platform independent range implementation.
Definition: GUIRange.h:67
Definition: GUIRangeSlider.h:24
virtual eC_Bool DoButtonDown(const eC_Value &vAbsX, const eC_Value &vAbsY)
CGUIRangeSlider(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 ReadFromStream()
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual void SetHeight(const eC_Value &vHeight)
const CGUIRange & GetRange2() const
void GetImages(ImageResource_t &eBackgroundImage, ImageResource_t &eHandle, ImageResource_t &eRange) const
CGUICommonEnums::Orientation_t GetOrientation() const
void SetMargin(const eC_Value &vMarginX, const eC_Value &vMarginY)
virtual void SetWidth(const eC_Value &vWidth)
virtual eC_Bool SetValue2(const CGUIValue &rkValue)
virtual eC_Bool DoDrag(const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetImages(const ImageResource_t &eBackgroundImage, const ImageResource_t &eHandle, const ImageResource_t &eRange)
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool IsHighlightable() const
Definition: GUIRangeSlider.h:127
virtual eC_Bool SetValue(const CGUIValue &rkValue)
void GetMargin(eC_Value &vMarginX, eC_Value &vMarginY)
void SetOrientation(const CGUICommonEnums::Orientation_t &eOrientation)
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
CGUIValue stores a single value in one specific type.
Definition: GUIValue.h:25