10#ifndef GUICENTERFOCUSCONTAINER__H_
11#define GUICENTERFOCUSCONTAINER__H_
13#include "GUICompositeObject.h"
14#include "SafeGUIObjectPtr.h"
80 const eC_Value& vX,
const eC_Value& vY,
81 const eC_Value& vWidth,
const eC_Value& vHeight,
82 const eC_Value& vCenterX,
const eC_Value& vCenterY,
107 virtual void DoAnimate(
const eC_Value& vTimes = eC_FromInt(1));
122 void SetInertia(eC_Value vInertiaX, eC_Value vInertiaY) { m_vInertiaX = vInertiaX; m_vInertiaY = vInertiaY; }
160 const eC_Value& vDeltaX,
161 const eC_Value& vDeltaY,
162 const eC_Value& vAbsX,
163 const eC_Value& vAbsY);
166 const eC_Value& vAbsX,
167 const eC_Value& vAbsY);
169#ifdef GUILIANI_STREAM_GUI
172#ifdef GUILIANI_WRITE_GUI
197 m_uiHorDragSensitivity=uiHorizontalSensitivity;
198 m_uiVertDragSensitivity=uiVerticalSensitivity;
202 void StartDrag(eC_Value vAbsX, eC_Value vAbsY);
205 eC_Bool m_bCenterOnImmediateChildrenOnly;
206 eC_Value m_vInertiaX;
207 eC_Value m_vInertiaY;
208 eC_Value m_vFocusCenterX;
209 eC_Value m_vFocusCenterY;
210 eC_Value m_vTotalDragX;
211 eC_Value m_vTotalDragY;
212 eC_UInt m_uiVertDragSensitivity;
213 eC_UInt m_uiHorDragSensitivity;
214 eC_Bool m_bStopFocusState;
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Container object which automatically centers on the currently focused child object.
Definition: GUICenterFocusContainer.h:66
void SetFocusCenter(eC_Value vCenterX, eC_Value vCenterY)
void Init()
Helper function for initialization.
eC_Value GetFocusCenterCurrentAbsY() const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
virtual eC_Bool DoDrag(const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetDragSensitivity(eC_UInt uiHorizontalSensitivity, eC_UInt uiVerticalSensitivity)
Definition: GUICenterFocusContainer.h:195
eC_Value GetFocusCenterRelY() const
eC_Value GetFocusCenterRelX() const
void SetCenterObject(CGUIObject *const pkObject)
void SetCenterOnImmediateChildrenOnly(eC_Bool bCenterOnImmediateChildrenOnly)
void JumpToCenterObject()
virtual void ReadFromStream()
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
CGUIObject * GetCenterObject() const
Definition: GUICenterFocusContainer.h:116
CGUICenterFocusContainer(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Value &vCenterX, const eC_Value &vCenterY, const ObjectHandle_t &eID=NO_HANDLE)
eC_Value GetFocusCenterCurrentAbsX() const
void SetInertia(eC_Value vInertiaX, eC_Value vInertiaY)
Definition: GUICenterFocusContainer.h:122
CGUICenterFocusContainer()
virtual void DoAnimate(const eC_Value &vTimes=eC_FromInt(1))
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
Smart pointer to a CGUIObject which will automatically be set to NULL if the corresponding GUIObject ...
Definition: SafeGUIObjectPtr.h:44