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§
unsafe fn spellServer_findMisspelledWordInString_language_wordCount_countOnly( &self, sender: &NSSpellServer, string_to_check: &NSString, language: &NSString, word_count: NonNull<NSInteger>, count_only: bool ) -> NSRange
Available on crate features
NSRange
and NSString
only.unsafe fn spellServer_suggestGuessesForWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
NSArray
and NSString
only.unsafe fn spellServer_didLearnWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString )
Available on crate feature
NSString
only.unsafe fn spellServer_didForgetWord_inLanguage( &self, sender: &NSSpellServer, word: &NSString, language: &NSString )
Available on crate feature
NSString
only.unsafe fn spellServer_suggestCompletionsForPartialWordRange_inString_language( &self, sender: &NSSpellServer, range: NSRange, string: &NSString, language: &NSString ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
NSArray
and NSRange
and NSString
only.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
Available on crate features
NSArray
and NSDictionary
and NSRange
and NSString
only.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>>>
Available on crate features
NSArray
and NSDictionary
and NSOrthography
and NSString
and NSTextCheckingResult
only.unsafe fn spellServer_recordResponse_toCorrection_forWord_language( &self, sender: &NSSpellServer, response: NSUInteger, correction: &NSString, word: &NSString, language: &NSString )
Available on crate feature
NSString
only.