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§
unsafe fn selectedTextRange(&self) -> Option<Retained<UITextRange>>
Available on crate feature
UITextInput
only.unsafe fn compareFoundRange_toRange_inDocument( &self, found_range: &UITextRange, to_range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> ) -> NSComparisonResult
Available on crate feature
UITextInput
only.unsafe fn performTextSearchWithQueryString_usingOptions_resultAggregator( &self, string: &NSString, options: &UITextSearchOptions, aggregator: &ProtocolObject<dyn UITextSearchAggregator> )
Available on crate feature
UIFindSession
only.unsafe fn decorateFoundTextRange_inDocument_usingStyle( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, style: UITextSearchFoundTextStyle )
Available on crate feature
UITextInput
only.unsafe fn clearAllDecoratedFoundText(&self)
unsafe fn supportsTextReplacement(&self) -> bool
unsafe fn shouldReplaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString ) -> bool
Available on crate feature
UITextInput
only.unsafe fn replaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString )
Available on crate feature
UITextInput
only.unsafe fn replaceAllOccurrencesOfQueryString_usingOptions_withText( &self, query_string: &NSString, options: &UITextSearchOptions, replacement_text: &NSString )
Available on crate feature
UIFindSession
only.unsafe fn willHighlightFoundTextRange_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> )
Available on crate feature
UITextInput
only.unsafe fn scrollRangeToVisible_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier> )
Available on crate feature
UITextInput
only.unsafe fn selectedTextSearchDocument( &self ) -> Option<Retained<UITextSearchDocumentIdentifier>>
unsafe fn compareOrderFromDocument_toDocument( &self, from_document: &UITextSearchDocumentIdentifier, to_document: &UITextSearchDocumentIdentifier ) -> NSComparisonResult
Trait Implementations§
source§impl ProtocolType for dyn UITextSearching
impl ProtocolType for dyn UITextSearching
impl<T> ImplementedBy<T> for dyn UITextSearching
Implementations on Foreign Types§
impl<T> UITextSearching for ProtocolObject<T>where
T: ?Sized + UITextSearching,
Implementors§
impl UITextSearching for UITextView
Available on crate features
UIResponder
and UIScrollView
and UIView
and UITextView
only.