Trait objc2_ui_kit::UIDragDropSession

source ·
pub unsafe trait UIDragDropSession: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn items(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn locationInView(&self, view: &UIView) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn allowsMoveOperation(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn isRestrictedToDraggingApplication(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn hasItemsConformingToTypeIdentifiers(
        &self,
        type_identifiers: &NSArray<NSString>
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn canLoadObjectsOfClass(&self, a_class: &AnyClass) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UIDragSession only.

Provided Methods§

source

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

Available on crate feature UIDragItem only.
source

unsafe fn locationInView(&self, view: &UIView) -> CGPoint
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn allowsMoveOperation(&self) -> bool
where Self: Sized + Message,

source

unsafe fn isRestrictedToDraggingApplication(&self) -> bool
where Self: Sized + Message,

source

unsafe fn hasItemsConformingToTypeIdentifiers( &self, type_identifiers: &NSArray<NSString> ) -> bool
where Self: Sized + Message,

source

unsafe fn canLoadObjectsOfClass(&self, a_class: &AnyClass) -> bool
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIDragDropSession

source§

const NAME: &'static str = "UIDragDropSession"

The name of the Objective-C protocol that this type represents.
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 UIDragDropSession

Implementations on Foreign Types§

source§

impl<T> UIDragDropSession for ProtocolObject<T>

Implementors§