Trait UITableViewDropCoordinator

Source
pub unsafe trait UITableViewDropCoordinator: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn items(
        &self,
    ) -> Retained<NSArray<ProtocolObject<dyn UITableViewDropItem>>>
       where Self: Sized + Message { ... }
    unsafe fn destinationIndexPath(&self) -> Option<Retained<NSIndexPath>>
       where Self: Sized + Message { ... }
    unsafe fn proposal(&self) -> Retained<UITableViewDropProposal>
       where Self: Sized + Message { ... }
    unsafe fn session(&self) -> Retained<ProtocolObject<dyn UIDropSession>>
       where Self: Sized + Message { ... }
    unsafe fn dropItem_toPlaceholder(
        &self,
        drag_item: &UIDragItem,
        placeholder: &UITableViewDropPlaceholder,
    ) -> Retained<ProtocolObject<dyn UITableViewDropPlaceholderContext>>
       where Self: Sized + Message { ... }
    unsafe fn dropItem_toRowAtIndexPath(
        &self,
        drag_item: &UIDragItem,
        index_path: &NSIndexPath,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
    unsafe fn dropItem_intoRowAtIndexPath_rect(
        &self,
        drag_item: &UIDragItem,
        index_path: &NSIndexPath,
        rect: CGRect,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
    unsafe fn dropItem_toTarget(
        &self,
        drag_item: &UIDragItem,
        target: &UIDragPreviewTarget,
    ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITableView only.
Expand description

Provided Methods§

Source

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

Source

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

Source

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

Available on crate feature UIDropInteraction only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate features UIDragInteraction and UIDragItem only.
Source

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

Available on crate features UIDragInteraction and UIDragItem only.
Source

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

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

unsafe 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 ProtocolType for dyn UITableViewDropCoordinator

Source§

const NAME: &'static str = "UITableViewDropCoordinator"

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 UITableViewDropCoordinator

Implementations on Foreign Types§

Source§

impl<T> UITableViewDropCoordinator for ProtocolObject<T>

Implementors§