UITextDraggable

Trait UITextDraggable 

Source
pub unsafe trait UITextDraggable: UITextInput + MainThreadOnly {
    // Provided methods
    fn textDragDelegate(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
       where Self: Sized + Message { ... }
    fn setTextDragDelegate(
        &self,
        text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>,
    )
       where Self: Sized + Message { ... }
    fn textDragInteraction(&self) -> Option<Retained<UIDragInteraction>>
       where Self: Sized + Message { ... }
    fn isTextDragActive(&self) -> bool
       where Self: Sized + Message { ... }
    fn textDragOptions(&self) -> UITextDragOptions
       where Self: Sized + Message { ... }
    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

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

Source

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

Setter for textDragDelegate.

This is a weak property.

Source

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

Available on crate feature UIDragInteraction only.
Source

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

Source

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

Source

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 feature UITextField only.
Source§

impl UITextDraggable for UITextView

Available on crate feature UITextView only.