Skip to main content

UICollectionViewDropCoordinator

Trait UICollectionViewDropCoordinator 

Source
pub unsafe trait UICollectionViewDropCoordinator: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn items(
        &self,
    ) -> Retained<NSArray<ProtocolObject<dyn UICollectionViewDropItem>>>
       where Self: Sized + Message { ... }
    fn destinationIndexPath(&self) -> Option<Retained<NSIndexPath>>
       where Self: Sized + Message { ... }
    fn proposal(&self) -> Retained<UICollectionViewDropProposal>
       where Self: Sized + Message { ... }
    fn session(&self) -> Retained<ProtocolObject<dyn UIDropSession>>
       where Self: Sized + Message { ... }
    fn dropItem_toPlaceholder(
        &self,
        drag_item: &UIDragItem,
        placeholder: &UICollectionViewDropPlaceholder,
    ) -> Retained<ProtocolObject<dyn UICollectionViewDropPlaceholderContext>>
       where Self: Sized + Message { ... }
    fn dropItem_toItemAtIndexPath(
        &self,
        drag_item: &UIDragItem,
        index_path: &NSIndexPath,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
    fn dropItem_intoItemAtIndexPath_rect(
        &self,
        drag_item: &UIDragItem,
        index_path: &NSIndexPath,
        rect: CGRect,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
    fn dropItem_toTarget(
        &self,
        drag_item: &UIDragItem,
        target: &UIDragPreviewTarget,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionView only.
Expand description

Provided Methods§

Source

fn items( &self, ) -> Retained<NSArray<ProtocolObject<dyn UICollectionViewDropItem>>>
where Self: Sized + Message,

Source

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

Source

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

Available on crate feature UIDropInteraction only.
Source

fn session(&self) -> Retained<ProtocolObject<dyn UIDropSession>>
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

fn dropItem_toPlaceholder( &self, drag_item: &UIDragItem, placeholder: &UICollectionViewDropPlaceholder, ) -> Retained<ProtocolObject<dyn UICollectionViewDropPlaceholderContext>>
where Self: Sized + Message,

Available on crate features UIDragInteraction and UIDragItem only.
Source

fn dropItem_toItemAtIndexPath( &self, drag_item: &UIDragItem, index_path: &NSIndexPath, ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message,

Available on crate features UIDragInteraction and UIDragItem only.
Source

fn dropItem_intoItemAtIndexPath_rect( &self, drag_item: &UIDragItem, index_path: &NSIndexPath, rect: CGRect, ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIDragInteraction and UIDragItem only.
Source

fn dropItem_toTarget( &self, drag_item: &UIDragItem, target: &UIDragPreviewTarget, ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message,

Available on crate features UIDragInteraction and UIDragItem and UITargetedDragPreview and UITargetedPreview only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UICollectionViewDropCoordinator

Source§

impl ProtocolType for dyn UICollectionViewDropCoordinator

Source§

const NAME: &'static str = "UICollectionViewDropCoordinator"

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

Implementors§