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§
fn prepareForReuse(&self)
fn applyLayoutAttributes( &self, layout_attributes: &NSCollectionViewLayoutAttributes, )
Available on crate feature
NSCollectionViewLayout only.fn willTransitionFromLayout_toLayout( &self, old_layout: &NSCollectionViewLayout, new_layout: &NSCollectionViewLayout, )
Available on crate feature
NSCollectionViewLayout only.fn didTransitionFromLayout_toLayout( &self, old_layout: &NSCollectionViewLayout, new_layout: &NSCollectionViewLayout, )
Available on crate feature
NSCollectionViewLayout only.fn preferredLayoutAttributesFittingAttributes( &self, layout_attributes: &NSCollectionViewLayoutAttributes, ) -> Retained<NSCollectionViewLayoutAttributes>
Available on crate feature
NSCollectionViewLayout only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSCollectionViewElement
Source§impl ProtocolType for dyn NSCollectionViewElement
impl ProtocolType for dyn NSCollectionViewElement
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".