My Project
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
ParaEngine::IObjectDrag Class Referenceabstract
Inheritance diagram for ParaEngine::IObjectDrag:
ParaEngine::CGUIBase ParaEngine::CSceneObject ParaEngine::CGUIAttributeGrid ParaEngine::CGUIButton ParaEngine::CGUICanvas ParaEngine::CGUIContainer ParaEngine::CGUIEditBox ParaEngine::CGUIScrollBar ParaEngine::CGUISlider ParaEngine::CGUIText ParaEngine::CGUIToolTip ParaEngine::CGUIWebBrowser

Public Member Functions

virtual void SetCandrag (bool bCandrag)=0
 
virtual bool GetCandrag () const =0
 
virtual void BeginDrag (int nEvent, int x, int y, int z)=0
 Default BeginDrag handle function. More...
 
virtual void EndDrag (int nEvent, int x, int y, int z)=0
 Default EndDrag handle function. More...
 
virtual BOOL IsOnObject (int x, int y, int z)=0
 Decide whether the input position is on this object This function is to help other function to decide if the currently pointing position is logically "on" the object. More...
 
virtual void SetPositionI (const CGUIPosition &position)
 restore to a given position. More...
 

Static Public Member Functions

static bool CancelDrag (STRUCT_DRAG_AND_DROP *pdrag)
 try cancel the drag operation. More...
 

Static Public Attributes

static STRUCT_DRAG_AND_DROP DraggingObject
 This structure contains the information about the dragging object.
 

Protected Attributes

bool m_bCandrag
 

Member Function Documentation

§ BeginDrag()

virtual void ParaEngine::IObjectDrag::BeginDrag ( int  nEvent,
int  x,
int  y,
int  z 
)
pure virtual

Default BeginDrag handle function.

Parameters
x,y,zposition of where the drag begins x, y, z are screen coordinates. In most cases, z is zero.
nEventtells which event triggers the begin drag. This value will set to the STRUCT_DRAG_AND_DROP::nEvent

Implemented in ParaEngine::CSceneObject.

§ CancelDrag()

bool IObjectDrag::CancelDrag ( STRUCT_DRAG_AND_DROP pdrag)
static

try cancel the drag operation.

return true if the drag operation is successfully canceled to its source location where the drag begins.

restore dragging control to source control

§ EndDrag()

virtual void ParaEngine::IObjectDrag::EndDrag ( int  nEvent,
int  x,
int  y,
int  z 
)
pure virtual

Default EndDrag handle function.

Parameters
x,y,zposition of where the drag begins x, y, z are screen coordinates. In most cases, z is zero.
nEventtells which event triggers the end drag. You may test this value against the STRUCT_DRAG_AND_DROP::nEvent to see if this end drag is acceptable.

Implemented in ParaEngine::CSceneObject.

§ IsOnObject()

virtual BOOL ParaEngine::IObjectDrag::IsOnObject ( int  x,
int  y,
int  z 
)
pure virtual

Decide whether the input position is on this object This function is to help other function to decide if the currently pointing position is logically "on" the object.

Parameters
x,y,zposition of where the drag begins x, y, z are screen coordinates. In most cases, z is zero.

Implemented in ParaEngine::CSceneObject.

§ SetPositionI()

virtual void ParaEngine::IObjectDrag::SetPositionI ( const CGUIPosition position)
inlinevirtual

restore to a given position.


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