UICollectionViewDragDelegate

Trait UICollectionViewDragDelegate 

Source
pub unsafe trait UICollectionViewDragDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn collectionView_itemsForBeginningDragSession_atIndexPath(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
        index_path: &NSIndexPath,
    ) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    fn collectionView_itemsForAddingToDragSession_atIndexPath_point(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
        index_path: &NSIndexPath,
        point: CGPoint,
    ) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    fn collectionView_dragPreviewParametersForItemAtIndexPath(
        &self,
        collection_view: &UICollectionView,
        index_path: &NSIndexPath,
    ) -> Option<Retained<UIDragPreviewParameters>>
       where Self: Sized + Message { ... }
    fn collectionView_dragSessionWillBegin(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_dragSessionDidEnd(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_dragSessionAllowsMoveOperation(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn collectionView_dragSessionIsRestrictedToDraggingApplication(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDragSession>,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionView only.
Expand description

Provided Methods§

Source

fn collectionView_itemsForBeginningDragSession_atIndexPath( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDragSession>, index_path: &NSIndexPath, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession and UIResponder and UIScrollView and UIView only.
Source

fn collectionView_itemsForAddingToDragSession_atIndexPath_point( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDragSession>, index_path: &NSIndexPath, point: CGPoint, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession and UIResponder and UIScrollView and UIView and objc2-core-foundation only.
Source

fn collectionView_dragPreviewParametersForItemAtIndexPath( &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.
Source

fn collectionView_dragSessionWillBegin( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

fn collectionView_dragSessionDidEnd( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

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

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

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

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

Trait Implementations§

Source§

impl ProtocolType for dyn UICollectionViewDragDelegate

Source§

const NAME: &'static str = "UICollectionViewDragDelegate"

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
Source§

impl<T> ImplementedBy<T> for dyn UICollectionViewDragDelegate

Implementations on Foreign Types§

Source§

impl<T> UICollectionViewDragDelegate for ProtocolObject<T>

Implementors§