10#ifndef _GUICIRCULARSLIDER_H_
11#define _GUICIRCULARSLIDER_H_
13#include "GUIAbstractBar.h"
14#include "GUINinePatch.h"
57 const eC_Value& vX,
const eC_Value& vY,
58 const eC_Value& vWidth,
const eC_Value& vHeight,
59 const eC_Value& vRadius,
60 const eC_Value& vStartAngle,
61 const eC_Value& vEndAngle,
65 const eC_UInt& uiStepSize,
74 virtual eC_Bool
DoButtonDown(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
77 const eC_Value& vDeltaX,
78 const eC_Value& vDeltaY,
79 const eC_Value& vAbsX,
80 const eC_Value& vAbsY);
83 const eC_Value& vAbsX,
84 const eC_Value& vAbsY);
87 const eC_Value& vAbsX,
88 const eC_Value& vAbsY);
103 eC_Value
GetAngle(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
179 void SetRange(
const eC_Int& iMin,
const eC_Int& iMax);
191#ifdef GUILIANI_STREAM_GUI
200#ifdef GUILIANI_WRITE_GUI
205#ifndef GUILIANI_STREAM_GUI
213 const eC_Value& vRadius,
214 const eC_Value& vStartAngle,
215 const eC_Value& vEndAngle,
216 const eC_Int& iValue,
219 const eC_UInt& uiStepSize,
224 eC_Int GetSliderValue(
const eC_Value& vAngle);
241 eC_Value m_vKnobSize;
244 eC_Value m_vMinimumKnobSize;
246 eC_Bool m_bSmoothControl;
252 eC_Value m_vStartAngle;
253 eC_Value m_vEndAngle;
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
This class represents a circular slider.
Definition: GUICircularSlider.h:36
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
eC_Value GetStartAngle() const
virtual void ReadFromStream()
eC_Value GetRadius() const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
eC_Bool GetSmoothControl() const
void CalculateKnobRect(const eC_Int &iValue)
void SetSmoothControl(const eC_Bool &bSmoothControl)
void SetImages(const ImageResource_t &eSldBG, const ImageResource_t &eSldKnobNormal, const ImageResource_t &eSldKnobHighlighted, const ImageResource_t &eSldKnobPressed, const ImageResource_t &eSldKnobGrayedOut=DUMMY_IMAGE)
void SetRange(const eC_Int &iMin, const eC_Int &iMax)
virtual eC_Bool DoDrag(const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY)
eC_Value GetKnobSize() const
eC_Value GetEndAngle() const
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool DoButtonDown(const eC_Value &vAbsX, const eC_Value &vAbsY)
CGUICircularSlider(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Value &vRadius, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Int &iValue, const eC_Int &iMin, const eC_Int &iMax, const eC_UInt &uiStepSize, const CGUIRange::Base_t &eBase=CGUIRange::BASE_AT_MINIMUM, const ObjectHandle_t &eID=NO_HANDLE)
void SetEndAngle(const eC_Value &vEndAngle)
void SetKnobSize(const eC_Value &vKnobSize)
virtual eC_Bool SetValue(const CGUIValue &rkValue)
void SetStartAngle(const eC_Value &vStartAngle)
eC_Value GetAngle(const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetStandardImages()
sets all images to standart images
void SetRadius(const eC_Value &vRadius)
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
Base_t
Whether base is at minimum or maximum of the range.
Definition: GUIRange.h:72
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