pub unsafe trait NSCollectionViewDataSource: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn collectionView_numberOfItemsInSection(
&self,
collection_view: &NSCollectionView,
section: NSInteger,
) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn collectionView_itemForRepresentedObjectAtIndexPath(
&self,
collection_view: &NSCollectionView,
index_path: &NSIndexPath,
) -> Retained<NSCollectionViewItem>
where Self: Sized + Message { ... }
unsafe fn numberOfSectionsInCollectionView(
&self,
collection_view: &NSCollectionView,
) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn collectionView_viewForSupplementaryElementOfKind_atIndexPath(
&self,
collection_view: &NSCollectionView,
kind: &NSCollectionViewSupplementaryElementKind,
index_path: &NSIndexPath,
) -> Retained<NSView>
where Self: Sized + Message { ... }
}
Available on crate feature
NSCollectionView
only.Expand description
Provided Methods§
unsafe fn collectionView_numberOfItemsInSection( &self, collection_view: &NSCollectionView, section: NSInteger, ) -> NSInteger
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_itemForRepresentedObjectAtIndexPath( &self, collection_view: &NSCollectionView, index_path: &NSIndexPath, ) -> Retained<NSCollectionViewItem>
Available on crate features
NSResponder
and NSView
and NSViewController
only.unsafe fn numberOfSectionsInCollectionView( &self, collection_view: &NSCollectionView, ) -> NSInteger
Available on crate features
NSResponder
and NSView
only.unsafe fn collectionView_viewForSupplementaryElementOfKind_atIndexPath( &self, collection_view: &NSCollectionView, kind: &NSCollectionViewSupplementaryElementKind, index_path: &NSIndexPath, ) -> Retained<NSView>
Available on crate features
NSResponder
and NSView
only.