Trait objc2_app_kit::NSTextCheckingClient
source · 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 { ... }
unsafe fn setAnnotations_range(
&self,
annotations: &NSDictionary<NSAttributedStringKey, NSString>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn addAnnotations_range(
&self,
annotations: &NSDictionary<NSAttributedStringKey, NSString>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn removeAnnotation_range(
&self,
annotation_name: &NSAttributedStringKey,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn replaceCharactersInRange_withAnnotatedString(
&self,
range: NSRange,
annotated_string: &NSAttributedString
)
where Self: Sized + Message { ... }
unsafe 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 { ... }
unsafe fn candidateListTouchBarItem(
&self,
mtm: MainThreadMarker
) -> Option<Retained<NSCandidateListTouchBarItem>>
where Self: Sized + Message { ... }
}
Available on crate features
NSTextCheckingClient
and NSTextInputClient
only.Provided Methods§
unsafe fn annotatedSubstringForProposedRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer ) -> Option<Retained<NSAttributedString>>
unsafe fn setAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange )
unsafe fn addAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange )
unsafe fn removeAnnotation_range( &self, annotation_name: &NSAttributedStringKey, range: NSRange )
unsafe fn replaceCharactersInRange_withAnnotatedString( &self, range: NSRange, annotated_string: &NSAttributedString )
unsafe fn selectAndShowRange(&self, range: NSRange)
unsafe 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 candidateListTouchBarItem( &self, mtm: MainThreadMarker ) -> Option<Retained<NSCandidateListTouchBarItem>>
Available on crate features
NSCandidateListTouchBarItem
and NSTouchBarItem
only.