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§

source

unsafe fn annotatedSubstringForProposedRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

source

unsafe fn setAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange )
where Self: Sized + Message,

source

unsafe fn addAnnotations_range( &self, annotations: &NSDictionary<NSAttributedStringKey, NSString>, range: NSRange )
where Self: Sized + Message,

source

unsafe fn removeAnnotation_range( &self, annotation_name: &NSAttributedStringKey, range: NSRange )
where Self: Sized + Message,

source

unsafe fn replaceCharactersInRange_withAnnotatedString( &self, range: NSRange, annotated_string: &NSAttributedString )
where Self: Sized + Message,

source

unsafe fn selectAndShowRange(&self, range: NSRange)
where Self: Sized + Message,

source

unsafe fn viewForRange_firstRect_actualRange( &self, range: NSRange, first_rect: NSRectPointer, actual_range: NSRangePointer, mtm: MainThreadMarker ) -> Option<Retained<NSView>>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn candidateListTouchBarItem( &self, mtm: MainThreadMarker ) -> Option<Retained<NSCandidateListTouchBarItem>>
where Self: Sized + Message,

Available on crate features NSCandidateListTouchBarItem and NSTouchBarItem only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextCheckingClient

source§

const NAME: &'static str = "NSTextCheckingClient"

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 NSTextCheckingClient

Implementations on Foreign Types§

source§

impl<T> NSTextCheckingClient for ProtocolObject<T>

Implementors§