pub unsafe trait NSInputServiceProvider {
Show 15 methods
// Provided methods
unsafe fn insertText_client(
&self,
string: Option<&AnyObject>,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn doCommandBySelector_client(
&self,
selector: Option<Sel>,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn markedTextAbandoned(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn markedTextSelectionChanged_client(
&self,
new_sel: NSRange,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn terminate(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
fn canBeDisabled(&self) -> bool
where Self: Sized + Message { ... }
fn wantsToInterpretAllKeystrokes(&self) -> bool
where Self: Sized + Message { ... }
fn wantsToHandleMouseEvents(&self) -> bool
where Self: Sized + Message { ... }
fn wantsToDelayTextChangeNotifications(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn inputClientBecomeActive(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn inputClientResignActive(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn inputClientEnabled(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn inputClientDisabled(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn activeConversationWillChange_fromOldConversation(
&self,
sender: Option<&AnyObject>,
old_conversation: NSInteger,
)
where Self: Sized + Message { ... }
unsafe fn activeConversationChanged_toNewConversation(
&self,
sender: Option<&AnyObject>,
new_conversation: NSInteger,
)
where Self: Sized + Message { ... }
}Available on crate feature
NSInputServer only.Expand description
Provided Methods§
Sourceunsafe fn insertText_client(
&self,
string: Option<&AnyObject>,
sender: Option<&AnyObject>,
)
👎Deprecated
unsafe fn insertText_client( &self, string: Option<&AnyObject>, sender: Option<&AnyObject>, )
§Safety
stringshould be of the correct type.stringmight not allowNone.sendershould be of the correct type.sendermight not allowNone.
Sourceunsafe fn doCommandBySelector_client(
&self,
selector: Option<Sel>,
sender: Option<&AnyObject>,
)
👎Deprecated
unsafe fn doCommandBySelector_client( &self, selector: Option<Sel>, sender: Option<&AnyObject>, )
§Safety
selectormust be a valid selector.sendershould be of the correct type.sendermight not allowNone.
Sourceunsafe fn markedTextAbandoned(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn markedTextAbandoned(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
Sourceunsafe fn markedTextSelectionChanged_client(
&self,
new_sel: NSRange,
sender: Option<&AnyObject>,
)
👎Deprecated
unsafe fn markedTextSelectionChanged_client( &self, new_sel: NSRange, sender: Option<&AnyObject>, )
§Safety
sendershould be of the correct type.sendermight not allowNone.
Sourceunsafe fn terminate(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn terminate(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
fn canBeDisabled(&self) -> bool
👎Deprecated
fn wantsToInterpretAllKeystrokes(&self) -> bool
👎Deprecated
fn wantsToHandleMouseEvents(&self) -> bool
👎Deprecated
fn wantsToDelayTextChangeNotifications(&self) -> bool
👎Deprecated
Sourceunsafe fn inputClientBecomeActive(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn inputClientBecomeActive(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
Sourceunsafe fn inputClientResignActive(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn inputClientResignActive(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
Sourceunsafe fn inputClientEnabled(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn inputClientEnabled(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
Sourceunsafe fn inputClientDisabled(&self, sender: Option<&AnyObject>)
👎Deprecated
unsafe fn inputClientDisabled(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSInputServiceProvider
Source§impl ProtocolType for dyn NSInputServiceProvider
impl ProtocolType for dyn NSInputServiceProvider
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".