Struct NSEvent

Source
#[repr(C)]
pub struct NSEvent { /* private fields */ }
πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit and AppKit_NSEvent only.

ImplementationsΒ§

SourceΒ§

impl NSEvent

Source

pub unsafe fn type(&self) -> NSEventType

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn modifierFlags(&self) -> NSEventModifierFlags

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn timestamp(&self) -> NSTimeInterval

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn window(&self, mtm: MainThreadMarker) -> Option<Id<NSWindow>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature AppKit_NSWindow only.
Source

pub unsafe fn windowNumber(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn context(&self) -> Option<Id<NSGraphicsContext>>

πŸ‘ŽDeprecated: This method always returns nil. If you need access to the current drawing context, use [NSGraphicsContext currentContext] inside of a draw operation.
Available on crate feature AppKit_NSGraphicsContext only.
Source

pub unsafe fn clickCount(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn buttonNumber(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn eventNumber(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pressure(&self) -> c_float

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn locationInWindow(&self) -> NSPoint

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn deltaX(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn deltaY(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn deltaZ(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn hasPreciseScrollingDeltas(&self) -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn scrollingDeltaX(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn scrollingDeltaY(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn momentumPhase(&self) -> NSEventPhase

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn isDirectionInvertedFromDevice(&self) -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn characters(&self) -> Option<Id<NSString>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature Foundation_NSString only.
Source

pub unsafe fn charactersIgnoringModifiers(&self) -> Option<Id<NSString>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature Foundation_NSString only.
Source

pub unsafe fn charactersByApplyingModifiers( &self, modifiers: NSEventModifierFlags, ) -> Option<Id<NSString>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature Foundation_NSString only.
Source

pub unsafe fn isARepeat(&self) -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn keyCode(&self) -> c_ushort

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn trackingNumber(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn userData(&self) -> *mut c_void

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn trackingArea(&self) -> Option<Id<NSTrackingArea>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature AppKit_NSTrackingArea only.
Source

pub unsafe fn subtype(&self) -> NSEventSubtype

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn data1(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn data2(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn eventRef(&self) -> *mut c_void

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn eventWithEventRef( event_ref: NonNull<c_void>, ) -> Option<Id<NSEvent>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn isMouseCoalescingEnabled() -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn setMouseCoalescingEnabled(mouse_coalescing_enabled: bool)

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn magnification(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn deviceID(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn rotation(&self) -> c_float

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn absoluteX(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn absoluteY(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn absoluteZ(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn buttonMask(&self) -> NSEventButtonMask

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn tilt(&self) -> NSPoint

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn tangentialPressure(&self) -> c_float

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn vendorDefined(&self) -> Id<AnyObject>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn vendorID(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn tabletID(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pointingDeviceID(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn systemTabletID(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn vendorPointingDeviceType(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pointingDeviceSerialNumber(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn uniqueID(&self) -> c_ulonglong

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn capabilityMask(&self) -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pointingDeviceType(&self) -> NSPointingDeviceType

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn isEnteringProximity(&self) -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn touchesMatchingPhase_inView( &self, phase: NSTouchPhase, view: Option<&NSView>, ) -> Id<NSSet<NSTouch>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit_NSTouch and AppKit_NSView and Foundation_NSSet only.
Source

pub unsafe fn allTouches(&self) -> Id<NSSet<NSTouch>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit_NSTouch and Foundation_NSSet only.
Source

pub unsafe fn touchesForView(&self, view: &NSView) -> Id<NSSet<NSTouch>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit_NSTouch and AppKit_NSView and Foundation_NSSet only.
Source

pub unsafe fn coalescedTouchesForTouch( &self, touch: &NSTouch, ) -> Id<NSArray<NSTouch>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit_NSTouch and Foundation_NSArray only.
Source

pub unsafe fn phase(&self) -> NSEventPhase

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn stage(&self) -> NSInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn stageTransition(&self) -> CGFloat

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn associatedEventsMask(&self) -> NSEventMask

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pressureBehavior(&self) -> NSPressureBehavior

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn isSwipeTrackingFromScrollEventsEnabled() -> bool

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn trackSwipeEventWithOptions_dampenAmountThresholdMin_max_usingHandler( &self, options: NSEventSwipeTrackingOptions, min_dampen_threshold: CGFloat, max_dampen_threshold: CGFloat, tracking_handler: &Block<(CGFloat, NSEventPhase, Bool, NonNull<Bool>), ()>, )

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn startPeriodicEventsAfterDelay_withPeriod( delay: NSTimeInterval, period: NSTimeInterval, )

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn stopPeriodicEvents()

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure( type: NSEventType, location: NSPoint, flags: NSEventModifierFlags, time: NSTimeInterval, w_num: NSInteger, unused_pass_nil: Option<&NSGraphicsContext>, e_num: NSInteger, c_num: NSInteger, pressure: c_float, ) -> Option<Id<NSEvent>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature AppKit_NSGraphicsContext only.
Source

pub unsafe fn keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode( type: NSEventType, location: NSPoint, flags: NSEventModifierFlags, time: NSTimeInterval, w_num: NSInteger, unused_pass_nil: Option<&NSGraphicsContext>, keys: &NSString, ukeys: &NSString, flag: bool, code: c_ushort, ) -> Option<Id<NSEvent>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate features AppKit_NSGraphicsContext and Foundation_NSString only.
Source

pub unsafe fn enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData( type: NSEventType, location: NSPoint, flags: NSEventModifierFlags, time: NSTimeInterval, w_num: NSInteger, unused_pass_nil: Option<&NSGraphicsContext>, e_num: NSInteger, t_num: NSInteger, data: *mut c_void, ) -> Option<Id<NSEvent>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature AppKit_NSGraphicsContext only.
Source

pub unsafe fn otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2( type: NSEventType, location: NSPoint, flags: NSEventModifierFlags, time: NSTimeInterval, w_num: NSInteger, unused_pass_nil: Option<&NSGraphicsContext>, subtype: c_short, d1: NSInteger, d2: NSInteger, ) -> Option<Id<NSEvent>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Available on crate feature AppKit_NSGraphicsContext only.
Source

pub unsafe fn mouseLocation() -> NSPoint

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn modifierFlags_class() -> NSEventModifierFlags

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn pressedMouseButtons() -> NSUInteger

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn doubleClickInterval() -> NSTimeInterval

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn keyRepeatDelay() -> NSTimeInterval

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn keyRepeatInterval() -> NSTimeInterval

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn addGlobalMonitorForEventsMatchingMask_handler( mask: NSEventMask, block: &Block<(NonNull<NSEvent>,), ()>, ) -> Option<Id<AnyObject>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn addLocalMonitorForEventsMatchingMask_handler( mask: NSEventMask, block: &Block<(NonNull<NSEvent>,), *mut NSEvent>, ) -> Option<Id<AnyObject>>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn removeMonitor(event_monitor: &AnyObject)

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
SourceΒ§

impl NSEvent

Methods declared on superclass NSObject

Source

pub unsafe fn init(this: Allocated<Self>) -> Id<Self>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit
Source

pub unsafe fn new() -> Id<Self>

πŸ‘ŽDeprecated: icrate::AppKit has been moved to objc2-app-kit

Methods from Deref<Target = NSObject>Β§

Source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Available on crate feature AuthenticationServices only.

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>Β§

Source

pub fn class(&self) -> &'static AnyClass

Dynamically find the class of this object.

Β§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
Source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

πŸ‘ŽDeprecated: this is difficult to use correctly, use Ivar::load instead.

Use Ivar::load instead.

Β§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

πŸ‘ŽDeprecated: this is difficult to use correctly, use Ivar::load_mut instead.

Use Ivar::load_mut instead.

Β§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Trait ImplementationsΒ§

SourceΒ§

impl AsMut<AnyObject> for NSEvent

SourceΒ§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
SourceΒ§

impl AsMut<NSEvent> for NSEvent

SourceΒ§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
SourceΒ§

impl AsMut<NSObject> for NSEvent

SourceΒ§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
SourceΒ§

impl AsRef<AnyObject> for NSEvent

SourceΒ§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
SourceΒ§

impl AsRef<NSEvent> for NSEvent

SourceΒ§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
SourceΒ§

impl AsRef<NSObject> for NSEvent

SourceΒ§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
SourceΒ§

impl Borrow<AnyObject> for NSEvent

SourceΒ§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
SourceΒ§

impl Borrow<NSObject> for NSEvent

SourceΒ§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
SourceΒ§

impl BorrowMut<AnyObject> for NSEvent

SourceΒ§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
SourceΒ§

impl BorrowMut<NSObject> for NSEvent

SourceΒ§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
SourceΒ§

impl ClassType for NSEvent

SourceΒ§

const NAME: &'static str = "NSEvent"

The name of the Objective-C class that this type represents. Read more
SourceΒ§

type Super = NSObject

The superclass of this class. Read more
SourceΒ§

type Mutability = Immutable

Whether the type is mutable or immutable. Read more
SourceΒ§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
SourceΒ§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
SourceΒ§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
SourceΒ§

fn retain(&self) -> Id<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
SourceΒ§

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
SourceΒ§

impl Debug for NSEvent

SourceΒ§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
SourceΒ§

impl Deref for NSEvent

SourceΒ§

type Target = NSObject

The resulting type after dereferencing.
SourceΒ§

fn deref(&self) -> &Self::Target

Dereferences the value.
SourceΒ§

impl DerefMut for NSEvent

SourceΒ§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
SourceΒ§

impl Hash for NSEvent

SourceΒ§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 Β· SourceΒ§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
SourceΒ§

impl NSCoding for NSEvent

SourceΒ§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

πŸ‘ŽDeprecated: icrate::Foundation has been moved to objc2-foundation
Available on crate features Foundation and Foundation_NSCoder only.
SourceΒ§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder, ) -> Option<Id<Self>>
where Self: Sized + Message,

πŸ‘ŽDeprecated: icrate::Foundation has been moved to objc2-foundation
Available on crate features Foundation and Foundation_NSCoder only.
SourceΒ§

impl NSCopying for NSEvent

SourceΒ§

fn copy(&self) -> Id<Self::Immutable>

πŸ‘ŽDeprecated: icrate::Foundation has been moved to objc2-foundation
Available on crate feature Foundation only.
Returns a new instance that’s a copy of the receiver. Read more
SourceΒ§

unsafe fn copyWithZone(&self, zone: *mut NSZone) -> Id<Self::Immutable>

πŸ‘ŽDeprecated: icrate::Foundation has been moved to objc2-foundation
Available on crate feature Foundation only.
Returns a new instance that’s a copy of the receiver. Read more
SourceΒ§

impl NSObjectProtocol for NSEvent

SourceΒ§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
SourceΒ§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
SourceΒ§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
SourceΒ§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

Check if the object is an instance of the class type, or one of its subclasses. Read more
SourceΒ§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
SourceΒ§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
SourceΒ§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
SourceΒ§

fn description(&self) -> Id<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
SourceΒ§

fn debugDescription(&self) -> Id<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
SourceΒ§

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

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
SourceΒ§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
SourceΒ§

impl PartialEq for NSEvent

SourceΒ§

fn eq(&self, other: &NSEvent) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 Β· SourceΒ§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
SourceΒ§

impl RefEncode for NSEvent

SourceΒ§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
SourceΒ§

impl Eq for NSEvent

SourceΒ§

impl Message for NSEvent

SourceΒ§

impl StructuralPartialEq for NSEvent

Auto Trait ImplementationsΒ§

Blanket ImplementationsΒ§

SourceΒ§

impl<T> Any for T
where T: 'static + ?Sized,

SourceΒ§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
SourceΒ§

impl<T> Borrow<T> for T
where T: ?Sized,

SourceΒ§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
SourceΒ§

impl<T> BorrowMut<T> for T
where T: ?Sized,

SourceΒ§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
SourceΒ§

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

SourceΒ§

type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable

The immutable counterpart of the type, or Self if the type has no immutable counterpart. Read more
SourceΒ§

type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
SourceΒ§

impl<T> From<T> for T

SourceΒ§

fn from(t: T) -> T

Returns the argument unchanged.

SourceΒ§

impl<T, U> Into<U> for T
where U: From<T>,

SourceΒ§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

SourceΒ§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

SourceΒ§

type Target = T

πŸ”¬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
SourceΒ§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

SourceΒ§

type Error = Infallible

The type returned in the event of a conversion error.
SourceΒ§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
SourceΒ§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

SourceΒ§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
SourceΒ§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
SourceΒ§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

SourceΒ§

impl<T> HasStableHash for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityHashIsStable,

SourceΒ§

impl<T> IsAllocableAnyThread for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

SourceΒ§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

SourceΒ§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,