pub unsafe trait NSDraggingInfo: NSObjectProtocol + MainThreadOnly {
Show 19 methods
// Provided methods
fn draggingDestinationWindow(&self) -> Option<Retained<NSWindow>>
where Self: Sized + Message { ... }
fn draggingSourceOperationMask(&self) -> NSDragOperation
where Self: Sized + Message { ... }
fn draggingLocation(&self) -> NSPoint
where Self: Sized + Message { ... }
fn draggedImageLocation(&self) -> NSPoint
where Self: Sized + Message { ... }
fn draggedImage(&self) -> Option<Retained<NSImage>>
where Self: Sized + Message { ... }
fn draggingPasteboard(&self) -> Retained<NSPasteboard>
where Self: Sized + Message { ... }
fn draggingSource(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
fn draggingSequenceNumber(&self) -> NSInteger
where Self: Sized + Message { ... }
fn slideDraggedImageTo(&self, screen_point: NSPoint)
where Self: Sized + Message { ... }
fn namesOfPromisedFilesDroppedAtDestination(
&self,
drop_destination: &NSURL,
) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message { ... }
fn draggingFormation(&self) -> NSDraggingFormation
where Self: Sized + Message { ... }
fn setDraggingFormation(&self, dragging_formation: NSDraggingFormation)
where Self: Sized + Message { ... }
fn animatesToDestination(&self) -> bool
where Self: Sized + Message { ... }
fn setAnimatesToDestination(&self, animates_to_destination: bool)
where Self: Sized + Message { ... }
fn numberOfValidItemsForDrop(&self) -> NSInteger
where Self: Sized + Message { ... }
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 { ... }
fn springLoadingHighlight(&self) -> NSSpringLoadingHighlight
where Self: Sized + Message { ... }
fn resetSpringLoading(&self)
where Self: Sized + Message { ... }
}Available on crate feature
NSDragging only.Expand description
Provided Methods§
fn draggingDestinationWindow(&self) -> Option<Retained<NSWindow>>
Available on crate features
NSResponder and NSWindow only.fn draggingSourceOperationMask(&self) -> NSDragOperation
fn draggingLocation(&self) -> NSPoint
fn draggedImageLocation(&self) -> NSPoint
fn draggedImage(&self) -> Option<Retained<NSImage>>
👎Deprecated:
Use NSDraggingItem objects instead
Available on crate feature
NSImage only.fn draggingPasteboard(&self) -> Retained<NSPasteboard>
Available on crate feature
NSPasteboard only.fn draggingSource(&self) -> Option<Retained<AnyObject>>
fn draggingSequenceNumber(&self) -> NSInteger
fn slideDraggedImageTo(&self, screen_point: NSPoint)
fn namesOfPromisedFilesDroppedAtDestination( &self, drop_destination: &NSURL, ) -> Option<Retained<NSArray<NSString>>>
👎Deprecated:
Use NSFilePromiseReceiver objects instead
fn draggingFormation(&self) -> NSDraggingFormation
Sourcefn setDraggingFormation(&self, dragging_formation: NSDraggingFormation)
fn setDraggingFormation(&self, dragging_formation: NSDraggingFormation)
Setter for draggingFormation.
fn animatesToDestination(&self) -> bool
Sourcefn setAnimatesToDestination(&self, animates_to_destination: bool)
fn setAnimatesToDestination(&self, animates_to_destination: bool)
Setter for animatesToDestination.
fn numberOfValidItemsForDrop(&self) -> NSInteger
Sourcefn setNumberOfValidItemsForDrop(
&self,
number_of_valid_items_for_drop: NSInteger,
)
fn setNumberOfValidItemsForDrop( &self, number_of_valid_items_for_drop: NSInteger, )
Setter for numberOfValidItemsForDrop.
Sourceunsafe 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>)>,
)
Available on crate features block2 and NSDraggingItem and NSPasteboard and NSResponder and NSView only.
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>)>, )
block2 and NSDraggingItem and NSPasteboard and NSResponder and NSView only.§Safety
class_arraygeneric probably has further requirements.search_optionsgeneric should be of the correct type.
fn springLoadingHighlight(&self) -> NSSpringLoadingHighlight
fn resetSpringLoading(&self)
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSDraggingInfo
Source§impl ProtocolType for dyn NSDraggingInfo
impl ProtocolType for dyn NSDraggingInfo
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".