|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSEvent
public abstract class NSEvent
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 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 |
---|
public NSEvent()
Method Detail |
---|
public abstract int type()
-(NSEventType)type
public abstract NSUInteger modifierFlags()
-(NSUInteger)modifierFlags
public abstract double timestamp()
-(NSTimeInterval)timestamp
public abstract NSWindow window()
-(NSWindow*)window
public abstract NSInteger windowNumber()
-(NSInteger)windowNumber
public abstract NSGraphicsContext context()
-(NSGraphicsContext*)context
public abstract NSInteger clickCount()
-(NSInteger)clickCount
public abstract NSInteger buttonNumber()
-(NSInteger)buttonNumber
public abstract NSInteger eventNumber()
-(NSInteger)eventNumber
public abstract float pressure()
-(float)pressure
public abstract NSPoint.ByValue locationInWindow()
-(NSPoint)locationInWindow
public abstract org.rococoa.cocoa.CGFloat deltaX()
-(CGFloat)deltaX
public abstract org.rococoa.cocoa.CGFloat deltaY()
-(CGFloat)deltaY
public abstract org.rococoa.cocoa.CGFloat deltaZ()
-(CGFloat)deltaZ
public abstract NSString characters()
-(NSString*)characters
public abstract NSString charactersIgnoringModifiers()
-(NSString*)charactersIgnoringModifiers
public abstract boolean isARepeat()
-(BOOL)isARepeat
public abstract short keyCode()
-(unsigned short)keyCode
public abstract NSInteger trackingNumber()
-(NSInteger)trackingNumber
public abstract Pointer userData()
-(void*)userData
public abstract NSTrackingArea trackingArea()
-(NSTrackingArea*)trackingArea
public abstract short subtype()
-(short)subtype
public abstract NSInteger data1()
-(NSInteger)data1
public abstract NSInteger data2()
-(NSInteger)data2
public abstract Pointer eventRef()
-(const void*)eventRef
public static NSEvent eventWithEventRef(Pointer eventRef)
+(NSEvent*)eventWithEventRef:(const void*)
public abstract NSObject CGEvent()
-(id)CGEvent
public static void setMouseCoalescingEnabled(boolean flag)
+(void)setMouseCoalescingEnabled:(BOOL)
public static boolean isMouseCoalescingEnabled()
+(BOOL)isMouseCoalescingEnabled
public abstract org.rococoa.cocoa.CGFloat magnification()
-(CGFloat)magnification
public abstract NSUInteger deviceID()
-(NSUInteger)deviceID
public abstract float rotation()
-(float)rotation
public abstract NSInteger absoluteX()
-(NSInteger)absoluteX
public abstract NSInteger absoluteY()
-(NSInteger)absoluteY
public abstract NSInteger absoluteZ()
-(NSInteger)absoluteZ
public abstract NSUInteger buttonMask()
-(NSUInteger)buttonMask
public abstract NSPoint.ByValue tilt()
-(NSPoint)tilt
public abstract float tangentialPressure()
-(float)tangentialPressure
public abstract NSObject vendorDefined()
-(id)vendorDefined
public abstract NSUInteger vendorID()
-(NSUInteger)vendorID
public abstract NSUInteger tabletID()
-(NSUInteger)tabletID
public abstract NSUInteger pointingDeviceID()
-(NSUInteger)pointingDeviceID
public abstract NSUInteger systemTabletID()
-(NSUInteger)systemTabletID
public abstract NSUInteger vendorPointingDeviceType()
-(NSUInteger)vendorPointingDeviceType
public abstract NSUInteger pointingDeviceSerialNumber()
-(NSUInteger)pointingDeviceSerialNumber
public abstract long uniqueID()
-(unsigned long long)uniqueID
public abstract NSUInteger capabilityMask()
-(NSUInteger)capabilityMask
public abstract int pointingDeviceType()
-(NSPointingDeviceType)pointingDeviceType
public abstract boolean isEnteringProximity()
-(BOOL)isEnteringProximity
public static void startPeriodicEventsAfterDelay_withPeriod(double delay, double period)
+(void)startPeriodicEventsAfterDelay:(NSTimeInterval) withPeriod:(NSTimeInterval)
public static void stopPeriodicEvents()
+(void)stopPeriodicEvents
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)
+(NSEvent*)mouseEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) clickCount:(NSInteger) pressure:(float)
type
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventTypepublic 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)
+(NSEvent*)keyEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) characters:(NSString*) charactersIgnoringModifiers:(NSString*) isARepeat:(BOOL) keyCode:(unsigned short)
type
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventTypepublic 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)
+(NSEvent*)enterExitEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) eventNumber:(NSInteger) trackingNumber:(NSInteger) userData:(void*)
type
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventTypepublic 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)
+(NSEvent*)otherEventWithType:(NSEventType) location:(NSPoint) modifierFlags:(NSUInteger) timestamp:(NSTimeInterval) windowNumber:(NSInteger) context:(NSGraphicsContext*) subtype:(short) data1:(NSInteger) data2:(NSInteger)
type
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSEventTypepublic static NSPoint.ByValue mouseLocation()
+(NSPoint)mouseLocation
public static NSUInteger pressedMouseButtons()
+(NSUInteger)pressedMouseButtons
public static double doubleClickInterval()
+(NSTimeInterval)doubleClickInterval
public static double keyRepeatDelay()
+(NSTimeInterval)keyRepeatDelay
public static double keyRepeatInterval()
+(NSTimeInterval)keyRepeatInterval
public static NSEvent alloc()
public static NSEvent new_()
public static NSEvent._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |