mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 04:50:54 +00:00
Added some new MacOSX values to NSDragOperation and some new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14954 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6f075a0a20
commit
be4787e6dc
1 changed files with 14 additions and 1 deletions
|
@ -40,7 +40,10 @@ typedef enum _NSDragOperation {
|
|||
NSDragOperationLink = 2,
|
||||
NSDragOperationGeneric = 4,
|
||||
NSDragOperationPrivate = 8,
|
||||
NSDragOperationAll = 15
|
||||
NSDragOperationMove = 16,
|
||||
NSDragOperationDelete = 32,
|
||||
NSDragOperationAll = 63,
|
||||
NSDragOperationEvery = NSDragOperationAll
|
||||
} NSDragOperation;
|
||||
|
||||
@protocol NSDraggingInfo
|
||||
|
@ -84,6 +87,9 @@ typedef enum _NSDragOperation {
|
|||
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
|
||||
- (void)concludeDragOperation:(id <NSDraggingInfo>)sender;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)draggingEnded: (id <NSDraggingInfo>)sender;
|
||||
#endif
|
||||
@end
|
||||
|
||||
@interface NSObject (NSDraggingSource)
|
||||
|
@ -103,6 +109,13 @@ typedef enum _NSDragOperation {
|
|||
endedAt: (NSPoint)screenPoint
|
||||
deposited: (BOOL)didDeposit;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)draggedImage: (NSImage*)image
|
||||
endedAt: (NSPoint)screenPoint
|
||||
operation: (NSDragOperation)operation;
|
||||
- (void)draggedImage: (NSImage*)image
|
||||
movedTo: (NSPoint)screenPoint;
|
||||
#endif
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSDragging
|
||||
|
|
Loading…
Reference in a new issue