Trait objc2_foundation::NSSpellServerDelegate

source ·
pub unsafe trait NSSpellServerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly(
        &self,
        sender: &NSSpellServer,
        string_to_check: &NSString,
        language: &NSString,
        word_count: NonNull<NSInteger>,
        count_only: bool
    ) -> NSRange
       where Self: Sized + Message { ... }
    unsafe fn spellServer_suggestGuessesForWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString
    ) -> Option<Retained<NSArray<NSString>>>
       where Self: Sized + Message { ... }
    unsafe fn spellServer_didLearnWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString
    )
       where Self: Sized + Message { ... }
    unsafe fn spellServer_didForgetWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString
    )
       where Self: Sized + Message { ... }
    unsafe fn spellServer_suggestCompletionsForPartialWordRange_inString_language(
        &self,
        sender: &NSSpellServer,
        range: NSRange,
        string: &NSString,
        language: &NSString
    ) -> Option<Retained<NSArray<NSString>>>
       where Self: Sized + Message { ... }
    unsafe fn spellServer_checkGrammarInString_language_details(
        &self,
        sender: &NSSpellServer,
        string_to_check: &NSString,
        language: Option<&NSString>,
        details: Option<&mut Option<Retained<NSArray<NSDictionary<NSString, AnyObject>>>>>
    ) -> NSRange
       where Self: Sized + Message { ... }
    unsafe fn spellServer_checkString_offset_types_options_orthography_wordCount(
        &self,
        sender: &NSSpellServer,
        string_to_check: &NSString,
        offset: NSUInteger,
        checking_types: NSTextCheckingTypes,
        options: Option<&NSDictionary<NSString, AnyObject>>,
        orthography: Option<&NSOrthography>,
        word_count: NonNull<NSInteger>
    ) -> Option<Retained<NSArray<NSTextCheckingResult>>>
       where Self: Sized + Message { ... }
    unsafe fn spellServer_recordResponse_toCorrection_forWord_language(
        &self,
        sender: &NSSpellServer,
        response: NSUInteger,
        correction: &NSString,
        word: &NSString,
        language: &NSString
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSSpellServer only.

Provided Methods§

source

unsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly( &self, sender: &NSSpellServer, string_to_check: &NSString, language: &NSString, word_count: NonNull<NSInteger>, count_only: bool ) -> NSRange
where Self: Sized + Message,

Available on crate features NSRange and NSString only.
source

unsafe fn spellServer_suggestGuessesForWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString ) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message,

Available on crate features NSArray and NSString only.
source

unsafe fn spellServer_didLearnWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn spellServer_didForgetWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn spellServer_suggestCompletionsForPartialWordRange_inString_language( &self, sender: &NSSpellServer, range: NSRange, string: &NSString, language: &NSString ) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message,

Available on crate features NSArray and NSRange and NSString only.
source

unsafe fn spellServer_checkGrammarInString_language_details( &self, sender: &NSSpellServer, string_to_check: &NSString, language: Option<&NSString>, details: Option<&mut Option<Retained<NSArray<NSDictionary<NSString, AnyObject>>>>> ) -> NSRange
where Self: Sized + Message,

Available on crate features NSArray and NSDictionary and NSRange and NSString only.
source

unsafe fn spellServer_checkString_offset_types_options_orthography_wordCount( &self, sender: &NSSpellServer, string_to_check: &NSString, offset: NSUInteger, checking_types: NSTextCheckingTypes, options: Option<&NSDictionary<NSString, AnyObject>>, orthography: Option<&NSOrthography>, word_count: NonNull<NSInteger> ) -> Option<Retained<NSArray<NSTextCheckingResult>>>
where Self: Sized + Message,

Available on crate features NSArray and NSDictionary and NSOrthography and NSString and NSTextCheckingResult only.
source

unsafe fn spellServer_recordResponse_toCorrection_forWord_language( &self, sender: &NSSpellServer, response: NSUInteger, correction: &NSString, word: &NSString, language: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.

Trait Implementations§

source§

impl ProtocolType for dyn NSSpellServerDelegate

source§

const NAME: &'static str = "NSSpellServerDelegate"

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 NSSpellServerDelegate

Implementations on Foreign Types§

source§

impl<T> NSSpellServerDelegate for ProtocolObject<T>

Implementors§