Trait IMKMouseHandling

Source
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 { ... }
}
Available on crate feature IMKInputController only.
Expand description

This protocol receives mouse events.

See also Apple’s documentation

Provided Methods§

Source

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,

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.

Source

unsafe fn mouseUpOnCharacterIndex_coordinate_withModifier_client( &self, index: NSUInteger, point: NSPoint, flags: NSUInteger, sender: Option<&AnyObject>, ) -> bool
where Self: Sized + Message,

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.

Source

unsafe fn mouseMovedOnCharacterIndex_coordinate_withModifier_client( &self, index: NSUInteger, point: NSPoint, flags: NSUInteger, sender: Option<&AnyObject>, ) -> bool
where Self: Sized + Message,

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.

Trait Implementations§

Source§

impl ProtocolType for dyn IMKMouseHandling

Source§

const NAME: &'static str = "IMKMouseHandling"

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 IMKMouseHandling

Implementations on Foreign Types§

Source§

impl<T> IMKMouseHandling for ProtocolObject<T>
where T: ?Sized + IMKMouseHandling,

Implementors§