Trait objc2_ui_kit::UITextDocumentProxy

source ·
pub unsafe trait UITextDocumentProxy: UIKeyInput + IsMainThreadOnly {
    // Provided methods
    unsafe fn documentContextBeforeInput(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn documentContextAfterInput(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn selectedText(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn documentInputMode(&self) -> Option<Retained<UITextInputMode>>
       where Self: Sized + Message { ... }
    unsafe fn documentIdentifier(&self) -> Retained<NSUUID>
       where Self: Sized + Message { ... }
    unsafe fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
       where Self: Sized + Message { ... }
    unsafe fn setMarkedText_selectedRange(
        &self,
        marked_text: &NSString,
        selected_range: NSRange
    )
       where Self: Sized + Message { ... }
    unsafe fn unmarkText(&self)
       where Self: Sized + Message { ... }
}
Available on crate features UIInputViewController and UITextInput and UITextInputTraits only.

Provided Methods§

source

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

source

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

source

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

source

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

source

unsafe fn documentIdentifier(&self) -> Retained<NSUUID>
where Self: Sized + Message,

source

unsafe fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
where Self: Sized + Message,

source

unsafe fn setMarkedText_selectedRange( &self, marked_text: &NSString, selected_range: NSRange )
where Self: Sized + Message,

source

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

Trait Implementations§

source§

impl ProtocolType for dyn UITextDocumentProxy

source§

const NAME: &'static str = "UITextDocumentProxy"

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 UITextDocumentProxy

Implementations on Foreign Types§

source§

impl<T> UITextDocumentProxy for ProtocolObject<T>

Implementors§