[−][src]Trait cocoa::appkit::NSEvent
Required methods
unsafe fn keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
characters: id,
unmodCharacters: id,
repeatKey: BOOL,
code: c_ushort
) -> id
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
characters: id,
unmodCharacters: id,
repeatKey: BOOL,
code: c_ushort
) -> id
unsafe fn mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
clickCount: NSInteger,
pressure: c_float
) -> id
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
clickCount: NSInteger,
pressure: c_float
) -> id
unsafe fn enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
trackingNumber: NSInteger,
userData: *mut c_void
) -> id
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
trackingNumber: NSInteger,
userData: *mut c_void
) -> id
unsafe fn otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
subtype: NSEventSubtype,
data1: NSInteger,
data2: NSInteger
) -> id
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
subtype: NSEventSubtype,
data1: NSInteger,
data2: NSInteger
) -> id
unsafe fn eventWithEventRef_(_: Self, eventRef: *const c_void) -> id
unsafe fn eventWithCGEvent_(_: Self, cgEvent: *mut c_void) -> id
unsafe fn context(self) -> id
unsafe fn locationInWindow(self) -> NSPoint
unsafe fn modifierFlags(self) -> NSEventModifierFlags
unsafe fn timestamp(self) -> NSTimeInterval
unsafe fn eventType(self) -> NSEventType
unsafe fn window(self) -> id
unsafe fn windowNumber(self) -> NSInteger
unsafe fn eventRef(self) -> *const c_void
unsafe fn CGEvent(self) -> *mut c_void
unsafe fn currentModifierFlags(_: Self) -> NSEventModifierFlags
unsafe fn keyRepeatDelay(_: Self) -> NSTimeInterval
unsafe fn keyRepeatInterval(_: Self) -> NSTimeInterval
unsafe fn characters(self) -> id
unsafe fn charactersIgnoringModifiers(self) -> id
unsafe fn keyCode(self) -> c_ushort
unsafe fn isARepeat(self) -> BOOL
unsafe fn pressedMouseButtons(_: Self) -> NSUInteger
unsafe fn doubleClickInterval(_: Self) -> NSTimeInterval
unsafe fn mouseLocation(_: Self) -> NSPoint
unsafe fn buttonNumber(self) -> NSInteger
unsafe fn clickCount(self) -> NSInteger
unsafe fn pressure(self) -> c_float
unsafe fn stage(self) -> NSInteger
unsafe fn setMouseCoalescingEnabled_(_: Self, flag: BOOL)
unsafe fn isMouseCoalescingEnabled(_: Self) -> BOOL
unsafe fn eventNumber(self) -> NSInteger
unsafe fn trackingNumber(self) -> NSInteger
unsafe fn trackingArea(self) -> id
unsafe fn userData(self) -> *const c_void
unsafe fn data1(self) -> NSInteger
unsafe fn data2(self) -> NSInteger
unsafe fn subtype(self) -> NSEventSubtype
unsafe fn deltaX(self) -> CGFloat
unsafe fn deltaY(self) -> CGFloat
unsafe fn deltaZ(self) -> CGFloat
unsafe fn capabilityMask(self) -> NSUInteger
unsafe fn deviceID(self) -> NSUInteger
unsafe fn pointingDeviceID(self) -> NSUInteger
unsafe fn pointingDeviceSerialNumber(self) -> NSUInteger
unsafe fn pointingDeviceType(self) -> NSPointingDeviceType
unsafe fn systemTabletID(self) -> NSUInteger
unsafe fn tabletID(self) -> NSUInteger
unsafe fn uniqueID(self) -> c_ulonglong
unsafe fn vendorID(self) -> NSUInteger
unsafe fn vendorPointingDeviceType(self) -> NSUInteger
unsafe fn absoluteX(self) -> NSInteger
unsafe fn absoluteY(self) -> NSInteger
unsafe fn absoluteZ(self) -> NSInteger
unsafe fn buttonMask(self) -> NSEventButtonMask
unsafe fn rotation(self) -> c_float
unsafe fn tangentialPressure(self) -> c_float
unsafe fn tilt(self) -> NSPoint
unsafe fn vendorDefined(self) -> id
unsafe fn startPeriodicEventsAfterDelay_withPeriod_(
_: Self,
delaySeconds: NSTimeInterval,
periodSeconds: NSTimeInterval
)
_: Self,
delaySeconds: NSTimeInterval,
periodSeconds: NSTimeInterval
)
unsafe fn stopPeriodicEvents(_: Self)
unsafe fn magnification(self) -> CGFloat
unsafe fn touchesMatchingPhase_inView_(
self,
phase: NSTouchPhase,
view: id
) -> id
self,
phase: NSTouchPhase,
view: id
) -> id
unsafe fn isSwipeTrackingFromScrollEventsEnabled(_: Self) -> BOOL
unsafe fn removeMonitor_(_: Self, eventMonitor: id)
unsafe fn hasPreciseScrollingDeltas(self) -> BOOL
unsafe fn scrollingDeltaX(self) -> CGFloat
unsafe fn scrollingDeltaY(self) -> CGFloat
unsafe fn momentumPhase(self) -> NSEventPhase
unsafe fn phase(self) -> NSEventPhase
unsafe fn locationInNode_(self, node: id) -> CGPoint
Implementors
impl NSEvent for id
[src]
unsafe fn keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
characters: id,
unmodCharacters: id,
repeatKey: BOOL,
code: c_ushort
) -> id
[src]
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
characters: id,
unmodCharacters: id,
repeatKey: BOOL,
code: c_ushort
) -> id
unsafe fn mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
clickCount: NSInteger,
pressure: c_float
) -> id
[src]
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
clickCount: NSInteger,
pressure: c_float
) -> id
unsafe fn enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
trackingNumber: NSInteger,
userData: *mut c_void
) -> id
[src]
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
eventNumber: NSInteger,
trackingNumber: NSInteger,
userData: *mut c_void
) -> id
unsafe fn otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
subtype: NSEventSubtype,
data1: NSInteger,
data2: NSInteger
) -> id
[src]
_: Self,
eventType: NSEventType,
location: NSPoint,
modifierFlags: NSEventModifierFlags,
timestamp: NSTimeInterval,
windowNumber: NSInteger,
context: id,
subtype: NSEventSubtype,
data1: NSInteger,
data2: NSInteger
) -> id
unsafe fn eventWithEventRef_(_: Self, eventRef: *const c_void) -> id
[src]
unsafe fn eventWithCGEvent_(_: Self, cgEvent: *mut c_void) -> id
[src]
unsafe fn context(self) -> id
[src]
unsafe fn locationInWindow(self) -> NSPoint
[src]
unsafe fn modifierFlags(self) -> NSEventModifierFlags
[src]
unsafe fn timestamp(self) -> NSTimeInterval
[src]
unsafe fn eventType(self) -> NSEventType
[src]
unsafe fn window(self) -> id
[src]
unsafe fn windowNumber(self) -> NSInteger
[src]
unsafe fn eventRef(self) -> *const c_void
[src]
unsafe fn CGEvent(self) -> *mut c_void
[src]
unsafe fn currentModifierFlags(_: Self) -> NSEventModifierFlags
[src]
unsafe fn keyRepeatDelay(_: Self) -> NSTimeInterval
[src]
unsafe fn keyRepeatInterval(_: Self) -> NSTimeInterval
[src]
unsafe fn characters(self) -> id
[src]
unsafe fn charactersIgnoringModifiers(self) -> id
[src]
unsafe fn keyCode(self) -> c_ushort
[src]
unsafe fn isARepeat(self) -> BOOL
[src]
unsafe fn pressedMouseButtons(_: Self) -> NSUInteger
[src]
unsafe fn doubleClickInterval(_: Self) -> NSTimeInterval
[src]
unsafe fn mouseLocation(_: Self) -> NSPoint
[src]
unsafe fn buttonNumber(self) -> NSInteger
[src]
unsafe fn clickCount(self) -> NSInteger
[src]
unsafe fn pressure(self) -> c_float
[src]
unsafe fn stage(self) -> NSInteger
[src]
unsafe fn setMouseCoalescingEnabled_(_: Self, flag: BOOL)
[src]
unsafe fn isMouseCoalescingEnabled(_: Self) -> BOOL
[src]
unsafe fn eventNumber(self) -> NSInteger
[src]
unsafe fn trackingNumber(self) -> NSInteger
[src]
unsafe fn trackingArea(self) -> id
[src]
unsafe fn userData(self) -> *const c_void
[src]
unsafe fn data1(self) -> NSInteger
[src]
unsafe fn data2(self) -> NSInteger
[src]
unsafe fn subtype(self) -> NSEventSubtype
[src]
unsafe fn deltaX(self) -> CGFloat
[src]
unsafe fn deltaY(self) -> CGFloat
[src]
unsafe fn deltaZ(self) -> CGFloat
[src]
unsafe fn capabilityMask(self) -> NSUInteger
[src]
unsafe fn deviceID(self) -> NSUInteger
[src]
unsafe fn pointingDeviceID(self) -> NSUInteger
[src]
unsafe fn pointingDeviceSerialNumber(self) -> NSUInteger
[src]
unsafe fn pointingDeviceType(self) -> NSPointingDeviceType
[src]
unsafe fn systemTabletID(self) -> NSUInteger
[src]
unsafe fn tabletID(self) -> NSUInteger
[src]
unsafe fn uniqueID(self) -> c_ulonglong
[src]
unsafe fn vendorID(self) -> NSUInteger
[src]
unsafe fn vendorPointingDeviceType(self) -> NSUInteger
[src]
unsafe fn absoluteX(self) -> NSInteger
[src]
unsafe fn absoluteY(self) -> NSInteger
[src]
unsafe fn absoluteZ(self) -> NSInteger
[src]
unsafe fn buttonMask(self) -> NSEventButtonMask
[src]
unsafe fn rotation(self) -> c_float
[src]
unsafe fn tangentialPressure(self) -> c_float
[src]
unsafe fn tilt(self) -> NSPoint
[src]
unsafe fn vendorDefined(self) -> id
[src]
unsafe fn startPeriodicEventsAfterDelay_withPeriod_(
_: Self,
delaySeconds: NSTimeInterval,
periodSeconds: NSTimeInterval
)
[src]
_: Self,
delaySeconds: NSTimeInterval,
periodSeconds: NSTimeInterval
)
unsafe fn stopPeriodicEvents(_: Self)
[src]
unsafe fn magnification(self) -> CGFloat
[src]
unsafe fn touchesMatchingPhase_inView_(
self,
phase: NSTouchPhase,
view: id
) -> id
[src]
self,
phase: NSTouchPhase,
view: id
) -> id