30 int nRelativeX,nRelativeY,nRelativeZ;
34 bool m_bIsCandicateOnly;
60 void UnsetDraggingCandidate();
63 vector <string> m_receiverNames;
70 virtual void SetCandrag(
bool bCandrag)=0;
71 virtual bool GetCandrag()
const=0;
79 virtual void BeginDrag(
int nEvent,
int x,
int y,
int z)=0;
88 virtual void EndDrag(
int nEvent,
int x,
int y,
int z)=0;
96 virtual BOOL IsOnObject(
int x,
int y,
int z)=0;
Definition: IObjectDrag.h:23
different physics engine has different winding order.
Definition: EventBinding.h:32
void SetDraggingCandidate(IObjectDrag *pDragging)
a dragging candidate will receive all mouse event if the mouse button keeps pressed.
Definition: IObjectDrag.cpp:107
Definition: IObjectDrag.h:66
void SetOldPosition(const CGUIPosition &vPos)
set old position
Definition: IObjectDrag.cpp:72
CGUIPosition * GetOldPosition()
Get old position.
Definition: IObjectDrag.cpp:79
bool HasReceiver(const char *sName)
whether the current receiver list contains a given name.
Definition: IObjectDrag.cpp:96
void CleanUpReceivers()
we should clean up receivers, when a drag begins.
Definition: IObjectDrag.cpp:85
position of the GUI object
Definition: GUIPosition.h:34
void AddReceiver(const char *sName)
add an receiver to the current receiver list.
Definition: IObjectDrag.cpp:90
virtual void SetPositionI(const CGUIPosition &position)
restore to a given position.
Definition: IObjectDrag.h:99