Trait UITextDraggable

Source
pub unsafe trait UITextDraggable: UITextInput + MainThreadOnly {
    // Provided methods
    unsafe fn textDragDelegate(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
       where Self: Sized + Message { ... }
    unsafe fn setTextDragDelegate(
        &self,
        text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDragInteraction(&self) -> Option<Retained<UIDragInteraction>>
       where Self: Sized + Message { ... }
    unsafe fn isTextDragActive(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textDragOptions(&self) -> UITextDragOptions
       where Self: Sized + Message { ... }
    unsafe fn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
       where Self: Sized + Message { ... }
}
Available on crate features UITextDragging and UITextInput and UITextInputTraits only.
Expand description

Provided Methods§

Source

unsafe fn textDragDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
where Self: Sized + Message,

Source

unsafe fn setTextDragDelegate( &self, text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>, )
where Self: Sized + Message,

This is a weak property. Setter for textDragDelegate.

Source

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

Available on crate feature UIDragInteraction only.
Source

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

Source

unsafe fn textDragOptions(&self) -> UITextDragOptions
where Self: Sized + Message,

Source

unsafe fn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
where Self: Sized + Message,

Setter for textDragOptions.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextDraggable

Source§

const NAME: &'static str = "UITextDraggable"

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 UITextDraggable

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl UITextDraggable for UITextField

Available on crate features UIControl and UIResponder and UIView and UITextField only.
Source§

impl UITextDraggable for UITextView

Available on crate features UIResponder and UIScrollView and UIView and UITextView only.