CPObjectCPDragServer
@implementation CPDragServer : CPObject
Method Summary | |
---|---|
+(CPDragServer) | sharedDragServer |
-(void) | dragImage:(CPImage)anImage fromWindow:(CPWindow)aWindow at:(CGPoint)imageLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack Initiates a drag session. |
-(void) | dragView:(CPView)aView fromWindow:(CPWindow)aWindow at:(CGPoint)viewLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack Initiates a drag session. |
Method Detail |
---|
+(CPDragServer)sharedDragServer
-(void)dragImage:(CPImage)anImage fromWindow:(CPWindow)aWindow at:(CGPoint)imageLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack
anImage
- the image to be draggedaWindow
- the source window of the drag sessionimageLocation
- mouseOffset
- anEvent
- aPasteboard
- the pasteboard where the drag data is locatedaSourceObject
- the object where the drag startedslideBack
- if YES
, aView
slides back to
its origin on a failed drop-(void)dragView:(CPView)aView fromWindow:(CPWindow)aWindow at:(CGPoint)viewLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack
aView
- the view being draggedaWindow
- the window where the drag source isviewLocation
- mouseOffset
- anEvent
- aPasteboard
- the pasteboard that contains the drag dataaSourceObject
- the object where the drag startedslideBack
- if YES
, aView
slides back to
its origin on a failed dropCreated on Sat Sep 13 14:15:43 PDT 2008