NSDraggingInfo

Trait NSDraggingInfo 

Source
pub unsafe trait NSDraggingInfo: NSObjectProtocol + MainThreadOnly {
Show 19 methods // Provided methods unsafe fn draggingDestinationWindow(&self) -> Option<Retained<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<Retained<NSImage>> where Self: Sized + Message { ... } unsafe fn draggingPasteboard(&self) -> Retained<NSPasteboard> where Self: Sized + Message { ... } unsafe fn draggingSource(&self) -> Option<Retained<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<Retained<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<AnyClass>, search_options: &NSDictionary<NSPasteboardReadingOptionKey, AnyObject>, block: &DynBlock<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.
Expand description

Provided Methods§

Source

unsafe fn draggingDestinationWindow(&self) -> Option<Retained<NSWindow>>
where Self: Sized + Message,

Available on crate features NSResponder and NSWindow only.
Source

unsafe fn draggingSourceOperationMask(&self) -> NSDragOperation
where Self: Sized + Message,

Source

unsafe fn draggingLocation(&self) -> NSPoint
where Self: Sized + Message,

Source

unsafe fn draggedImageLocation(&self) -> NSPoint
where Self: Sized + Message,

Source

unsafe fn draggedImage(&self) -> Option<Retained<NSImage>>
where Self: Sized + Message,

👎Deprecated: Use NSDraggingItem objects instead
Available on crate feature NSImage only.
Source

unsafe fn draggingPasteboard(&self) -> Retained<NSPasteboard>
where Self: Sized + Message,

Available on crate feature NSPasteboard only.
Source

unsafe fn draggingSource(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Source

unsafe fn draggingSequenceNumber(&self) -> NSInteger
where Self: Sized + Message,

Source

unsafe fn slideDraggedImageTo(&self, screen_point: NSPoint)
where Self: Sized + Message,

Source

unsafe fn namesOfPromisedFilesDroppedAtDestination( &self, drop_destination: &NSURL, ) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message,

👎Deprecated: Use NSFilePromiseReceiver objects instead
Source

unsafe fn draggingFormation(&self) -> NSDraggingFormation
where Self: Sized + Message,

Source

unsafe fn setDraggingFormation(&self, dragging_formation: NSDraggingFormation)
where Self: Sized + Message,

Setter for draggingFormation.

Source

unsafe fn animatesToDestination(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn setAnimatesToDestination(&self, animates_to_destination: bool)
where Self: Sized + Message,

Source

unsafe fn numberOfValidItemsForDrop(&self) -> NSInteger
where Self: Sized + Message,

Source

unsafe fn setNumberOfValidItemsForDrop( &self, number_of_valid_items_for_drop: NSInteger, )
where Self: Sized + Message,

Source

unsafe fn enumerateDraggingItemsWithOptions_forView_classes_searchOptions_usingBlock( &self, enum_opts: NSDraggingItemEnumerationOptions, view: Option<&NSView>, class_array: &NSArray<AnyClass>, search_options: &NSDictionary<NSPasteboardReadingOptionKey, AnyObject>, block: &DynBlock<dyn Fn(NonNull<NSDraggingItem>, NSInteger, NonNull<Bool>)>, )
where Self: Sized + Message,

Available on crate features NSDraggingItem and NSPasteboard and NSResponder and NSView and block2 only.
Source

unsafe fn springLoadingHighlight(&self) -> NSSpringLoadingHighlight
where Self: Sized + Message,

Source

unsafe fn resetSpringLoading(&self)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn NSDraggingInfo

Source§

const NAME: &'static str = "NSDraggingInfo"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSDraggingInfo

Implementations on Foreign Types§

Source§

impl<T> NSDraggingInfo for ProtocolObject<T>
where T: ?Sized + NSDraggingInfo,

Implementors§