|
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...
|
|
§ BeginDrag()
virtual void ParaEngine::IObjectDrag::BeginDrag |
( |
int |
nEvent, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
|
pure virtual |
Default BeginDrag handle function.
- Parameters
-
x,y,z | position of where the drag begins x, y, z are screen coordinates. In most cases, z is zero. |
nEvent | tells which event triggers the begin drag. This value will set to the STRUCT_DRAG_AND_DROP::nEvent |
Implemented in ParaEngine::CSceneObject.
§ CancelDrag()
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,z | position of where the drag begins x, y, z are screen coordinates. In most cases, z is zero. |
nEvent | tells 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,z | position 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:
- Client/trunk/ParaEngineClient/util/IObjectDrag.h
- Client/trunk/ParaEngineClient/util/IObjectDrag.cpp