NSDraggingSource

Trait NSDraggingSource 

Source
pub unsafe trait NSDraggingSource: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn draggingSession_sourceOperationMaskForDraggingContext(
        &self,
        session: &NSDraggingSession,
        context: NSDraggingContext,
    ) -> NSDragOperation
       where Self: Sized + Message { ... }
    fn draggingSession_willBeginAtPoint(
        &self,
        session: &NSDraggingSession,
        screen_point: NSPoint,
    )
       where Self: Sized + Message { ... }
    fn draggingSession_movedToPoint(
        &self,
        session: &NSDraggingSession,
        screen_point: NSPoint,
    )
       where Self: Sized + Message { ... }
    fn draggingSession_endedAtPoint_operation(
        &self,
        session: &NSDraggingSession,
        screen_point: NSPoint,
        operation: NSDragOperation,
    )
       where Self: Sized + Message { ... }
    fn ignoreModifierKeysForDraggingSession(
        &self,
        session: &NSDraggingSession,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSDragging only.
Expand description

Provided Methods§

Source

fn draggingSession_sourceOperationMaskForDraggingContext( &self, session: &NSDraggingSession, context: NSDraggingContext, ) -> NSDragOperation
where Self: Sized + Message,

Available on crate feature NSDraggingSession only.
Source

fn draggingSession_willBeginAtPoint( &self, session: &NSDraggingSession, screen_point: NSPoint, )
where Self: Sized + Message,

Available on crate feature NSDraggingSession only.
Source

fn draggingSession_movedToPoint( &self, session: &NSDraggingSession, screen_point: NSPoint, )
where Self: Sized + Message,

Available on crate feature NSDraggingSession only.
Source

fn draggingSession_endedAtPoint_operation( &self, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation, )
where Self: Sized + Message,

Available on crate feature NSDraggingSession only.
Source

fn ignoreModifierKeysForDraggingSession( &self, session: &NSDraggingSession, ) -> bool
where Self: Sized + Message,

Available on crate feature NSDraggingSession only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSDraggingSource

Source§

const NAME: &'static str = "NSDraggingSource"

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 NSDraggingSource

Implementations on Foreign Types§

Source§

impl<T> NSDraggingSource for ProtocolObject<T>
where T: ?Sized + NSDraggingSource,

Implementors§

Source§

impl NSDraggingSource for NSCollectionView

Available on crate feature NSCollectionView only.
Source§

impl NSDraggingSource for NSOutlineView

Available on crate feature NSOutlineView only.
Source§

impl NSDraggingSource for NSTableView

Available on crate feature NSTableView only.
Source§

impl NSDraggingSource for NSTextView

Available on crate feature NSTextView only.