Trait objc2_app_kit::NSDraggingInfo
source · pub unsafe trait NSDraggingInfo: NSObjectProtocol + IsMainThreadOnly {
Show 19 methods
// Provided methods
unsafe fn draggingDestinationWindow(&self) -> Option<Id<NSWindow>>
where Self: Sized + Message { ... }
unsafe fn draggingSourceOperationMask(&self) -> NSDragOperation
where Self: Sized + Message { ... }
unsafe fn draggingLocation(&self) -> NSPoint
where Self: Sized + Message { ... }
unsafe fn draggedImageLocation(&self) -> NSPoint
where Self: Sized + Message { ... }
unsafe fn draggedImage(&self) -> Option<Id<NSImage>>
where Self: Sized + Message { ... }
unsafe fn draggingPasteboard(&self) -> Id<NSPasteboard>
where Self: Sized + Message { ... }
unsafe fn draggingSource(&self) -> Option<Id<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn draggingSequenceNumber(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn slideDraggedImageTo(&self, screen_point: NSPoint)
where Self: Sized + Message { ... }
unsafe fn namesOfPromisedFilesDroppedAtDestination(
&self,
drop_destination: &NSURL
) -> Option<Id<NSArray<NSString>>>
where Self: Sized + Message { ... }
unsafe fn draggingFormation(&self) -> NSDraggingFormation
where Self: Sized + Message { ... }
unsafe fn setDraggingFormation(
&self,
dragging_formation: NSDraggingFormation
)
where Self: Sized + Message { ... }
unsafe fn animatesToDestination(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setAnimatesToDestination(&self, animates_to_destination: bool)
where Self: Sized + Message { ... }
unsafe fn numberOfValidItemsForDrop(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn setNumberOfValidItemsForDrop(
&self,
number_of_valid_items_for_drop: NSInteger
)
where Self: Sized + Message { ... }
unsafe fn enumerateDraggingItemsWithOptions_forView_classes_searchOptions_usingBlock(
&self,
enum_opts: NSDraggingItemEnumerationOptions,
view: Option<&NSView>,
class_array: &NSArray<TodoClass>,
search_options: &NSDictionary<NSPasteboardReadingOptionKey, AnyObject>,
block: &Block<dyn Fn(NonNull<NSDraggingItem>, NSInteger, NonNull<Bool>)>
)
where Self: Sized + Message { ... }
unsafe fn springLoadingHighlight(&self) -> NSSpringLoadingHighlight
where Self: Sized + Message { ... }
unsafe fn resetSpringLoading(&self)
where Self: Sized + Message { ... }
}
Available on crate feature
NSDragging
only.Provided Methods§
unsafe fn draggingDestinationWindow(&self) -> Option<Id<NSWindow>>
Available on crate features
NSResponder
and NSWindow
only.unsafe fn draggingSourceOperationMask(&self) -> NSDragOperation
unsafe fn draggingLocation(&self) -> NSPoint
unsafe fn draggedImageLocation(&self) -> NSPoint
unsafe fn draggedImage(&self) -> Option<Id<NSImage>>
👎Deprecated: Use NSDraggingItem objects instead
Available on crate feature
NSImage
only.unsafe fn draggingPasteboard(&self) -> Id<NSPasteboard>
Available on crate feature
NSPasteboard
only.unsafe fn draggingSource(&self) -> Option<Id<AnyObject>>
unsafe fn draggingSequenceNumber(&self) -> NSInteger
unsafe fn slideDraggedImageTo(&self, screen_point: NSPoint)
unsafe fn namesOfPromisedFilesDroppedAtDestination( &self, drop_destination: &NSURL ) -> Option<Id<NSArray<NSString>>>
👎Deprecated: Use NSFilePromiseReceiver objects instead
unsafe fn draggingFormation(&self) -> NSDraggingFormation
unsafe fn setDraggingFormation(&self, dragging_formation: NSDraggingFormation)
unsafe fn animatesToDestination(&self) -> bool
unsafe fn setAnimatesToDestination(&self, animates_to_destination: bool)
unsafe fn numberOfValidItemsForDrop(&self) -> NSInteger
unsafe fn setNumberOfValidItemsForDrop( &self, number_of_valid_items_for_drop: NSInteger )
unsafe fn enumerateDraggingItemsWithOptions_forView_classes_searchOptions_usingBlock( &self, enum_opts: NSDraggingItemEnumerationOptions, view: Option<&NSView>, class_array: &NSArray<TodoClass>, search_options: &NSDictionary<NSPasteboardReadingOptionKey, AnyObject>, block: &Block<dyn Fn(NonNull<NSDraggingItem>, NSInteger, NonNull<Bool>)> )
Available on crate features
NSDraggingItem
and NSPasteboard
and NSResponder
and NSView
and block2
only.