Skip to main content

UITableViewDragDelegate

Trait UITableViewDragDelegate 

Source
pub unsafe trait UITableViewDragDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn tableView_itemsForBeginningDragSession_atIndexPath(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
        index_path: &NSIndexPath,
    ) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    fn tableView_itemsForAddingToDragSession_atIndexPath_point(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
        index_path: &NSIndexPath,
        point: CGPoint,
    ) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    fn tableView_dragPreviewParametersForRowAtIndexPath(
        &self,
        table_view: &UITableView,
        index_path: &NSIndexPath,
    ) -> Option<Retained<UIDragPreviewParameters>>
       where Self: Sized + Message { ... }
    fn tableView_dragSessionWillBegin(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    fn tableView_dragSessionDidEnd(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    fn tableView_dragSessionAllowsMoveOperation(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn tableView_dragSessionIsRestrictedToDraggingApplication(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDragSession>,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UITableView only.
Expand description

Provided Methods§

Source

fn tableView_itemsForBeginningDragSession_atIndexPath( &self, table_view: &UITableView, 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 tableView_itemsForAddingToDragSession_atIndexPath_point( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDragSession>, index_path: &NSIndexPath, point: CGPoint, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

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

fn tableView_dragPreviewParametersForRowAtIndexPath( &self, table_view: &UITableView, 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 tableView_dragSessionWillBegin( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

fn tableView_dragSessionDidEnd( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

fn tableView_dragSessionAllowsMoveOperation( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
where Self: Sized + Message,

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

fn tableView_dragSessionIsRestrictedToDraggingApplication( &self, table_view: &UITableView, 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<T> ImplementedBy<T> for dyn UITableViewDragDelegate

Source§

impl ProtocolType for dyn UITableViewDragDelegate

Source§

const NAME: &'static str = "UITableViewDragDelegate"

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

Implementors§