10#ifndef GUIRANGESLIDER_H
11#define GUIRANGESLIDER_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,
83 eC_Value GetBackgroundMargin()
const;
90 virtual eC_Bool
DoButtonDown(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
92 virtual eC_Bool
DoDrag(
const eC_Value& vDeltaX,
const eC_Value& vDeltaY,
const eC_Value& vAbsX,
const eC_Value& vAbsY);
94 virtual eC_Bool
DoDragEnd(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
96 virtual eC_Bool
DoClick(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
109#if defined(GUILIANI_STREAM_GUI)
117#if defined(GUILIANI_WRITE_GUI)
144 void CalculateImageSizes();
145 void CalculateValues();
146 void CalculateHandle();
148 void MoveHandle(
const eC_Value& vDeltaX,
const eC_Value& vDeltaY,
const eC_Value& vAbsX,
const eC_Value& vAbsY);
157 eC_Value m_vBackgroundMargin;
160 MovingPart_t m_eMovingHandle;
165 eC_Value m_vHandleWidth;
166 eC_Value m_vHandleHeight;
167 eC_Value m_vRangeWidth;
168 eC_Value m_vRangeHeight;
170 eC_Value m_vBackgroundWidth;
171 eC_Value m_vBackgroundHeight;
172 eC_Value m_vBackgroundPosX;
173 eC_Value m_vBackgroundPosY;
179 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 SetBackgroundMargin(const eC_Value &vBackgroundMargin)
void GetImages(ImageResource_t &eBackgroundImage, ImageResource_t &eHandle, ImageResource_t &eRange) const
CGUICommonEnums::Orientation_t GetOrientation() const
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:126
virtual eC_Bool SetValue(const CGUIValue &rkValue)
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