Trait objc2_ui_kit::UIKeyInput

source ·
pub unsafe trait UIKeyInput: UITextInputTraits + IsMainThreadOnly {
    // Provided methods
    unsafe fn hasText(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn insertText(&self, text: &NSString)
       where Self: Sized + Message { ... }
    unsafe fn deleteBackward(&self)
       where Self: Sized + Message { ... }
}
Available on crate features UITextInput and UITextInputTraits only.

Provided Methods§

source

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

source

unsafe fn insertText(&self, text: &NSString)
where Self: Sized + Message,

source

unsafe fn deleteBackward(&self)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIKeyInput

source§

const NAME: &'static str = "UIKeyInput"

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 UIKeyInput
where T: ?Sized + Message + UIKeyInput,

Implementations on Foreign Types§

source§

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

Implementors§

source§

impl UIKeyInput for UISearchTextField

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

impl UIKeyInput for UITextField

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

impl UIKeyInput for UITextView

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