pub unsafe trait NSTextCheckingClient: NSTextInputClient + NSTextInputTraits {
// Provided methods
unsafe fn annotatedSubstringForProposedRange_actualRange(
&self,
range: NSRange,
actual_range: NSRangePointer,
) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message { ... }
fn setAnnotations_range(
&self,
annotations: &NSDictionary<NSAttributedStringKey, NSString>,
range: NSRange,
)
where Self: Sized + Message { ... }
fn addAnnotations_range(
&self,
annotations: &NSDictionary<NSAttributedStringKey, NSString>,
range: NSRange,
)
where Self: Sized + Message { ... }
fn removeAnnotation_range(
&self,
annotation_name: &NSAttributedStringKey,
range: NSRange,
)
where Self: Sized + Message { ... }
fn replaceCharactersInRange_withAnnotatedString(
&self,
range: NSRange,
annotated_string: &NSAttributedString,
)
where Self: Sized + Message { ... }
fn selectAndShowRange(&self, range: NSRange)
where Self: Sized + Message { ... }
unsafe fn viewForRange_firstRect_actualRange(
&self,
range: NSRange,
first_rect: NSRectPointer,
actual_range: NSRangePointer,
mtm: MainThreadMarker,
) -> Option<Retained<NSView>>
where Self: Sized + Message { ... }
fn candidateListTouchBarItem(
&self,
mtm: MainThreadMarker,
) -> Option<Retained<NSCandidateListTouchBarItem>>
where Self: Sized + Message { ... }
}Available on crate features
NSTextCheckingClient and NSTextInputClient only.Expand description
Provided Methods§
Sourceunsafe fn annotatedSubstringForProposedRange_actualRange(
&self,
range: NSRange,
actual_range: NSRangePointer,
) -> Option<Retained<NSAttributedString>>
unsafe fn annotatedSubstringForProposedRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer, ) -> Option<Retained<NSAttributedString>>
§Safety
actual_range must be a valid pointer or null.
fn setAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange, )
fn addAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange, )
fn removeAnnotation_range( &self, annotation_name: &NSAttributedStringKey, range: NSRange, )
fn replaceCharactersInRange_withAnnotatedString( &self, range: NSRange, annotated_string: &NSAttributedString, )
fn selectAndShowRange(&self, range: NSRange)
Sourceunsafe fn viewForRange_firstRect_actualRange(
&self,
range: NSRange,
first_rect: NSRectPointer,
actual_range: NSRangePointer,
mtm: MainThreadMarker,
) -> Option<Retained<NSView>>
Available on crate features NSResponder and NSView only.
unsafe fn viewForRange_firstRect_actualRange( &self, range: NSRange, first_rect: NSRectPointer, actual_range: NSRangePointer, mtm: MainThreadMarker, ) -> Option<Retained<NSView>>
NSResponder and NSView only.§Safety
first_rectmust be a valid pointer or null.actual_rangemust be a valid pointer or null.
fn candidateListTouchBarItem( &self, mtm: MainThreadMarker, ) -> Option<Retained<NSCandidateListTouchBarItem>>
Available on crate features
NSCandidateListTouchBarItem and NSTouchBarItem only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSTextCheckingClient
Source§impl ProtocolType for dyn NSTextCheckingClient
impl ProtocolType for dyn NSTextCheckingClient
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".