pub unsafe trait NSCollectionViewDataSource: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn collectionView_numberOfItemsInSection(
&self,
collection_view: &NSCollectionView,
section: NSInteger,
) -> NSInteger
where Self: Sized + Message { ... }
fn collectionView_itemForRepresentedObjectAtIndexPath(
&self,
collection_view: &NSCollectionView,
index_path: &NSIndexPath,
) -> Retained<NSCollectionViewItem>
where Self: Sized + Message { ... }
fn numberOfSectionsInCollectionView(
&self,
collection_view: &NSCollectionView,
) -> NSInteger
where Self: Sized + Message { ... }
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§
fn collectionView_numberOfItemsInSection( &self, collection_view: &NSCollectionView, section: NSInteger, ) -> NSInteger
Available on crate features
NSResponder and NSView only.fn collectionView_itemForRepresentedObjectAtIndexPath( &self, collection_view: &NSCollectionView, index_path: &NSIndexPath, ) -> Retained<NSCollectionViewItem>
Available on crate features
NSResponder and NSView and NSViewController only.fn numberOfSectionsInCollectionView( &self, collection_view: &NSCollectionView, ) -> NSInteger
Available on crate features
NSResponder and NSView only.fn collectionView_viewForSupplementaryElementOfKind_atIndexPath( &self, collection_view: &NSCollectionView, kind: &NSCollectionViewSupplementaryElementKind, index_path: &NSIndexPath, ) -> Retained<NSView>
Available on crate features
NSResponder and NSView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSCollectionViewDataSource
Source§impl ProtocolType for dyn NSCollectionViewDataSource
impl ProtocolType for dyn NSCollectionViewDataSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".