pub unsafe trait NSCollectionViewDelegate: NSObjectProtocol {
Show 29 methods
// Provided methods
unsafe fn collectionView_canDragItemsAtIndexPaths_withEvent(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>,
event: &NSEvent
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_canDragItemsAtIndexes_withEvent(
&self,
collection_view: &NSCollectionView,
indexes: &NSIndexSet,
event: &NSEvent
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_writeItemsAtIndexPaths_toPasteboard(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>,
pasteboard: &NSPasteboard
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_writeItemsAtIndexes_toPasteboard(
&self,
collection_view: &NSCollectionView,
indexes: &NSIndexSet,
pasteboard: &NSPasteboard
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
drop_url: &NSURL,
index_paths: &NSSet<NSIndexPath>
) -> Id<NSArray<NSString>>
where Self: Sized + Message { ... }
unsafe fn collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes(
&self,
collection_view: &NSCollectionView,
drop_url: &NSURL,
indexes: &NSIndexSet
) -> Id<NSArray<NSString>>
where Self: Sized + Message { ... }
unsafe fn collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>,
event: &NSEvent,
drag_image_offset: NSPointPointer
) -> Id<NSImage>
where Self: Sized + Message { ... }
unsafe fn collectionView_draggingImageForItemsAtIndexes_withEvent_offset(
&self,
collection_view: &NSCollectionView,
indexes: &NSIndexSet,
event: &NSEvent,
drag_image_offset: NSPointPointer
) -> Id<NSImage>
where Self: Sized + Message { ... }
unsafe fn collectionView_validateDrop_proposedIndexPath_dropOperation(
&self,
collection_view: &NSCollectionView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>,
proposed_drop_index_path: &mut Id<NSIndexPath>,
proposed_drop_operation: NonNull<NSCollectionViewDropOperation>
) -> NSDragOperation
where Self: Sized + Message { ... }
unsafe fn collectionView_validateDrop_proposedIndex_dropOperation(
&self,
collection_view: &NSCollectionView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>,
proposed_drop_index: NonNull<NSInteger>,
proposed_drop_operation: NonNull<NSCollectionViewDropOperation>
) -> NSDragOperation
where Self: Sized + Message { ... }
unsafe fn collectionView_acceptDrop_indexPath_dropOperation(
&self,
collection_view: &NSCollectionView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>,
index_path: &NSIndexPath,
drop_operation: NSCollectionViewDropOperation
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_acceptDrop_index_dropOperation(
&self,
collection_view: &NSCollectionView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>,
index: NSInteger,
drop_operation: NSCollectionViewDropOperation
) -> bool
where Self: Sized + Message { ... }
unsafe fn collectionView_pasteboardWriterForItemAtIndexPath(
&self,
collection_view: &NSCollectionView,
index_path: &NSIndexPath
) -> Option<Id<ProtocolObject<dyn NSPasteboardWriting>>>
where Self: Sized + Message { ... }
unsafe fn collectionView_pasteboardWriterForItemAtIndex(
&self,
collection_view: &NSCollectionView,
index: NSUInteger
) -> Option<Id<ProtocolObject<dyn NSPasteboardWriting>>>
where Self: Sized + Message { ... }
unsafe fn collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
session: &NSDraggingSession,
screen_point: NSPoint,
index_paths: &NSSet<NSIndexPath>
)
where Self: Sized + Message { ... }
unsafe fn collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes(
&self,
collection_view: &NSCollectionView,
session: &NSDraggingSession,
screen_point: NSPoint,
indexes: &NSIndexSet
)
where Self: Sized + Message { ... }
unsafe fn collectionView_draggingSession_endedAtPoint_dragOperation(
&self,
collection_view: &NSCollectionView,
session: &NSDraggingSession,
screen_point: NSPoint,
operation: NSDragOperation
)
where Self: Sized + Message { ... }
unsafe fn collectionView_updateDraggingItemsForDrag(
&self,
collection_view: &NSCollectionView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>
)
where Self: Sized + Message { ... }
unsafe fn collectionView_shouldChangeItemsAtIndexPaths_toHighlightState(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>,
highlight_state: NSCollectionViewItemHighlightState
) -> Id<NSSet<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn collectionView_didChangeItemsAtIndexPaths_toHighlightState(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>,
highlight_state: NSCollectionViewItemHighlightState
)
where Self: Sized + Message { ... }
unsafe fn collectionView_shouldSelectItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>
) -> Id<NSSet<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn collectionView_shouldDeselectItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>
) -> Id<NSSet<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn collectionView_didSelectItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>
)
where Self: Sized + Message { ... }
unsafe fn collectionView_didDeselectItemsAtIndexPaths(
&self,
collection_view: &NSCollectionView,
index_paths: &NSSet<NSIndexPath>
)
where Self: Sized + Message { ... }
unsafe fn collectionView_willDisplayItem_forRepresentedObjectAtIndexPath(
&self,
collection_view: &NSCollectionView,
item: &NSCollectionViewItem,
index_path: &NSIndexPath
)
where Self: Sized + Message { ... }
unsafe fn collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath(
&self,
collection_view: &NSCollectionView,
view: &NSView,
element_kind: &NSCollectionViewSupplementaryElementKind,
index_path: &NSIndexPath
)
where Self: Sized + Message { ... }
unsafe fn collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath(
&self,
collection_view: &NSCollectionView,
item: &NSCollectionViewItem,
index_path: &NSIndexPath
)
where Self: Sized + Message { ... }
unsafe fn collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath(
&self,
collection_view: &NSCollectionView,
view: &NSView,
element_kind: &NSCollectionViewSupplementaryElementKind,
index_path: &NSIndexPath
)
where Self: Sized + Message { ... }
unsafe fn collectionView_transitionLayoutForOldLayout_newLayout(
&self,
collection_view: &NSCollectionView,
from_layout: &NSCollectionViewLayout,
to_layout: &NSCollectionViewLayout
) -> Id<NSCollectionViewTransitionLayout>
where Self: Sized + Message { ... }
}
Available on crate feature
NSCollectionView
only.Provided Methods§
unsafe fn collectionView_canDragItemsAtIndexPaths_withEvent( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath>, event: &NSEvent ) -> bool
Available on crate features
NSEvent
and NSResponder
and NSView
only.unsafe fn collectionView_canDragItemsAtIndexes_withEvent( &self, collection_view: &NSCollectionView, indexes: &NSIndexSet, event: &NSEvent ) -> bool
Available on crate features
NSEvent
and NSResponder
and NSView
only.unsafe fn collectionView_writeItemsAtIndexPaths_toPasteboard( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath>, pasteboard: &NSPasteboard ) -> bool
👎Deprecated: Use -collectionView:pasteboardWriterForItemAtIndexPath: instead
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.unsafe fn collectionView_writeItemsAtIndexes_toPasteboard( &self, collection_view: &NSCollectionView, indexes: &NSIndexSet, pasteboard: &NSPasteboard ) -> bool
👎Deprecated: Use -collectionView:pasteboardWriterForItemAtIndexPath: instead
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.unsafe fn collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths( &self, collection_view: &NSCollectionView, drop_url: &NSURL, index_paths: &NSSet<NSIndexPath> ) -> Id<NSArray<NSString>>
👎Deprecated: Use NSFilePromiseReceiver objects instead
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes( &self, collection_view: &NSCollectionView, drop_url: &NSURL, indexes: &NSIndexSet ) -> Id<NSArray<NSString>>
👎Deprecated: Use NSFilePromiseReceiver objects instead
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath>, event: &NSEvent, drag_image_offset: NSPointPointer ) -> Id<NSImage>
Available on crate features
NSEvent
and NSImage
and NSResponder
and NSView
only.unsafe fn collectionView_draggingImageForItemsAtIndexes_withEvent_offset( &self, collection_view: &NSCollectionView, indexes: &NSIndexSet, event: &NSEvent, drag_image_offset: NSPointPointer ) -> Id<NSImage>
Available on crate features
NSEvent
and NSImage
and NSResponder
and NSView
only.unsafe fn collectionView_validateDrop_proposedIndexPath_dropOperation( &self, collection_view: &NSCollectionView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, proposed_drop_index_path: &mut Id<NSIndexPath>, proposed_drop_operation: NonNull<NSCollectionViewDropOperation> ) -> NSDragOperation
Available on crate features
NSDragging
and NSResponder
and NSView
only.unsafe fn collectionView_validateDrop_proposedIndex_dropOperation( &self, collection_view: &NSCollectionView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, proposed_drop_index: NonNull<NSInteger>, proposed_drop_operation: NonNull<NSCollectionViewDropOperation> ) -> NSDragOperation
Available on crate features
NSDragging
and NSResponder
and NSView
only.unsafe fn collectionView_acceptDrop_indexPath_dropOperation( &self, collection_view: &NSCollectionView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, index_path: &NSIndexPath, drop_operation: NSCollectionViewDropOperation ) -> bool
Available on crate features
NSDragging
and NSResponder
and NSView
only.unsafe fn collectionView_acceptDrop_index_dropOperation( &self, collection_view: &NSCollectionView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, index: NSInteger, drop_operation: NSCollectionViewDropOperation ) -> bool
Available on crate features
NSDragging
and NSResponder
and NSView
only.unsafe fn collectionView_pasteboardWriterForItemAtIndexPath( &self, collection_view: &NSCollectionView, index_path: &NSIndexPath ) -> Option<Id<ProtocolObject<dyn NSPasteboardWriting>>>
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.unsafe fn collectionView_pasteboardWriterForItemAtIndex( &self, collection_view: &NSCollectionView, index: NSUInteger ) -> Option<Id<ProtocolObject<dyn NSPasteboardWriting>>>
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.unsafe fn collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths( &self, collection_view: &NSCollectionView, session: &NSDraggingSession, screen_point: NSPoint, index_paths: &NSSet<NSIndexPath> )
Available on crate features
NSDraggingSession
and NSResponder
and NSView
only.unsafe fn collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes( &self, collection_view: &NSCollectionView, session: &NSDraggingSession, screen_point: NSPoint, indexes: &NSIndexSet )
Available on crate features
NSDraggingSession
and NSResponder
and NSView
only.unsafe fn collectionView_draggingSession_endedAtPoint_dragOperation( &self, collection_view: &NSCollectionView, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation )
Available on crate features
NSDragging
and NSDraggingSession
and NSResponder
and NSView
only.unsafe fn collectionView_updateDraggingItemsForDrag( &self, collection_view: &NSCollectionView, dragging_info: &ProtocolObject<dyn NSDraggingInfo> )
Available on crate features
NSDragging
and NSResponder
and NSView
only.unsafe fn collectionView_shouldChangeItemsAtIndexPaths_toHighlightState( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath>, highlight_state: NSCollectionViewItemHighlightState ) -> Id<NSSet<NSIndexPath>>
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_didChangeItemsAtIndexPaths_toHighlightState( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath>, highlight_state: NSCollectionViewItemHighlightState )
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_shouldSelectItemsAtIndexPaths( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath> ) -> Id<NSSet<NSIndexPath>>
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_shouldDeselectItemsAtIndexPaths( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath> ) -> Id<NSSet<NSIndexPath>>
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_didSelectItemsAtIndexPaths( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath> )
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_didDeselectItemsAtIndexPaths( &self, collection_view: &NSCollectionView, index_paths: &NSSet<NSIndexPath> )
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_willDisplayItem_forRepresentedObjectAtIndexPath( &self, collection_view: &NSCollectionView, item: &NSCollectionViewItem, index_path: &NSIndexPath )
Available on crate features
NSResponder
and NSView
and NSViewController
only.unsafe fn collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath( &self, collection_view: &NSCollectionView, view: &NSView, element_kind: &NSCollectionViewSupplementaryElementKind, index_path: &NSIndexPath )
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath( &self, collection_view: &NSCollectionView, item: &NSCollectionViewItem, index_path: &NSIndexPath )
Available on crate features
NSResponder
and NSView
and NSViewController
only.unsafe fn collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath( &self, collection_view: &NSCollectionView, view: &NSView, element_kind: &NSCollectionViewSupplementaryElementKind, index_path: &NSIndexPath )
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_transitionLayoutForOldLayout_newLayout( &self, collection_view: &NSCollectionView, from_layout: &NSCollectionViewLayout, to_layout: &NSCollectionViewLayout ) -> Id<NSCollectionViewTransitionLayout>
Available on crate features
NSCollectionViewLayout
and NSCollectionViewTransitionLayout
and NSResponder
and NSView
only.