pub unsafe trait UICollectionViewDelegateFlowLayout: UICollectionViewDelegate + MainThreadOnly {
// Provided methods
fn collectionView_layout_sizeForItemAtIndexPath(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
index_path: &NSIndexPath,
) -> CGSize
where Self: Sized + Message { ... }
fn collectionView_layout_insetForSectionAtIndex(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
section: NSInteger,
) -> UIEdgeInsets
where Self: Sized + Message { ... }
fn collectionView_layout_minimumLineSpacingForSectionAtIndex(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn collectionView_layout_minimumInteritemSpacingForSectionAtIndex(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn collectionView_layout_referenceSizeForHeaderInSection(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
section: NSInteger,
) -> CGSize
where Self: Sized + Message { ... }
fn collectionView_layout_referenceSizeForFooterInSection(
&self,
collection_view: &UICollectionView,
collection_view_layout: &UICollectionViewLayout,
section: NSInteger,
) -> CGSize
where Self: Sized + Message { ... }
}Available on crate features
UICollectionView and UICollectionViewFlowLayout and UIScrollView only.Expand description
Provided Methods§
fn collectionView_layout_sizeForItemAtIndexPath( &self, collection_view: &UICollectionView, collection_view_layout: &UICollectionViewLayout, index_path: &NSIndexPath, ) -> CGSize
Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIResponder and UIView only.fn collectionView_layout_insetForSectionAtIndex( &self, collection_view: &UICollectionView, collection_view_layout: &UICollectionViewLayout, section: NSInteger, ) -> UIEdgeInsets
Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIGeometry and UIResponder and UIView only.fn collectionView_layout_minimumLineSpacingForSectionAtIndex( &self, collection_view: &UICollectionView, collection_view_layout: &UICollectionViewLayout, section: NSInteger, ) -> CGFloat
Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIResponder and UIView only.fn collectionView_layout_minimumInteritemSpacingForSectionAtIndex( &self, collection_view: &UICollectionView, collection_view_layout: &UICollectionViewLayout, section: NSInteger, ) -> CGFloat
Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIResponder and UIView only.fn collectionView_layout_referenceSizeForHeaderInSection( &self, collection_view: &UICollectionView, collection_view_layout: &UICollectionViewLayout, section: NSInteger, ) -> CGSize
Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIResponder and UIView only.Available on crate features
objc2-core-foundation and UICollectionViewLayout and UIResponder and UIView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UICollectionViewDelegateFlowLayout
Source§impl ProtocolType for dyn UICollectionViewDelegateFlowLayout
impl ProtocolType for dyn UICollectionViewDelegateFlowLayout
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".