Trait objc2_ui_kit::UITextDragRequest

source ·
pub unsafe trait UITextDragRequest: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn dragRange(&self) -> Retained<UITextRange>
       where Self: Sized + Message { ... }
    unsafe fn suggestedItems(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn existingItems(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn isSelected(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn dragSession(&self) -> Retained<ProtocolObject<dyn UIDragSession>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITextDragging only.

Provided Methods§

source

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

Available on crate feature UITextInput only.
source

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

Available on crate feature UIDragItem only.
source

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

Available on crate feature UIDragItem only.
source

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

source

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

Available on crate feature UIDragSession only.

Trait Implementations§

source§

impl ProtocolType for dyn UITextDragRequest

source§

const NAME: &'static str = "UITextDragRequest"

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 UITextDragRequest

Implementations on Foreign Types§

source§

impl<T> UITextDragRequest for ProtocolObject<T>

Implementors§