Trait objc2_ui_kit::UITextSearching

source ·
pub unsafe trait UITextSearching: NSObjectProtocol + IsMainThreadOnly {
Show 13 methods // Provided methods unsafe fn selectedTextRange(&self) -> Option<Retained<UITextRange>> where Self: Sized + Message { ... } unsafe fn compareFoundRange_toRange_inDocument( &self, found_range: &UITextRange, to_range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> ) -> NSComparisonResult where Self: Sized + Message { ... } unsafe fn performTextSearchWithQueryString_usingOptions_resultAggregator( &self, string: &NSString, options: &UITextSearchOptions, aggregator: &ProtocolObject<dyn UITextSearchAggregator> ) where Self: Sized + Message { ... } unsafe fn decorateFoundTextRange_inDocument_usingStyle( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, style: UITextSearchFoundTextStyle ) where Self: Sized + Message { ... } unsafe fn clearAllDecoratedFoundText(&self) where Self: Sized + Message { ... } unsafe fn supportsTextReplacement(&self) -> bool where Self: Sized + Message { ... } unsafe fn shouldReplaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString ) -> bool where Self: Sized + Message { ... } unsafe fn replaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString ) where Self: Sized + Message { ... } unsafe fn replaceAllOccurrencesOfQueryString_usingOptions_withText( &self, query_string: &NSString, options: &UITextSearchOptions, replacement_text: &NSString ) where Self: Sized + Message { ... } unsafe fn willHighlightFoundTextRange_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> ) where Self: Sized + Message { ... } unsafe fn scrollRangeToVisible_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> ) where Self: Sized + Message { ... } unsafe fn selectedTextSearchDocument( &self ) -> Option<Retained<UITextSearchDocumentIdentifier>> where Self: Sized + Message { ... } unsafe fn compareOrderFromDocument_toDocument( &self, from_document: &UITextSearchDocumentIdentifier, to_document: &UITextSearchDocumentIdentifier ) -> NSComparisonResult where Self: Sized + Message { ... }
}
Available on crate feature UITextSearching only.

Provided Methods§

source

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

Available on crate feature UITextInput only.
source

unsafe fn compareFoundRange_toRange_inDocument( &self, found_range: &UITextRange, to_range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> ) -> NSComparisonResult
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

unsafe fn performTextSearchWithQueryString_usingOptions_resultAggregator( &self, string: &NSString, options: &UITextSearchOptions, aggregator: &ProtocolObject<dyn UITextSearchAggregator> )
where Self: Sized + Message,

Available on crate feature UIFindSession only.
source

unsafe fn decorateFoundTextRange_inDocument_usingStyle( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, style: UITextSearchFoundTextStyle )
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

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

source

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

source

unsafe fn shouldReplaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString ) -> bool
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

unsafe fn replaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString )
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

unsafe fn replaceAllOccurrencesOfQueryString_usingOptions_withText( &self, query_string: &NSString, options: &UITextSearchOptions, replacement_text: &NSString )
where Self: Sized + Message,

Available on crate feature UIFindSession only.
source

unsafe fn willHighlightFoundTextRange_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> )
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

unsafe fn scrollRangeToVisible_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> )
where Self: Sized + Message,

Available on crate feature UITextInput only.
source

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

source

unsafe fn compareOrderFromDocument_toDocument( &self, from_document: &UITextSearchDocumentIdentifier, to_document: &UITextSearchDocumentIdentifier ) -> NSComparisonResult
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UITextSearching

source§

const NAME: &'static str = "UITextSearching"

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 UITextSearching

Implementations on Foreign Types§

source§

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

Implementors§

source§

impl UITextSearching for UITextView

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