pub unsafe trait IMKMouseHandling {
// Provided methods
unsafe fn mouseDownOnCharacterIndex_coordinate_withModifier_continueTracking_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
keep_tracking: *mut Bool,
sender: Option<&AnyObject>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn mouseUpOnCharacterIndex_coordinate_withModifier_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
sender: Option<&AnyObject>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn mouseMovedOnCharacterIndex_coordinate_withModifier_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
sender: Option<&AnyObject>,
) -> bool
where Self: Sized + Message { ... }
}
IMKInputController
only.Expand description
This protocol receives mouse events.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn mouseDownOnCharacterIndex_coordinate_withModifier_continueTracking_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
keep_tracking: *mut Bool,
sender: Option<&AnyObject>,
) -> bool
unsafe fn mouseDownOnCharacterIndex_coordinate_withModifier_continueTracking_client( &self, index: NSUInteger, point: NSPoint, flags: NSUInteger, keep_tracking: *mut Bool, sender: Option<&AnyObject>, ) -> bool
Sends a mouseDown to an input method.
A mouse down event happened at given index within the sender�s text storage, at the given point, and with modifier keys identified in flags. Return YES if handled. Set keepTracking to YES if you want to receive subsequent mouseMoved and mouseUp events.
Sourceunsafe fn mouseUpOnCharacterIndex_coordinate_withModifier_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
sender: Option<&AnyObject>,
) -> bool
unsafe fn mouseUpOnCharacterIndex_coordinate_withModifier_client( &self, index: NSUInteger, point: NSPoint, flags: NSUInteger, sender: Option<&AnyObject>, ) -> bool
Sends a mouseUp to an input method.
A mouse up event happened at given index within the sender text view�s text storage, at the given point, with modifier keys identified in flags. Return YES if handled.
Sourceunsafe fn mouseMovedOnCharacterIndex_coordinate_withModifier_client(
&self,
index: NSUInteger,
point: NSPoint,
flags: NSUInteger,
sender: Option<&AnyObject>,
) -> bool
unsafe fn mouseMovedOnCharacterIndex_coordinate_withModifier_client( &self, index: NSUInteger, point: NSPoint, flags: NSUInteger, sender: Option<&AnyObject>, ) -> bool
Passes a mouseMoved event to the input method.
A mouse moved event happened at given index within the sender text view�s text storage, at the given point, with modifier keys identified in flags. Return YES if handled.