Trait objc2_ui_kit::UICollectionViewDropDelegate

source ·
pub unsafe trait UICollectionViewDropDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn collectionView_performDropWithCoordinator(
        &self,
        collection_view: &UICollectionView,
        coordinator: &ProtocolObject<dyn UICollectionViewDropCoordinator>
    )
       where Self: Sized + Message { ... }
    unsafe fn collectionView_canHandleDropSession(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn collectionView_dropSessionDidEnter(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>
    )
       where Self: Sized + Message { ... }
    unsafe fn collectionView_dropSessionDidUpdate_withDestinationIndexPath(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
        destination_index_path: Option<&NSIndexPath>
    ) -> Retained<UICollectionViewDropProposal>
       where Self: Sized + Message { ... }
    unsafe fn collectionView_dropSessionDidExit(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>
    )
       where Self: Sized + Message { ... }
    unsafe fn collectionView_dropSessionDidEnd(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>
    )
       where Self: Sized + Message { ... }
    unsafe fn collectionView_dropPreviewParametersForItemAtIndexPath(
        &self,
        collection_view: &UICollectionView,
        index_path: &NSIndexPath
    ) -> Option<Retained<UIDragPreviewParameters>>
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionView only.

Provided Methods§

source

unsafe fn collectionView_performDropWithCoordinator( &self, collection_view: &UICollectionView, coordinator: &ProtocolObject<dyn UICollectionViewDropCoordinator> )
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_canHandleDropSession( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession> ) -> bool
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_dropSessionDidEnter( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession> )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_dropSessionDidUpdate_withDestinationIndexPath( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, destination_index_path: Option<&NSIndexPath> ) -> Retained<UICollectionViewDropProposal>
where Self: Sized + Message,

Available on crate features UIDragSession and UIDropInteraction and UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_dropSessionDidExit( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession> )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_dropSessionDidEnd( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession> )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
source

unsafe fn collectionView_dropPreviewParametersForItemAtIndexPath( &self, collection_view: &UICollectionView, index_path: &NSIndexPath ) -> Option<Retained<UIDragPreviewParameters>>
where Self: Sized + Message,

Available on crate features UIDragPreviewParameters and UIPreviewParameters and UIResponder and UIScrollView and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UICollectionViewDropDelegate

source§

const NAME: &'static str = "UICollectionViewDropDelegate"

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 UICollectionViewDropDelegate

Implementations on Foreign Types§

source§

impl<T> UICollectionViewDropDelegate for ProtocolObject<T>

Implementors§