InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDropTargetCallback Class Referenceabstract

#include <IDropTargetCallback.h>

Inheritance diagram for IDropTargetCallback:
IPMUnknown

Public Types

enum  eCallbackState { kTargetEntered = 0, kTargetWithin = 1, kTargetLeft = 2 }
 

Public Member Functions

virtual void TrackingCallback (eCallbackState state, const PMPoint &localPt, PMRect &rect)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

IDropTargetCallback allows drag drop targets to directly notify other objects during the drag tracking process.

See Also
IDragDropTarget::RegisterTargetCallback, IDragDropTarget::ReleaseTargetCallback

Member Enumeration Documentation

constants for indicating the current phase of the drag
Enumerator
kTargetEntered 

drag has entered the target

kTargetWithin 

drag is moving within the target

kTargetLeft 

drag has left the target

Member Function Documentation

virtual void IDropTargetCallback::TrackingCallback (eCallbackState state,
const PMPointlocalPt,
PMRectrect 
)
pure virtual

Callback for drag tracking. The localPt parameter is only valid in the kTargetWithin state, which is called periodically as the mouse moves within the target.

Parameters
stateIN the current state of the drag
localPtIN current mouse location within the target
rectIN bounds of the drag feedback