org.rococoa.cocoa.appkit
Class NSEvent

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSEvent
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, ObjCObject

public abstract class NSEvent
extends NSObject
implements ObjCObject, NSCopying, NSCoding

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSEvent._class_
           
static class NSEvent._data_union
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSEvent()
           
 
Method Summary
abstract  NSInteger absoluteX()
          absolute x coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteX
native declaration : NSEvent.h:312
abstract  NSInteger absoluteY()
          absolute y coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteY
native declaration : NSEvent.h:314
abstract  NSInteger absoluteZ()
          absolute z coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteZ
native declaration : NSEvent.h:316
static NSEvent alloc()
           
abstract  NSUInteger buttonMask()
          mask indicating which buttons are pressed.
abstract  NSInteger buttonNumber()
          for NSOtherMouse events, but will return valid constants for NSLeftMouse and NSRightMouse
Original signature : -(NSInteger)buttonNumber
native declaration : NSEvent.h:237
abstract  NSUInteger capabilityMask()
          mask representing capabilities of device
Original signature : -(NSUInteger)capabilityMask
native declaration : NSEvent.h:342
abstract  NSObject CGEvent()
          -CGEvent returns an autoreleased CGEventRef corresponding to the NSEvent.
abstract  NSString characters()
          these messages are valid for keyup and keydown events
Original signature : -(NSString*)characters
native declaration : NSEvent.h:252
abstract  NSString charactersIgnoringModifiers()
          Original signature : -(NSString*)charactersIgnoringModifiers
native declaration : NSEvent.h:253
abstract  NSInteger clickCount()
          these messages are valid for all mouse down/up/drag events
Original signature : -(NSInteger)clickCount
native declaration : NSEvent.h:236
abstract  NSGraphicsContext context()
          Original signature : -(NSGraphicsContext*)context
native declaration : NSEvent.h:233
abstract  NSInteger data1()
          these messages are valid for kit, system, and app-defined events
Original signature : -(NSInteger)data1
native declaration : NSEvent.h:272
abstract  NSInteger data2()
          Original signature : -(NSInteger)data2
native declaration : NSEvent.h:273
abstract  org.rococoa.cocoa.CGFloat deltaX()
          these messages are valid for scroll wheel events and mouse move/drag events.
abstract  org.rococoa.cocoa.CGFloat deltaY()
          Original signature : -(CGFloat)deltaY
native declaration : NSEvent.h:248
abstract  org.rococoa.cocoa.CGFloat deltaZ()
          0 for most scroll wheel and mouse events
Original signature : -(CGFloat)deltaZ
native declaration : NSEvent.h:249
abstract  NSUInteger deviceID()
          this message is valid for mouse events with subtype NSTabletPointEventSubtype or NSTabletProximityEventSubtype, and for NSTabletPoint and NSTabletProximity events
Original signature : -(NSUInteger)deviceID
native declaration : NSEvent.h:305
static double doubleClickInterval()
          the time in which a second click must occur in order to be considered a doubleClick.
static NSEvent enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData(int type, NSPoint.ByValue location, NSUInteger flags, double time, NSInteger wNum, NSGraphicsContext context, NSInteger eNum, NSInteger tNum, Pointer data)
          Original signature : +(NSEvent*)enterExitEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) trackingNumber:(NSInteger) userData:(void*)
native declaration : NSEvent.h:359
abstract  NSInteger eventNumber()
          these messages are valid for all mouse down/up/drag and enter/exit events
Original signature : -(NSInteger)eventNumber
native declaration : NSEvent.h:239
abstract  Pointer eventRef()
          -eventRef returns an EventRef corresponding to the NSEvent.
static NSEvent eventWithEventRef(Pointer eventRef)
          +eventWithEventRef: returns an autoreleased NSEvent corresponding to the EventRef.
static NSEvent._class_ getNSClass()
           
abstract  boolean isARepeat()
          the chars that would have been generated, regardless of modifier keys (except shift)
Original signature : -(BOOL)isARepeat
native declaration : NSEvent.h:255
abstract  boolean isEnteringProximity()
          YES - entering; NO - leaving
Original signature : -(BOOL)isEnteringProximity
native declaration : NSEvent.h:346
static boolean isMouseCoalescingEnabled()
          Original signature : +(BOOL)isMouseCoalescingEnabled
native declaration : NSEvent.h:296
abstract  short keyCode()
          this message is valid for keyup, keydown and flagschanged events
device-independent key number
Original signature : -(unsigned short)keyCode
native declaration : NSEvent.h:257
static NSEvent keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode(int type, NSPoint.ByValue location, NSUInteger flags, double time, NSInteger wNum, NSGraphicsContext context, NSString keys, NSString ukeys, boolean flag, short code)
          Original signature : +(NSEvent*)keyEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) characters:(NSString*) charactersIgnoringModifiers:(NSString*) isARepeat:(BOOL) keyCode:(unsigned short)
native declaration : NSEvent.h:358
static double keyRepeatDelay()
          the time for which a key must be held down in order to generate the first key repeat event.
static double keyRepeatInterval()
          the time between subsequent key repeat events.
abstract  NSPoint.ByValue locationInWindow()
          -locationInWindow is valid for all mouse-related events
Original signature : -(NSPoint)locationInWindow
native declaration : NSEvent.h:244
abstract  org.rococoa.cocoa.CGFloat magnification()
          This message is valid for events of type NSEventTypeMagnify, on 10.5.2 or later
change in magnification.
abstract  NSUInteger modifierFlags()
          Original signature : -(NSUInteger)modifierFlags
native declaration : NSEvent.h:229
static NSEvent mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure(int type, NSPoint.ByValue location, NSUInteger flags, double time, NSInteger wNum, NSGraphicsContext context, NSInteger eNum, NSInteger cNum, float pressure)
          apps will rarely create these objects
Original signature : +(NSEvent*)mouseEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) clickCount:(NSInteger) pressure:(float)
native declaration : NSEvent.h:357
static NSPoint.ByValue mouseLocation()
          global mouse coordinates
Original signature : +(NSPoint)mouseLocation
native declaration : NSEvent.h:363
static NSEvent new_()
           
static NSEvent otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2(int type, NSPoint.ByValue location, NSUInteger flags, double time, NSInteger wNum, NSGraphicsContext context, short subtype, NSInteger d1, NSInteger d2)
          Original signature : +(NSEvent*)otherEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) subtype:(short) data1:(NSInteger) data2:(NSInteger)
native declaration : NSEvent.h:360
abstract  NSUInteger pointingDeviceID()
          index of the device on the tablet.
abstract  NSUInteger pointingDeviceSerialNumber()
          vendor defined serial number of pointing device
Original signature : -(NSUInteger)pointingDeviceSerialNumber
native declaration : NSEvent.h:338
abstract  int pointingDeviceType()
          mask representing capabilities of device
Original signature : -(NSPointingDeviceType)pointingDeviceType
native declaration : NSEvent.h:344
static NSUInteger pressedMouseButtons()
          mouse buttons currently down.
abstract  float pressure()
          -pressure is valid for all mouse down/up/drag events, and is also valid for NSTabletPoint events on 10.4 or later
Original signature : -(float)pressure
native declaration : NSEvent.h:242
abstract  float rotation()
          this message is valid for valid for mouse events with subtype NSTabletPointEventSubtype, and for NSTabletPoint events.
static void setMouseCoalescingEnabled(boolean flag)
          Enable or disable coalescing of mouse movement events, including mouse moved, mouse dragged, and tablet events.
static void startPeriodicEventsAfterDelay_withPeriod(double delay, double period)
          used for initial delay and periodic behavior in tracking loops
Original signature : +(void)startPeriodicEventsAfterDelay:(NSTimeInterval) withPeriod:(NSTimeInterval)
native declaration : NSEvent.h:353
static void stopPeriodicEvents()
          Original signature : +(void)stopPeriodicEvents
native declaration : NSEvent.h:354
abstract  short subtype()
          this message is also valid for mouse events on 10.4 or later
Original signature : -(short)subtype
native declaration : NSEvent.h:269
abstract  NSUInteger systemTabletID()
          system assigned unique tablet ID
Original signature : -(NSUInteger)systemTabletID
native declaration : NSEvent.h:334
abstract  NSUInteger tabletID()
          vendor defined tablet ID
Original signature : -(NSUInteger)tabletID
native declaration : NSEvent.h:330
abstract  float tangentialPressure()
          tangential pressure on the device; range is -1 to 1
Original signature : -(float)tangentialPressure
native declaration : NSEvent.h:322
abstract  NSPoint.ByValue tilt()
          range is -1 to 1 for both axes
Original signature : -(NSPoint)tilt
native declaration : NSEvent.h:320
abstract  double timestamp()
          Original signature : -(NSTimeInterval)timestamp
native declaration : NSEvent.h:230
abstract  NSTrackingArea trackingArea()
          -trackingArea returns the NSTrackingArea that generated this event.
abstract  NSInteger trackingNumber()
          these messages are valid for enter and exit events
Original signature : -(NSInteger)trackingNumber
native declaration : NSEvent.h:260
abstract  int type()
          these messages are valid for all events
Original signature : -(NSEventType)type
native declaration : NSEvent.h:228
abstract  long uniqueID()
          vendor defined unique ID
Original signature : -(unsigned long long)uniqueID
native declaration : NSEvent.h:340
abstract  Pointer userData()
          Original signature : -(void*)userData
native declaration : NSEvent.h:261
abstract  NSObject vendorDefined()
          NSArray of 3 vendor defined shorts
Original signature : -(id)vendorDefined
native declaration : NSEvent.h:324
abstract  NSUInteger vendorID()
          vendor defined, typically USB vendor ID
Original signature : -(NSUInteger)vendorID
native declaration : NSEvent.h:328
abstract  NSUInteger vendorPointingDeviceType()
          vendor defined pointing device type
Original signature : -(NSUInteger)vendorPointingDeviceType
native declaration : NSEvent.h:336
abstract  NSWindow window()
          Original signature : -(NSWindow*)window
native declaration : NSEvent.h:231
abstract  NSInteger windowNumber()
          Original signature : -(NSInteger)windowNumber
native declaration : NSEvent.h:232
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSEvent

public NSEvent()
Method Detail

type

public abstract int type()
these messages are valid for all events
Original signature : -(NSEventType)type
native declaration : NSEvent.h:228


modifierFlags

public abstract NSUInteger modifierFlags()
Original signature : -(NSUInteger)modifierFlags
native declaration : NSEvent.h:229


timestamp

public abstract double timestamp()
Original signature : -(NSTimeInterval)timestamp
native declaration : NSEvent.h:230


window

public abstract NSWindow window()
Original signature : -(NSWindow*)window
native declaration : NSEvent.h:231


windowNumber

public abstract NSInteger windowNumber()
Original signature : -(NSInteger)windowNumber
native declaration : NSEvent.h:232


context

public abstract NSGraphicsContext context()
Original signature : -(NSGraphicsContext*)context
native declaration : NSEvent.h:233


clickCount

public abstract NSInteger clickCount()
these messages are valid for all mouse down/up/drag events
Original signature : -(NSInteger)clickCount
native declaration : NSEvent.h:236


buttonNumber

public abstract NSInteger buttonNumber()
for NSOtherMouse events, but will return valid constants for NSLeftMouse and NSRightMouse
Original signature : -(NSInteger)buttonNumber
native declaration : NSEvent.h:237


eventNumber

public abstract NSInteger eventNumber()
these messages are valid for all mouse down/up/drag and enter/exit events
Original signature : -(NSInteger)eventNumber
native declaration : NSEvent.h:239


pressure

public abstract float pressure()
-pressure is valid for all mouse down/up/drag events, and is also valid for NSTabletPoint events on 10.4 or later
Original signature : -(float)pressure
native declaration : NSEvent.h:242


locationInWindow

public abstract NSPoint.ByValue locationInWindow()
-locationInWindow is valid for all mouse-related events
Original signature : -(NSPoint)locationInWindow
native declaration : NSEvent.h:244


deltaX

public abstract org.rococoa.cocoa.CGFloat deltaX()
these messages are valid for scroll wheel events and mouse move/drag events. As of 10.5.2, deltaX and deltaY are also valid for swipe events. A non-0 deltaX will represent a horizontal swipe, -1 for swipe right and 1 for swipe left. A non-0 deltaY will represent a vertical swipe, -1 for swipe down and 1 for swipe up.
Original signature : -(CGFloat)deltaX
native declaration : NSEvent.h:247


deltaY

public abstract org.rococoa.cocoa.CGFloat deltaY()
Original signature : -(CGFloat)deltaY
native declaration : NSEvent.h:248


deltaZ

public abstract org.rococoa.cocoa.CGFloat deltaZ()
0 for most scroll wheel and mouse events
Original signature : -(CGFloat)deltaZ
native declaration : NSEvent.h:249


characters

public abstract NSString characters()
these messages are valid for keyup and keydown events
Original signature : -(NSString*)characters
native declaration : NSEvent.h:252


charactersIgnoringModifiers

public abstract NSString charactersIgnoringModifiers()
Original signature : -(NSString*)charactersIgnoringModifiers
native declaration : NSEvent.h:253


isARepeat

public abstract boolean isARepeat()
the chars that would have been generated, regardless of modifier keys (except shift)
Original signature : -(BOOL)isARepeat
native declaration : NSEvent.h:255


keyCode

public abstract short keyCode()
this message is valid for keyup, keydown and flagschanged events
device-independent key number
Original signature : -(unsigned short)keyCode
native declaration : NSEvent.h:257


trackingNumber

public abstract NSInteger trackingNumber()
these messages are valid for enter and exit events
Original signature : -(NSInteger)trackingNumber
native declaration : NSEvent.h:260


userData

public abstract Pointer userData()
Original signature : -(void*)userData
native declaration : NSEvent.h:261


trackingArea

public abstract NSTrackingArea trackingArea()
-trackingArea returns the NSTrackingArea that generated this event. It is possible for there to be no trackingArea associated with the event in some cases where the event corresponds to a trackingRect installed with -[NSView addTrackingRect:owner:userData:assumeInside:], in which case nil is returned.
Original signature : -(NSTrackingArea*)trackingArea
native declaration : NSEvent.h:264


subtype

public abstract short subtype()
this message is also valid for mouse events on 10.4 or later
Original signature : -(short)subtype
native declaration : NSEvent.h:269


data1

public abstract NSInteger data1()
these messages are valid for kit, system, and app-defined events
Original signature : -(NSInteger)data1
native declaration : NSEvent.h:272


data2

public abstract NSInteger data2()
Original signature : -(NSInteger)data2
native declaration : NSEvent.h:273


eventRef

public abstract Pointer eventRef()
-eventRef returns an EventRef corresponding to the NSEvent. The EventRef is retained by the NSEvent, so will be valid as long as the NSEvent is valid, and will be released when the NSEvent is freed. You can use RetainEvent to extend the lifetime of the EventRef, with a corresponding ReleaseEvent when you are done with it. If there is no EventRef corresponding to the NSEvent, -eventRef will return NULL.
Original signature : -(const void*)eventRef
native declaration : NSEvent.h:280


eventWithEventRef

public static NSEvent eventWithEventRef(Pointer eventRef)
+eventWithEventRef: returns an autoreleased NSEvent corresponding to the EventRef. The EventRef is retained by the NSEvent and will be released when the NSEvent is freed. If there is no NSEvent corresponding to the EventRef, +eventWithEventRef will return nil.
EventRef
Original signature : +(NSEvent*)eventWithEventRef:(const void*)
native declaration : NSEvent.h:283


CGEvent

public abstract NSObject CGEvent()
-CGEvent returns an autoreleased CGEventRef corresponding to the NSEvent. If there is no CGEventRef corresponding to the NSEvent, -CGEvent will return NULL.
Original signature : -(id)CGEvent
native declaration : NSEvent.h:287


setMouseCoalescingEnabled

public static void setMouseCoalescingEnabled(boolean flag)
Enable or disable coalescing of mouse movement events, including mouse moved, mouse dragged, and tablet events. Coalescing is enabled by default.
Original signature : +(void)setMouseCoalescingEnabled:(BOOL)
native declaration : NSEvent.h:295


isMouseCoalescingEnabled

public static boolean isMouseCoalescingEnabled()
Original signature : +(BOOL)isMouseCoalescingEnabled
native declaration : NSEvent.h:296


magnification

public abstract org.rococoa.cocoa.CGFloat magnification()
This message is valid for events of type NSEventTypeMagnify, on 10.5.2 or later
change in magnification. This value should be added to the current scaling of an item to get the new scale factor.
Original signature : -(CGFloat)magnification
native declaration : NSEvent.h:301


deviceID

public abstract NSUInteger deviceID()
this message is valid for mouse events with subtype NSTabletPointEventSubtype or NSTabletProximityEventSubtype, and for NSTabletPoint and NSTabletProximity events
Original signature : -(NSUInteger)deviceID
native declaration : NSEvent.h:305


rotation

public abstract float rotation()
this message is valid for valid for mouse events with subtype NSTabletPointEventSubtype, and for NSTabletPoint events. On 10.5.2 or later, it is also valid for NSEventTypeRotate events.
In degrees. For NSTabletPoint, this is rotation of the pen. For NSEventTypeRotate, it is rotation on the track pad.
Original signature : -(float)rotation
native declaration : NSEvent.h:308


absoluteX

public abstract NSInteger absoluteX()
absolute x coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteX
native declaration : NSEvent.h:312


absoluteY

public abstract NSInteger absoluteY()
absolute y coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteY
native declaration : NSEvent.h:314


absoluteZ

public abstract NSInteger absoluteZ()
absolute z coordinate in tablet space at full tablet resolution
Original signature : -(NSInteger)absoluteZ
native declaration : NSEvent.h:316


buttonMask

public abstract NSUInteger buttonMask()
mask indicating which buttons are pressed.
Original signature : -(NSUInteger)buttonMask
native declaration : NSEvent.h:318


tilt

public abstract NSPoint.ByValue tilt()
range is -1 to 1 for both axes
Original signature : -(NSPoint)tilt
native declaration : NSEvent.h:320


tangentialPressure

public abstract float tangentialPressure()
tangential pressure on the device; range is -1 to 1
Original signature : -(float)tangentialPressure
native declaration : NSEvent.h:322


vendorDefined

public abstract NSObject vendorDefined()
NSArray of 3 vendor defined shorts
Original signature : -(id)vendorDefined
native declaration : NSEvent.h:324


vendorID

public abstract NSUInteger vendorID()
vendor defined, typically USB vendor ID
Original signature : -(NSUInteger)vendorID
native declaration : NSEvent.h:328


tabletID

public abstract NSUInteger tabletID()
vendor defined tablet ID
Original signature : -(NSUInteger)tabletID
native declaration : NSEvent.h:330


pointingDeviceID

public abstract NSUInteger pointingDeviceID()
index of the device on the tablet. Usually 0, except for tablets that support multiple concurrent devices
Original signature : -(NSUInteger)pointingDeviceID
native declaration : NSEvent.h:332


systemTabletID

public abstract NSUInteger systemTabletID()
system assigned unique tablet ID
Original signature : -(NSUInteger)systemTabletID
native declaration : NSEvent.h:334


vendorPointingDeviceType

public abstract NSUInteger vendorPointingDeviceType()
vendor defined pointing device type
Original signature : -(NSUInteger)vendorPointingDeviceType
native declaration : NSEvent.h:336


pointingDeviceSerialNumber

public abstract NSUInteger pointingDeviceSerialNumber()
vendor defined serial number of pointing device
Original signature : -(NSUInteger)pointingDeviceSerialNumber
native declaration : NSEvent.h:338


uniqueID

public abstract long uniqueID()
vendor defined unique ID
Original signature : -(unsigned long long)uniqueID
native declaration : NSEvent.h:340


capabilityMask

public abstract NSUInteger capabilityMask()
mask representing capabilities of device
Original signature : -(NSUInteger)capabilityMask
native declaration : NSEvent.h:342


pointingDeviceType

public abstract int pointingDeviceType()
mask representing capabilities of device
Original signature : -(NSPointingDeviceType)pointingDeviceType
native declaration : NSEvent.h:344


isEnteringProximity

public abstract boolean isEnteringProximity()
YES - entering; NO - leaving
Original signature : -(BOOL)isEnteringProximity
native declaration : NSEvent.h:346


startPeriodicEventsAfterDelay_withPeriod

public static void startPeriodicEventsAfterDelay_withPeriod(double delay,
                                                            double period)
used for initial delay and periodic behavior in tracking loops
Original signature : +(void)startPeriodicEventsAfterDelay:(NSTimeInterval) withPeriod:(NSTimeInterval)
native declaration : NSEvent.h:353


stopPeriodicEvents

public static void stopPeriodicEvents()
Original signature : +(void)stopPeriodicEvents
native declaration : NSEvent.h:354


mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure

public static NSEvent mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure(int type,
                                                                                                                               NSPoint.ByValue location,
                                                                                                                               NSUInteger flags,
                                                                                                                               double time,
                                                                                                                               NSInteger wNum,
                                                                                                                               NSGraphicsContext context,
                                                                                                                               NSInteger eNum,
                                                                                                                               NSInteger cNum,
                                                                                                                               float pressure)
apps will rarely create these objects
Original signature : +(NSEvent*)mouseEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) clickCount:(NSInteger) pressure:(float)
native declaration : NSEvent.h:357

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventType

keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode

public static NSEvent keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode(int type,
                                                                                                                                                      NSPoint.ByValue location,
                                                                                                                                                      NSUInteger flags,
                                                                                                                                                      double time,
                                                                                                                                                      NSInteger wNum,
                                                                                                                                                      NSGraphicsContext context,
                                                                                                                                                      NSString keys,
                                                                                                                                                      NSString ukeys,
                                                                                                                                                      boolean flag,
                                                                                                                                                      short code)
Original signature : +(NSEvent*)keyEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) characters:(NSString*) charactersIgnoringModifiers:(NSString*) isARepeat:(BOOL) keyCode:(unsigned short)
native declaration : NSEvent.h:358

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventType

enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData

public static NSEvent enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData(int type,
                                                                                                                                       NSPoint.ByValue location,
                                                                                                                                       NSUInteger flags,
                                                                                                                                       double time,
                                                                                                                                       NSInteger wNum,
                                                                                                                                       NSGraphicsContext context,
                                                                                                                                       NSInteger eNum,
                                                                                                                                       NSInteger tNum,
                                                                                                                                       Pointer data)
Original signature : +(NSEvent*)enterExitEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) trackingNumber:(NSInteger) userData:(void*)
native declaration : NSEvent.h:359

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventType

otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2

public static NSEvent otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2(int type,
                                                                                                                   NSPoint.ByValue location,
                                                                                                                   NSUInteger flags,
                                                                                                                   double time,
                                                                                                                   NSInteger wNum,
                                                                                                                   NSGraphicsContext context,
                                                                                                                   short subtype,
                                                                                                                   NSInteger d1,
                                                                                                                   NSInteger d2)
Original signature : +(NSEvent*)otherEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) subtype:(short) data1:(NSInteger) data2:(NSInteger)
native declaration : NSEvent.h:360

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventType

mouseLocation

public static NSPoint.ByValue mouseLocation()
global mouse coordinates
Original signature : +(NSPoint)mouseLocation
native declaration : NSEvent.h:363


pressedMouseButtons

public static NSUInteger pressedMouseButtons()
mouse buttons currently down. Returns indices of the mouse buttons currently down. 1 << 0 corresponds to leftMouse, 1 << 1 to rightMouse, and 1 << n, n >= 2 to other mouse buttons. This returns the state of devices combined with synthesized events at the moment, independent of which events have been delivered via the event stream, so this method is not suitable for tracking.
Original signature : +(NSUInteger)pressedMouseButtons
native declaration : NSEvent.h:369


doubleClickInterval

public static double doubleClickInterval()
the time in which a second click must occur in order to be considered a doubleClick. This is a system value so overrides will have no effect.
Original signature : +(NSTimeInterval)doubleClickInterval
native declaration : NSEvent.h:372


keyRepeatDelay

public static double keyRepeatDelay()
the time for which a key must be held down in order to generate the first key repeat event. This is a system value so overrides will have no effect.
Original signature : +(NSTimeInterval)keyRepeatDelay
native declaration : NSEvent.h:374


keyRepeatInterval

public static double keyRepeatInterval()
the time between subsequent key repeat events. This is a system value so overrides will have no effect.
Original signature : +(NSTimeInterval)keyRepeatInterval
native declaration : NSEvent.h:376


alloc

public static NSEvent alloc()

new_

public static NSEvent new_()

getNSClass

public static NSEvent._class_ getNSClass()


Copyright © 2009. All Rights Reserved.