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§
fn textDragDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
Sourcefn setTextDragDelegate(
&self,
text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>,
)
fn setTextDragDelegate( &self, text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>, )
Setter for textDragDelegate.
This is a weak property.
fn textDragInteraction(&self) -> Option<Retained<UIDragInteraction>>
Available on crate feature
UIDragInteraction only.fn isTextDragActive(&self) -> bool
fn textDragOptions(&self) -> UITextDragOptions
Sourcefn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
fn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
Setter for textDragOptions.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UITextDraggable
Source§impl ProtocolType for dyn UITextDraggable
impl ProtocolType for dyn UITextDraggable
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> UITextDraggable for ProtocolObject<T>where
T: ?Sized + UITextDraggable,
Implementors§
impl UITextDraggable for UITextField
Available on crate feature
UITextField only.impl UITextDraggable for UITextView
Available on crate feature
UITextView only.