[][src]Trait uikit_sys::PUICollectionViewDataSource

pub trait PUICollectionViewDataSource: Sized + Deref {
    unsafe fn collectionView_numberOfItemsInSection_(
        self,
        collectionView: UICollectionView,
        section: NSInteger
    ) -> NSInteger
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionView_cellForItemAtIndexPath_(
        self,
        collectionView: UICollectionView,
        indexPath: NSIndexPath
    ) -> UICollectionViewCell
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn numberOfSectionsInCollectionView_(
        self,
        collectionView: UICollectionView
    ) -> NSInteger
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionView_viewForSupplementaryElementOfKind_atIndexPath_(
        self,
        collectionView: UICollectionView,
        kind: NSString,
        indexPath: NSIndexPath
    ) -> UICollectionReusableView
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionView_canMoveItemAtIndexPath_(
        self,
        collectionView: UICollectionView,
        indexPath: NSIndexPath
    ) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionView_moveItemAtIndexPath_toIndexPath_(
        self,
        collectionView: UICollectionView,
        sourceIndexPath: NSIndexPath,
        destinationIndexPath: NSIndexPath
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn indexTitlesForCollectionView_(
        self,
        collectionView: UICollectionView
    ) -> NSArray
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionView_indexPathForIndexTitle_atIndex_(
        self,
        collectionView: UICollectionView,
        title: NSString,
        index: NSInteger
    ) -> NSIndexPath
    where
        Self::Target: Message + Sized
, { ... } }

Provided methods

unsafe fn collectionView_numberOfItemsInSection_(
    self,
    collectionView: UICollectionView,
    section: NSInteger
) -> NSInteger where
    Self::Target: Message + Sized

unsafe fn collectionView_cellForItemAtIndexPath_(
    self,
    collectionView: UICollectionView,
    indexPath: NSIndexPath
) -> UICollectionViewCell where
    Self::Target: Message + Sized

unsafe fn numberOfSectionsInCollectionView_(
    self,
    collectionView: UICollectionView
) -> NSInteger where
    Self::Target: Message + Sized

unsafe fn collectionView_viewForSupplementaryElementOfKind_atIndexPath_(
    self,
    collectionView: UICollectionView,
    kind: NSString,
    indexPath: NSIndexPath
) -> UICollectionReusableView where
    Self::Target: Message + Sized

unsafe fn collectionView_canMoveItemAtIndexPath_(
    self,
    collectionView: UICollectionView,
    indexPath: NSIndexPath
) -> BOOL where
    Self::Target: Message + Sized

unsafe fn collectionView_moveItemAtIndexPath_toIndexPath_(
    self,
    collectionView: UICollectionView,
    sourceIndexPath: NSIndexPath,
    destinationIndexPath: NSIndexPath
) where
    Self::Target: Message + Sized

unsafe fn indexTitlesForCollectionView_(
    self,
    collectionView: UICollectionView
) -> NSArray where
    Self::Target: Message + Sized

unsafe fn collectionView_indexPathForIndexTitle_atIndex_(
    self,
    collectionView: UICollectionView,
    title: NSString,
    index: NSInteger
) -> NSIndexPath where
    Self::Target: Message + Sized

Loading content...

Implementors

impl PUICollectionViewDataSource for UICollectionViewController[src]

impl PUICollectionViewDataSource for UICollectionViewDiffableDataSource[src]

Loading content...