Trait objc2_ui_kit::UITextDraggable

source ·
pub unsafe trait UITextDraggable: UITextInput + IsMainThreadOnly {
    // 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.

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,

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,

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.
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.