Skip to main content

UICollectionViewDropItem

Trait UICollectionViewDropItem 

Source
pub unsafe trait UICollectionViewDropItem: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn dragItem(&self) -> Retained<UIDragItem>
       where Self: Sized + Message { ... }
    fn sourceIndexPath(&self) -> Option<Retained<NSIndexPath>>
       where Self: Sized + Message { ... }
    fn previewSize(&self) -> CGSize
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionView only.
Expand description

Provided Methods§

Source

fn dragItem(&self) -> Retained<UIDragItem>
where Self: Sized + Message,

Available on crate feature UIDragItem only.
Source

fn sourceIndexPath(&self) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

Source

fn previewSize(&self) -> CGSize
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UICollectionViewDropItem

Source§

impl ProtocolType for dyn UICollectionViewDropItem

Source§

const NAME: &'static str = "UICollectionViewDropItem"

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

Implementors§