Trait objc2_app_kit::NSCollectionViewElement

source ·
pub unsafe trait NSCollectionViewElement: NSObjectProtocol + NSUserInterfaceItemIdentification + IsMainThreadOnly {
    // Provided methods
    unsafe fn prepareForReuse(&self)
       where Self: Sized + Message { ... }
    unsafe fn applyLayoutAttributes(
        &self,
        layout_attributes: &NSCollectionViewLayoutAttributes
    )
       where Self: Sized + Message { ... }
    unsafe fn willTransitionFromLayout_toLayout(
        &self,
        old_layout: &NSCollectionViewLayout,
        new_layout: &NSCollectionViewLayout
    )
       where Self: Sized + Message { ... }
    unsafe fn didTransitionFromLayout_toLayout(
        &self,
        old_layout: &NSCollectionViewLayout,
        new_layout: &NSCollectionViewLayout
    )
       where Self: Sized + Message { ... }
    unsafe fn preferredLayoutAttributesFittingAttributes(
        &self,
        layout_attributes: &NSCollectionViewLayoutAttributes
    ) -> Id<NSCollectionViewLayoutAttributes>
       where Self: Sized + Message { ... }
}
Available on crate features NSCollectionView and NSUserInterfaceItemIdentification only.

Provided Methods§

source

unsafe fn prepareForReuse(&self)
where Self: Sized + Message,

source

unsafe fn applyLayoutAttributes( &self, layout_attributes: &NSCollectionViewLayoutAttributes )
where Self: Sized + Message,

Available on crate feature NSCollectionViewLayout only.
source

unsafe fn willTransitionFromLayout_toLayout( &self, old_layout: &NSCollectionViewLayout, new_layout: &NSCollectionViewLayout )
where Self: Sized + Message,

Available on crate feature NSCollectionViewLayout only.
source

unsafe fn didTransitionFromLayout_toLayout( &self, old_layout: &NSCollectionViewLayout, new_layout: &NSCollectionViewLayout )
where Self: Sized + Message,

Available on crate feature NSCollectionViewLayout only.
source

unsafe fn preferredLayoutAttributesFittingAttributes( &self, layout_attributes: &NSCollectionViewLayoutAttributes ) -> Id<NSCollectionViewLayoutAttributes>
where Self: Sized + Message,

Available on crate feature NSCollectionViewLayout only.

Trait Implementations§

source§

impl ProtocolType for dyn NSCollectionViewElement

source§

const NAME: &'static str = "NSCollectionViewElement"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn NSCollectionViewElement

Implementations on Foreign Types§

source§

impl<T> NSCollectionViewElement for ProtocolObject<T>

Implementors§

source§

impl NSCollectionViewElement for NSCollectionViewItem

Available on crate features NSResponder and NSViewController only.