org.rococoa.cocoa.appkit
Class NSEvent._class_

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSClass
          extended by org.rococoa.cocoa.foundation.NSObject._class_
              extended by org.rococoa.cocoa.appkit.NSEvent._class_
All Implemented Interfaces:
NSObject, ObjCClass, ObjCObject
Enclosing class:
NSEvent

public abstract static class NSEvent._class_
extends NSObject._class_


Nested Class Summary
 
Nested classes/interfaces inherited from class org.rococoa.cocoa.foundation.NSObject
NSObject._class_
 
Nested classes/interfaces inherited from interface org.rococoa.ObjCClass
ObjCClass._Class
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Field Summary
 
Fields inherited from interface org.rococoa.ObjCClass
CLASS
 
Constructor Summary
NSEvent._class_()
           
 
Method Summary
abstract  NSEvent alloc()
          Original signature : +(id)alloc
native declaration : NSObject.h:77
abstract  double doubleClickInterval()
          the time in which a second click must occur in order to be considered a doubleClick.
abstract  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  NSEvent eventWithEventRef(Pointer eventRef)
          +eventWithEventRef: returns an autoreleased NSEvent corresponding to the EventRef.
abstract  boolean isMouseCoalescingEnabled()
          Original signature : +(BOOL)isMouseCoalescingEnabled
native declaration : NSEvent.h:296
abstract  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
abstract  double keyRepeatDelay()
          the time for which a key must be held down in order to generate the first key repeat event.
abstract  double keyRepeatInterval()
          the time between subsequent key repeat events.
abstract  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
abstract  NSPoint.ByValue mouseLocation()
          global mouse coordinates
Original signature : +(NSPoint)mouseLocation
native declaration : NSEvent.h:363
abstract  NSEvent new_()
          Original signature : +(id)new
native declaration : NSObject.h:75
abstract  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 pressedMouseButtons()
          mouse buttons currently down.
abstract  void setMouseCoalescingEnabled(boolean flag)
          Enable or disable coalescing of mouse movement events, including mouse moved, mouse dragged, and tablet events.
abstract  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
abstract  void stopPeriodicEvents()
          Original signature : +(void)stopPeriodicEvents
native declaration : NSEvent.h:354
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject._class_
allocWithZone, asStatic_NSObject_NSAccessibility, asStatic_NSObject_NSAccessibilityAdditions, asStatic_NSObject_NSApplicationScriptingDelegation, asStatic_NSObject_NSArchiverCallback, asStatic_NSObject_NSClassDescriptionPrimitives, asStatic_NSObject_NSCoderMethods, asStatic_NSObject_NSColorPanelResponderMethod, asStatic_NSObject_NSComparisonMethods, asStatic_NSObject_NSControlSubclassNotifications, asStatic_NSObject_NSCopyLinkMoveHandler, asStatic_NSObject_NSDelayedPerforming, asStatic_NSObject_NSDeprecatedKeyValueCoding, asStatic_NSObject_NSDeprecatedKeyValueObservingCustomization, asStatic_NSObject_NSDeprecatedMethods, asStatic_NSObject_NSDictionaryControllerKeyValuePair, asStatic_NSObject_NSDistributedObjects, asStatic_NSObject_NSDraggingDestination, asStatic_NSObject_NSDraggingSource, asStatic_NSObject_NSDraggingSourceDeprecated, asStatic_NSObject_NSEditor, asStatic_NSObject_NSEditorRegistration, asStatic_NSObject_NSErrorRecoveryAttempting, asStatic_NSObject_NSFileManagerFileOperationAdditions, asStatic_NSObject_NSFontManagerDelegate, asStatic_NSObject_NSFontManagerResponderMethod, asStatic_NSObject_NSFontPanelValidationAdditions, asStatic_NSObject_NSKeyValueBindingCreation, asStatic_NSObject_NSKeyValueCoding, asStatic_NSObject_NSKeyValueObserverNotification, asStatic_NSObject_NSKeyValueObserverRegistration, asStatic_NSObject_NSKeyValueObserving, asStatic_NSObject_NSKeyValueObservingCustomization, asStatic_NSObject_NSMenuValidation, asStatic_NSObject_NSNibAwaking, asStatic_NSObject_NSPasteboardOwner, asStatic_NSObject_NSPlaceholders, asStatic_NSObject_NSScriptClassDescription, asStatic_NSObject_NSScripting, asStatic_NSObject_NSScriptingComparisonMethods, asStatic_NSObject_NSScriptKeyValueCoding, asStatic_NSObject_NSScriptObjectSpecifiers, asStatic_NSObject_NSThreadPerformAdditions, asStatic_NSObject_NSURLClient, asStatic_NSObject_NSURLConnectionDelegate, asStatic_NSObject_NSURLDownloadDelegate, class_, conformsToProtocol, copyWithZone, initialize, instanceMethodForSelector, instanceMethodSignatureForSelector, instancesRespondToSelector, isSubclassOfClass, load, mutableCopyWithZone, resolveClassMethod, resolveInstanceMethod, superclass
 
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, getNSClass, 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.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, zone
 

Constructor Detail

NSEvent._class_

public NSEvent._class_()
Method Detail

eventWithEventRef

public abstract 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


setMouseCoalescingEnabled

public abstract 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 abstract boolean isMouseCoalescingEnabled()
Original signature : +(BOOL)isMouseCoalescingEnabled
native declaration : NSEvent.h:296


startPeriodicEventsAfterDelay_withPeriod

public abstract 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 abstract void stopPeriodicEvents()
Original signature : +(void)stopPeriodicEvents
native declaration : NSEvent.h:354


mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure

public abstract 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 abstract 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 abstract 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 abstract 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 abstract NSPoint.ByValue mouseLocation()
global mouse coordinates
Original signature : +(NSPoint)mouseLocation
native declaration : NSEvent.h:363


pressedMouseButtons

public abstract 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 abstract 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 abstract 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 abstract 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 abstract NSEvent alloc()
Description copied from class: NSObject._class_
Original signature : +(id)alloc
native declaration : NSObject.h:77

Specified by:
alloc in class NSObject._class_

new_

public abstract NSEvent new_()
Description copied from class: NSObject._class_
Original signature : +(id)new
native declaration : NSObject.h:75

Specified by:
new_ in class NSObject._class_


Copyright © 2009. All Rights Reserved.