Skip to main content

NSSpellServerDelegate

Trait 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 { ... }
    fn spellServer_suggestGuessesForWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString,
    ) -> Option<Retained<NSArray<NSString>>>
       where Self: Sized + Message { ... }
    fn spellServer_didLearnWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString,
    )
       where Self: Sized + Message { ... }
    fn spellServer_didForgetWord_inLanguage(
        &self,
        sender: &NSSpellServer,
        word: &NSString,
        language: &NSString,
    )
       where Self: Sized + Message { ... }
    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 { ... }
    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.
Expand description

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.
§Safety

word_count must be a valid pointer.

Source

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

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

Available on crate feature NSString only.
Source

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

Available on crate feature NSString only.
Source

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.
§Safety

details generic generic should be of the correct type.

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.
§Safety
  • options generic should be of the correct type.
  • word_count must be a valid pointer.
Source

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<T> ImplementedBy<T> for dyn NSSpellServerDelegate

Source§

impl ProtocolType for dyn NSSpellServerDelegate

Source§

const NAME: &'static str = "NSSpellServerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSSpellServerDelegate for ProtocolObject<T>

Implementors§