My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::STRUCT_DRAG_AND_DROP Struct Reference

Public Member Functions

void init ()
 
void SetOldPosition (const CGUIPosition &vPos)
 set old position
 
CGUIPosition * GetOldPosition ()
 Get old position.
 
void CleanUpReceivers ()
 we should clean up receivers, when a drag begins. More...
 
void AddReceiver (const char *sName)
 add an receiver to the current receiver list. More...
 
bool HasReceiver (const char *sName)
 whether the current receiver list contains a given name. More...
 
void SetDraggingCandidate (IObjectDrag *pDragging)
 a dragging candidate will receive all mouse event if the mouse button keeps pressed. More...
 
void UnsetDraggingCandidate ()
 

Public Attributes

IObjectDrag * pSource
 
IObjectDrag * pDestination
 
IObjectDrag * pDragging
 
int nEvent
 
int startX
 
int startY
 
int nRelativeX
 
int nRelativeY
 
int nRelativeZ
 
CGUIPosition * m_pOldPosition
 
bool m_bIsCandicateOnly
 
void(* pCleanUp )()
 

Member Function Documentation

§ AddReceiver()

void STRUCT_DRAG_AND_DROP::AddReceiver ( const char *  sName)

add an receiver to the current receiver list.

Parameters
sNamename. if this is "root", the dragging object can always to reattached.

§ CleanUpReceivers()

void STRUCT_DRAG_AND_DROP::CleanUpReceivers ( )

we should clean up receivers, when a drag begins.

However, the drag begin NPL script handlers, one can add receiver names.

§ HasReceiver()

bool STRUCT_DRAG_AND_DROP::HasReceiver ( const char *  sName)

whether the current receiver list contains a given name.

§ SetDraggingCandidate()

void ParaEngine::STRUCT_DRAG_AND_DROP::SetDraggingCandidate ( IObjectDrag *  pDragging)

a dragging candidate will receive all mouse event if the mouse button keeps pressed.


The documentation for this struct was generated from the following files: