Skip to main content

NSCollectionViewElement

Trait NSCollectionViewElement 

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

Provided Methods§

Source

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

Source

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

Available on crate feature NSCollectionViewLayout only.
Source

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

Available on crate feature NSCollectionViewLayout only.
Source

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

Available on crate feature NSCollectionViewLayout only.
Source

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

Available on crate feature NSCollectionViewLayout only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSCollectionViewElement

Source§

impl ProtocolType for dyn NSCollectionViewElement

Source§

const NAME: &'static str = "NSCollectionViewElement"

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> NSCollectionViewElement for ProtocolObject<T>

Implementors§