10#ifndef GUIAUTOREPEATBEHAVIOUR__H_
11#define GUIAUTOREPEATBEHAVIOUR__H_
13#include "GUIAnimatable.h"
14#include "GUIBehaviourDecorator.h"
31 const eC_Bool& bUseLongClick,
32 const eC_UInt& uiInitialDelay,
33 const eC_UInt& uiInterval);
47#if defined(GUILIANI_STREAM_GUI)
55#if defined(GUILIANI_WRITE_GUI)
65 virtual void DoAnimate(
const eC_Value& vTimes = eC_FromInt(1));
68 const eC_Value& vAbsX,
69 const eC_Value& vAbsY);
72 const eC_Value& vAbsX,
73 const eC_Value& vAbsY);
76 const eC_Value& vAbsX,
77 const eC_Value& vAbsY);
80 const eC_Value& vAbsX,
81 const eC_Value& vAbsY);
84 const eC_Value& vAbsX,
85 const eC_Value& vAbsY);
88 void EnterRepeatPhase(
const eC_UInt& uiInterval);
91 enum AutoRepeatState_t
98 eC_Bool m_bUseLongClick;
99 eC_UInt m_uiInitialDelay;
100 eC_UInt m_uiInterval;
102 AutoRepeatState_t m_eState;
104 eC_UInt m_uiNumAdditionalPhases;
105 eC_UInt m_uiCurrentPhase;
106 eC_UInt m_uiLastPhaseStart;
108 eC_TArray<eC_UInt> m_aStartTimes;
109 eC_TArray<eC_UInt> m_aIntervals;
111 eC_Bool m_bIgnoreNextClick;
Base interface for animation callbacks.
Definition: GUIAnimatable.h:51
Behaviour for repeating clicks on object Additional phases can be defined where the start-time of the...
Definition: GUIAutoRepeatBehaviour.h:20
eC_UInt GetNumberOfAdditionalPhases() const
void AddAdditionalPhase(const eC_UInt &uiStartTime, const eC_UInt &uiInterval)
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool DoButtonUp(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual void ReadFromStream()
CGUIAutoRepeatBehaviour(const eC_Bool &bUseLongClick, const eC_UInt &uiInitialDelay, const eC_UInt &uiInterval)
CGUIAutoRepeatBehaviour()
Default constructor.
virtual eC_Bool DoButtonDown(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual void DoAnimate(const eC_Value &vTimes=eC_FromInt(1))
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
virtual eC_Bool DoLongClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
GUIBehaviourDecorator base class.
Definition: GUIBehaviourDecorator.h:78