Skip to main content

NSCollectionViewDelegateFlowLayout

Trait NSCollectionViewDelegateFlowLayout 

Source
pub unsafe trait NSCollectionViewDelegateFlowLayout: NSCollectionViewDelegate + MainThreadOnly {
    // Provided methods
    fn collectionView_layout_sizeForItemAtIndexPath(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        index_path: &NSIndexPath,
    ) -> NSSize
       where Self: Sized + Message { ... }
    fn collectionView_layout_insetForSectionAtIndex(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        section: NSInteger,
    ) -> NSEdgeInsets
       where Self: Sized + Message { ... }
    fn collectionView_layout_minimumLineSpacingForSectionAtIndex(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        section: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn collectionView_layout_minimumInteritemSpacingForSectionAtIndex(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        section: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn collectionView_layout_referenceSizeForHeaderInSection(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        section: NSInteger,
    ) -> NSSize
       where Self: Sized + Message { ... }
    fn collectionView_layout_referenceSizeForFooterInSection(
        &self,
        collection_view: &NSCollectionView,
        collection_view_layout: &NSCollectionViewLayout,
        section: NSInteger,
    ) -> NSSize
       where Self: Sized + Message { ... }
}
Available on crate features NSCollectionView and NSCollectionViewFlowLayout only.
Expand description

Provided Methods§

Source

fn collectionView_layout_sizeForItemAtIndexPath( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, index_path: &NSIndexPath, ) -> NSSize
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView only.
Source

fn collectionView_layout_insetForSectionAtIndex( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, section: NSInteger, ) -> NSEdgeInsets
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView only.
Source

fn collectionView_layout_minimumLineSpacingForSectionAtIndex( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, section: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView and objc2-core-foundation only.
Source

fn collectionView_layout_minimumInteritemSpacingForSectionAtIndex( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, section: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView and objc2-core-foundation only.
Source

fn collectionView_layout_referenceSizeForHeaderInSection( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, section: NSInteger, ) -> NSSize
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView only.
Source

fn collectionView_layout_referenceSizeForFooterInSection( &self, collection_view: &NSCollectionView, collection_view_layout: &NSCollectionViewLayout, section: NSInteger, ) -> NSSize
where Self: Sized + Message,

Available on crate features NSCollectionViewLayout and NSResponder and NSView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSCollectionViewDelegateFlowLayout

Source§

impl ProtocolType for dyn NSCollectionViewDelegateFlowLayout

Source§

const NAME: &'static str = "NSCollectionViewDelegateFlowLayout"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSCollectionViewDelegateFlowLayout for ProtocolObject<T>

Implementors§