NSInputServiceProvider

Trait NSInputServiceProvider 

Source
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§

Source

unsafe fn insertText_client( &self, string: Option<&AnyObject>, sender: Option<&AnyObject>, )
where Self: Sized + Message,

👎Deprecated
§Safety
  • string should be of the correct type.
  • string might not allow None.
  • sender should be of the correct type.
  • sender might not allow None.
Source

unsafe fn doCommandBySelector_client( &self, selector: Option<Sel>, sender: Option<&AnyObject>, )
where Self: Sized + Message,

👎Deprecated
§Safety
  • selector must be a valid selector.
  • sender should be of the correct type.
  • sender might not allow None.
Source

unsafe fn markedTextAbandoned(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

unsafe fn markedTextSelectionChanged_client( &self, new_sel: NSRange, sender: Option<&AnyObject>, )
where Self: Sized + Message,

👎Deprecated
§Safety
  • sender should be of the correct type.
  • sender might not allow None.
Source

unsafe fn terminate(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

fn canBeDisabled(&self) -> bool
where Self: Sized + Message,

👎Deprecated
Source

fn wantsToInterpretAllKeystrokes(&self) -> bool
where Self: Sized + Message,

👎Deprecated
Source

fn wantsToHandleMouseEvents(&self) -> bool
where Self: Sized + Message,

👎Deprecated
Source

fn wantsToDelayTextChangeNotifications(&self) -> bool
where Self: Sized + Message,

👎Deprecated
Source

unsafe fn inputClientBecomeActive(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

unsafe fn inputClientResignActive(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

unsafe fn inputClientEnabled(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

unsafe fn inputClientDisabled(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender should be of the correct type.

Source

unsafe fn activeConversationWillChange_fromOldConversation( &self, sender: Option<&AnyObject>, old_conversation: NSInteger, )
where Self: Sized + Message,

👎Deprecated
§Safety
  • sender should be of the correct type.
  • sender might not allow None.
Source

unsafe fn activeConversationChanged_toNewConversation( &self, sender: Option<&AnyObject>, new_conversation: NSInteger, )
where Self: Sized + Message,

👎Deprecated
§Safety
  • sender should be of the correct type.
  • sender might not allow None.

Trait Implementations§

Source§

impl ProtocolType for dyn NSInputServiceProvider

Source§

const NAME: &'static str = "NSInputServiceProvider"

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
Source§

impl<T> ImplementedBy<T> for dyn NSInputServiceProvider

Implementations on Foreign Types§

Source§

impl<T> NSInputServiceProvider for ProtocolObject<T>

Implementors§