14#include "GUIColorPropertyObserver.h"
37 const eC_Value& vWidth,
38 const eC_Value& vHeight,
57 const eC_Value& vWidth,
58 const eC_Value& vHeight,
59 const eC_UByte& ubHours,
60 const eC_UByte& ubMinutes,
61 const eC_UByte& ubSeconds,
83 const eC_Value& vWidth,
84 const eC_Value& vHeight,
85 const eC_UByte& ubHours,
86 const eC_UByte& ubMinutes,
87 const eC_UByte& ubSeconds,
88 const eC_UInt& uiHourHandleColor,
89 const eC_UInt& uiMinuteHandleColor,
90 const eC_UInt& uiSecondHandleColor,
115 const eC_Value& vWidth,
116 const eC_Value& vHeight,
117 const eC_UByte& ubHours,
118 const eC_UByte& ubMinutes,
119 const eC_UByte& ubSeconds,
120 const eC_UInt& uiHourHandleColor,
121 const eC_UInt& uiMinuteHandleColor,
122 const eC_UInt& uiSecondHandleColor,
123 const eC_Value& vHourNeedleLength,
124 const eC_Value& vMinuteNeedleLength,
125 const eC_Value& vSecondNeedleLength,
153 const eC_Value& vWidth,
154 const eC_Value& vHeight,
155 const eC_UByte& ubHours,
156 const eC_UByte& ubMinutes,
157 const eC_UByte& ubSeconds,
158 const eC_UInt& uiHourHandleColor,
159 const eC_UInt& uiMinuteHandleColor,
160 const eC_UInt& uiSecondHandleColor,
161 const eC_Value& vHourNeedleLength,
162 const eC_Value& vMinuteNeedleLength,
163 const eC_Value& vSecondNeedleLength,
164 const eC_Value& vHourNeedleWidth,
165 const eC_Value& vMinuteNeedleWidth,
166 const eC_Value& vSecondNeedleWidth,
396 void SetTime(
const eC_UByte& ubHours,
const eC_UByte& ubMinutes,
const eC_UByte& ubSeconds);
404 void GetTime(eC_UByte& ubHours, eC_UByte& ubMinutes, eC_UByte& ubSeconds)
const;
442#ifdef GUILIANI_STREAM_GUI
452#ifdef GUILIANI_WRITE_GUI
457#ifndef GUILIANI_STREAM_GUI
465 const eC_UByte& ubHours,
const eC_UByte& ubMinutes,
const eC_UByte& ubSeconds,
466 const eC_UInt& uiHourHandleColor,
const eC_UInt& uiMinuteHandleColor,
const eC_UInt& uiSecondHandleColor,
467 const eC_Value& vHourNeedlelength,
const eC_Value& vMinuteNeedlelength,
const eC_Value& vSecondNeedlelength,
468 const eC_Value& vHourNeedleWidth,
const eC_Value& vMinuteNeedleWidth,
const eC_Value& vSecondNeedleWidth
473 eC_Value GetHourAngle()
const;
474 eC_Value GetMinuteAngle()
const;
475 eC_Value GetSecondAngle()
const;
477 void DrawNeedle(eC_Value vAngle, eC_Value vWidth, eC_Value vlength, eC_UInt uiColor, eC_UInt uiShadowColor,
ImageResource_t m_eImage);
479 void CalculateEndpoint(eC_Value vAngle, eC_Value vlength);
480 void RecalculateAngles();
483 static const eC_UInt INDEX_COLOR_HOUR;
484 static const eC_UInt INDEX_COLOR_MINUTE;
485 static const eC_UInt INDEX_COLOR_SECOND;
486 static const eC_UInt INDEX_COLOR_SHADOW;
500 eC_UByte m_ubStartHours;
501 eC_UByte m_ubStartMinutes;
502 eC_UByte m_ubStartSeconds;
505 eC_Value m_vHourAngle;
506 eC_Value m_vMinuteAngle;
507 eC_Value m_vSecondAngle;
509 eC_Value m_vExactSeconds;
517 eC_Bool m_bShowShadows;
520 eC_Value m_vHourNeedleLength;
521 eC_Value m_vMinuteNeedleLength;
522 eC_Value m_vSecondNeedleLength;
525 eC_Value m_vHourNeedleWidth;
526 eC_Value m_vMinuteNeedleWidth;
527 eC_Value m_vSecondNeedleWidth;
529 eC_Bool m_bShowSecondHandle;
531 eC_Bool m_bAutoStart;
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
GlobalProperty_t
List of property resource ids.
Definition: GUIPropertyResource.h:67
This control can be used to display an analog clock.
Definition: GUIClock.h:21
void SetHourNeedleColor(const eC_UInt &uiNeedleColor)
void SetSecondNeedleLength(const eC_Value &vNeedleLength)
void SetMinuteNeedleLength(const eC_Value &vNeedleLength)
void SetImages(const ImageResource_t &eImageBG, const ImageResource_t &eImageHour, const ImageResource_t &eImageMinute, const ImageResource_t &eImageSecond)
virtual eC_Bool SetValue(const CGUIValue &rkValue)
void SetMinute(const eC_UByte &uiMinute)
void SetMinuteNeedleWidth(const eC_Value &vNeedleWidth)
eC_Value GetMinuteNeedleLength() const
void SetSecondNeedleWidth(const eC_Value &vNeedleWidth)
void SetShadowColor(const GlobalProperty_t &eShadowColor)
eC_UInt GetSecondNeedleColor() const
void SetShadowColor(const eC_UInt &uiShadowColor)
void GetTime(eC_UByte &ubHours, eC_UByte &ubMinutes, eC_UByte &ubSeconds) const
void SetSecondNeedleColor(const GlobalProperty_t &eNeedleColor)
void ShowShadows(const eC_Bool &bShowShadow)
CGUIClock(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)
void SetAutoStart(const eC_Bool &bAutoStart)
eC_UInt GetShadowColor() const
eC_UInt GetMinuteNeedleColor() const
void SetHourNeedleColor(const GlobalProperty_t &eNeedleColor)
eC_UInt GetTimeInSeconds() const
CGUIClock(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_UByte &ubHours, const eC_UByte &ubMinutes, const eC_UByte &ubSeconds, const eC_UInt &uiHourHandleColor, const eC_UInt &uiMinuteHandleColor, const eC_UInt &uiSecondHandleColor, const eC_Value &vHourNeedleLength, const eC_Value &vMinuteNeedleLength, const eC_Value &vSecondNeedleLength, const eC_Value &vHourNeedleWidth, const eC_Value &vMinuteNeedleWidth, const eC_Value &vSecondNeedleWidth, const ObjectHandle_t &eID=NO_HANDLE)
CGUIClock(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_UByte &ubHours, const eC_UByte &ubMinutes, const eC_UByte &ubSeconds, const eC_UInt &uiHourHandleColor, const eC_UInt &uiMinuteHandleColor, const eC_UInt &uiSecondHandleColor, const eC_Value &vHourNeedleLength, const eC_Value &vMinuteNeedleLength, const eC_Value &vSecondNeedleLength, const ObjectHandle_t &eID=NO_HANDLE)
void SetMinuteNeedleColor(const eC_UInt &uiNeedleColor)
eC_UInt GetHourNeedleColor() const
virtual ~CGUIClock()
Destructor.
eC_Value GetHourNeedleLength() const
eC_Value GetSecondNeedleLength() const
eC_Bool ShowShadows() const
void SetMinuteNeedleColor(const GlobalProperty_t &eNeedleColor)
eC_UByte GetMinute() const
void GetImages(ImageResource_t &eImageBG, ImageResource_t &eImageHour, ImageResource_t &eImageMinute, ImageResource_t &eImageSecond) const
void SetHour(const eC_UByte &uiHour)
void ShowSecondHandle(const eC_Bool &bShowSecondHandle)
void SetHourNeedleLength(const eC_Value &vNeedleLength)
eC_Bool ShowSecondHandle() const
CGUIClock(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_UByte &ubHours, const eC_UByte &ubMinutes, const eC_UByte &ubSeconds, const eC_UInt &uiHourHandleColor, const eC_UInt &uiMinuteHandleColor, const eC_UInt &uiSecondHandleColor, const ObjectHandle_t &eID=NO_HANDLE)
eC_UByte GetSecond() const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
eC_Value GetMinuteNeedleWidth() const
CGUIClock(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_UByte &ubHours, const eC_UByte &ubMinutes, const eC_UByte &ubSeconds, const ObjectHandle_t &eID=NO_HANDLE)
void SetTimeInSeconds(const eC_UInt &uiTimeInSeconds)
void SetSecondNeedleColor(const eC_UInt &uiNeedleColor)
eC_Value GetHourNeedleWidth() const
eC_Bool GetAutoStart() const
virtual void DoAnimate(const eC_Value &vTimes)
virtual void ReadFromStream()
void SetSecond(const eC_UByte &uiSecond)
void SetTime(const eC_UByte &ubHours, const eC_UByte &ubMinutes, const eC_UByte &ubSeconds)
void SetHourNeedleWidth(const eC_Value &vNeedleWidth)
eC_Value GetSecondNeedleWidth() const
virtual eC_Bool IsHighlightable() const
Definition: GUIClock.h:176
This observer provides the base-interface for controls when using color-properties.
Definition: GUIColorPropertyObserver.h:23
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81
CGUIValue stores a single value in one specific type.
Definition: GUIValue.h:25