diff options
author | Scott Kovatch | 2010-12-20 23:59:29 +0000 |
---|---|---|
committer | Scott Kovatch | 2010-12-20 23:59:29 +0000 |
commit | 01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca (patch) | |
tree | 8a6bc68606cc831505d15b3e606097048ba1b73e /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt | |
parent | 46958a15f43936733bc819b97c827c339d68bc9e (diff) | |
download | eclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.tar.gz eclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.tar.xz eclipse.platform.swt-01725ae6a7a6992a9a2b62746d985a9d4dbdb4ca.zip |
279884 - implement Mac portion of gesture support, and add stubs for all other platforms.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt')
8 files changed, 240 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index bc7e0cdc68..612400a52d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -1258,6 +1258,9 @@ <method selector="locationInWindow" swt_gen="true"> <retval swt_gen="true"></retval> </method> + <method selector="magnification" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> <method selector="modifierFlags" swt_gen="true"> <retval swt_gen="true"></retval> </method> @@ -1276,9 +1279,17 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="rotation" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> <method selector="timestamp" swt_gen="true"> <retval swt_gen="true"></retval> </method> + <method selector="touchesMatchingPhase:inView:" swt_gen="true"> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="type" swt_gen="true"> <retval swt_gen="true"></retval> </method> @@ -2510,6 +2521,10 @@ <method selector="becomeFirstResponder" swt_gen="true"> <retval swt_gen="true"></retval> </method> + <method selector="beginGestureWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="cancelOperation:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -2522,6 +2537,10 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="endGestureWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="flagsChanged:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -2546,6 +2565,10 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="magnifyWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="mouseDown:" swt_gen="true" swt_gen_super_msgSend="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -2625,10 +2648,34 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="rotateWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="scrollWheel:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="swipeWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> + <method selector="touchesBeganWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> + <method selector="touchesCancelledWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> + <method selector="touchesEndedWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> + <method selector="touchesMovedWithEvent:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="validRequestorForSendType:returnType:" swt_gen="true"> <arg swt_gen="true"></arg> <arg swt_gen="true"></arg> @@ -3707,6 +3754,23 @@ </class> <class name="NSToolbarItemGroup" swt_superclass="NSToolbarItem"> </class> + <class name="NSTouch" swt_gen="true"> + <method selector="device" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> + <method selector="deviceSize" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> + <method selector="isResting" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> + <method selector="normalizedPosition" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> + <method selector="phase" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> + </class> <class name="NSTrackingArea" swt_gen="mixed"> <method selector="initWithRect:options:owner:userInfo:" swt_gen="true"> <arg swt_gen="true"></arg> @@ -3931,6 +3995,10 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="setAcceptsTouchEvents:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="setAutoresizesSubviews:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -3975,6 +4043,10 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="setWantsRestingTouches:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="shouldDelayWindowOrderingForEvent:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -4614,6 +4686,12 @@ <enum name="NSDragOperationNone" swt_gen="true"></enum> <enum name="NSEnterCharacter" swt_gen="true"></enum> <enum name="NSEvenOddWindingRule" swt_gen="true"></enum> + <enum name="NSEventTypeBeginGesture" swt_gen="true"></enum> + <enum name="NSEventTypeEndGesture" swt_gen="true"></enum> + <enum name="NSEventTypeGesture" swt_gen="true"></enum> + <enum name="NSEventTypeMagnify" swt_gen="true"></enum> + <enum name="NSEventTypeRotate" swt_gen="true"></enum> + <enum name="NSEventTypeSwipe" swt_gen="true"></enum> <enum name="NSFileHandlingPanelOKButton" swt_gen="true"></enum> <enum name="NSFlagsChanged" swt_gen="true"></enum> <enum name="NSFocusRingTypeNone" swt_gen="true"></enum> @@ -4733,6 +4811,14 @@ <enum name="NSTextFieldDatePickerStyle" swt_gen="true"></enum> <enum name="NSTitledWindowMask" swt_gen="true"></enum> <enum name="NSToolbarDisplayModeIconOnly" swt_gen="true"></enum> + <enum name="NSTouchEventSubtype" swt_gen="true"></enum> + <enum name="NSTouchPhaseAny" swt_gen="true"></enum> + <enum name="NSTouchPhaseBegan" swt_gen="true"></enum> + <enum name="NSTouchPhaseCancelled" swt_gen="true"></enum> + <enum name="NSTouchPhaseEnded" swt_gen="true"></enum> + <enum name="NSTouchPhaseMoved" swt_gen="true"></enum> + <enum name="NSTouchPhaseStationary" swt_gen="true"></enum> + <enum name="NSTouchPhaseTouching" swt_gen="true"></enum> <enum name="NSUnderlineStyleDouble" swt_gen="true"></enum> <enum name="NSUnderlineStyleNone" swt_gen="true"></enum> <enum name="NSUnderlineStyleSingle" swt_gen="true"></enum> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras index e9ff1404b4..40abd86d57 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras @@ -767,6 +767,9 @@ <class name="NSScriptClassDescription" swt_superclass="NSClassDescription"> </class> <class name="NSSet" swt_gen="mixed"> + <method selector="allObjects" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> <method selector="count" swt_gen="true"> <retval swt_gen="true"></retval> </method> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java index 60310a78b5..e052654998 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java @@ -69,6 +69,10 @@ public NSPoint locationInWindow() { return result; } +public float /*double*/ magnification() { + return (float)OS.objc_msgSend_fpret(this.id, OS.sel_magnification); +} + public int /*long*/ modifierFlags() { return OS.objc_msgSend(this.id, OS.sel_modifierFlags); } @@ -84,10 +88,19 @@ public static NSEvent otherEventWithType(int /*long*/ type, NSPoint location, in return result != 0 ? new NSEvent(result) : null; } +public float rotation() { + return (float)OS.objc_msgSend_fpret(this.id, OS.sel_rotation); +} + public double timestamp() { return OS.objc_msgSend_fpret(this.id, OS.sel_timestamp); } +public NSSet touchesMatchingPhase(int /*long*/ phase, NSView view) { + int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_touchesMatchingPhase_inView_, phase, view != null ? view.id : 0); + return result != 0 ? new NSSet(result) : null; +} + public int /*long*/ type() { return OS.objc_msgSend(this.id, OS.sel_type); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSResponder.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSResponder.java index bd48607141..94575b595b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSResponder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSResponder.java @@ -32,6 +32,10 @@ public boolean becomeFirstResponder() { return OS.objc_msgSend_bool(this.id, OS.sel_becomeFirstResponder); } +public void beginGestureWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_beginGestureWithEvent_, event != null ? event.id : 0); +} + public void cancelOperation(id sender) { OS.objc_msgSend(this.id, OS.sel_cancelOperation_, sender != null ? sender.id : 0); } @@ -44,6 +48,10 @@ public void doCommandBySelector(int /*long*/ aSelector) { OS.objc_msgSend(this.id, OS.sel_doCommandBySelector_, aSelector); } +public void endGestureWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_endGestureWithEvent_, event != null ? event.id : 0); +} + public void flagsChanged(NSEvent theEvent) { OS.objc_msgSend(this.id, OS.sel_flagsChanged_, theEvent != null ? theEvent.id : 0); } @@ -68,6 +76,10 @@ public void keyUp(NSEvent theEvent) { OS.objc_msgSend(this.id, OS.sel_keyUp_, theEvent != null ? theEvent.id : 0); } +public void magnifyWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_magnifyWithEvent_, event != null ? event.id : 0); +} + public void mouseDown(NSEvent theEvent) { OS.objc_msgSend(this.id, OS.sel_mouseDown_, theEvent != null ? theEvent.id : 0); } @@ -148,10 +160,34 @@ public void rightMouseUp(NSEvent theEvent) { OS.objc_msgSend(this.id, OS.sel_rightMouseUp_, theEvent != null ? theEvent.id : 0); } +public void rotateWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_rotateWithEvent_, event != null ? event.id : 0); +} + public void scrollWheel(NSEvent theEvent) { OS.objc_msgSend(this.id, OS.sel_scrollWheel_, theEvent != null ? theEvent.id : 0); } +public void swipeWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_swipeWithEvent_, event != null ? event.id : 0); +} + +public void touchesBeganWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_touchesBeganWithEvent_, event != null ? event.id : 0); +} + +public void touchesCancelledWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_touchesCancelledWithEvent_, event != null ? event.id : 0); +} + +public void touchesEndedWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_touchesEndedWithEvent_, event != null ? event.id : 0); +} + +public void touchesMovedWithEvent(NSEvent event) { + OS.objc_msgSend(this.id, OS.sel_touchesMovedWithEvent_, event != null ? event.id : 0); +} + public id validRequestorForSendType(NSString sendType, NSString returnType) { int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_validRequestorForSendType_returnType_, sendType != null ? sendType.id : 0, returnType != null ? returnType.id : 0); return result != 0 ? new id(result) : null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSet.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSet.java index ed6afccfe8..998b521d88 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSet.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSet.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -24,6 +24,11 @@ public NSSet(id id) { super(id); } +public NSArray allObjects() { + int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_allObjects); + return result != 0 ? new NSArray(result) : null; +} + public int /*long*/ count() { return OS.objc_msgSend(this.id, OS.sel_count); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTouch.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTouch.java new file mode 100644 index 0000000000..891805f75c --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTouch.java @@ -0,0 +1,52 @@ +/******************************************************************************* + * Copyright (c) 2000, 2010 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.internal.cocoa; + +public class NSTouch extends NSObject { + +public NSTouch() { + super(); +} + +public NSTouch(int /*long*/ id) { + super(id); +} + +public NSTouch(id id) { + super(id); +} + +public id device() { + int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_device); + return result != 0 ? new id(result) : null; +} + +public NSSize deviceSize() { + NSSize result = new NSSize(); + OS.objc_msgSend_stret(result, this.id, OS.sel_deviceSize); + return result; +} + +public boolean isResting() { + return OS.objc_msgSend_bool(this.id, OS.sel_isResting); +} + +public NSPoint normalizedPosition() { + NSPoint result = new NSPoint(); + OS.objc_msgSend_stret(result, this.id, OS.sel_normalizedPosition); + return result; +} + +public int /*long*/ phase() { + return OS.objc_msgSend(this.id, OS.sel_phase); +} + +} diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java index 7292c4c9cc..6d900bbdf3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java @@ -239,6 +239,10 @@ public boolean scrollRectToVisible(NSRect aRect) { return OS.objc_msgSend_bool(this.id, OS.sel_scrollRectToVisible_, aRect); } +public void setAcceptsTouchEvents(boolean flag) { + OS.objc_msgSend(this.id, OS.sel_setAcceptsTouchEvents_, flag); +} + public void setAutoresizesSubviews(boolean flag) { OS.objc_msgSend(this.id, OS.sel_setAutoresizesSubviews_, flag); } @@ -283,6 +287,10 @@ public void setToolTip(NSString string) { OS.objc_msgSend(this.id, OS.sel_setToolTip_, string != null ? string.id : 0); } +public void setWantsRestingTouches(boolean flag) { + OS.objc_msgSend(this.id, OS.sel_setWantsRestingTouches_, flag); +} + public boolean shouldDelayWindowOrderingForEvent(NSEvent theEvent) { return OS.objc_msgSend_bool(this.id, OS.sel_shouldDelayWindowOrderingForEvent_, theEvent != null ? theEvent.id : 0); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index c6fe06a07f..def4d9b737 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -67,7 +67,7 @@ public class OS extends C { public static final int kPMDuplexNoTumble = 0x0002; public static final int kPMDuplexTumble = 0x0003; - + public static final int /*long*/ sel_identity = sel_registerName("identity"); public static final int /*long*/ sel_sendSearchSelection = sel_registerName("sendSearchSelection"); public static final int /*long*/ sel_sendCancelSelection = sel_registerName("sendCancelSelection"); public static final int /*long*/ sel_sendSelection = sel_registerName("sendSelection"); @@ -787,6 +787,7 @@ public static final int /*long*/ class_NSTimeZone = objc_getClass("NSTimeZone"); public static final int /*long*/ class_NSTimer = objc_getClass("NSTimer"); public static final int /*long*/ class_NSToolbar = objc_getClass("NSToolbar"); public static final int /*long*/ class_NSToolbarItem = objc_getClass("NSToolbarItem"); +public static final int /*long*/ class_NSTouch = objc_getClass("NSTouch"); public static final int /*long*/ class_NSTrackingArea = objc_getClass("NSTrackingArea"); public static final int /*long*/ class_NSTypesetter = objc_getClass("NSTypesetter"); public static final int /*long*/ class_NSURL = objc_getClass("NSURL"); @@ -904,6 +905,7 @@ public static final int /*long*/ sel_addToolTipRect_owner_userData_ = sel_regist public static final int /*long*/ sel_addTypes_owner_ = sel_registerName("addTypes:owner:"); public static final int /*long*/ sel_alignment = sel_registerName("alignment"); public static final int /*long*/ sel_allKeys = sel_registerName("allKeys"); +public static final int /*long*/ sel_allObjects = sel_registerName("allObjects"); public static final int /*long*/ sel_alloc = sel_registerName("alloc"); public static final int /*long*/ sel_allowsColumnReordering = sel_registerName("allowsColumnReordering"); public static final int /*long*/ sel_allowsFloats = sel_registerName("allowsFloats"); @@ -958,6 +960,7 @@ public static final int /*long*/ sel_becomeFirstResponder = sel_registerName("be public static final int /*long*/ sel_becomeKeyWindow = sel_registerName("becomeKeyWindow"); public static final int /*long*/ sel_beginDocument = sel_registerName("beginDocument"); public static final int /*long*/ sel_beginEditing = sel_registerName("beginEditing"); +public static final int /*long*/ sel_beginGestureWithEvent_ = sel_registerName("beginGestureWithEvent:"); public static final int /*long*/ sel_beginPageInRect_atPlacement_ = sel_registerName("beginPageInRect:atPlacement:"); public static final int /*long*/ sel_beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo_ = sel_registerName("beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:"); public static final int /*long*/ sel_beginSheetForWindow_modalDelegate_didEndSelector_contextInfo_trust_message_ = sel_registerName("beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:trust:message:"); @@ -1137,7 +1140,9 @@ public static final int /*long*/ sel_deselectItemAtIndex_ = sel_registerName("de public static final int /*long*/ sel_deselectRow_ = sel_registerName("deselectRow:"); public static final int /*long*/ sel_destroyContext = sel_registerName("destroyContext"); public static final int /*long*/ sel_detail = sel_registerName("detail"); +public static final int /*long*/ sel_device = sel_registerName("device"); public static final int /*long*/ sel_deviceDescription = sel_registerName("deviceDescription"); +public static final int /*long*/ sel_deviceSize = sel_registerName("deviceSize"); public static final int /*long*/ sel_dictionary = sel_registerName("dictionary"); public static final int /*long*/ sel_dictionaryWithCapacity_ = sel_registerName("dictionaryWithCapacity:"); public static final int /*long*/ sel_dictionaryWithObject_forKey_ = sel_registerName("dictionaryWithObject:forKey:"); @@ -1202,6 +1207,7 @@ public static final int /*long*/ sel_enableFreedObjectCheck_ = sel_registerName( public static final int /*long*/ sel_endDocument = sel_registerName("endDocument"); public static final int /*long*/ sel_endEditing = sel_registerName("endEditing"); public static final int /*long*/ sel_endEditingFor_ = sel_registerName("endEditingFor:"); +public static final int /*long*/ sel_endGestureWithEvent_ = sel_registerName("endGestureWithEvent:"); public static final int /*long*/ sel_endPage = sel_registerName("endPage"); public static final int /*long*/ sel_endSheet_returnCode_ = sel_registerName("endSheet:returnCode:"); public static final int /*long*/ sel_enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData_ = sel_registerName("enterExitEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:trackingNumber:userData:"); @@ -1374,6 +1380,7 @@ public static final int /*long*/ sel_isMainWindow = sel_registerName("isMainWind public static final int /*long*/ sel_isMiniaturized = sel_registerName("isMiniaturized"); public static final int /*long*/ sel_isOpaque = sel_registerName("isOpaque"); public static final int /*long*/ sel_isPlanar = sel_registerName("isPlanar"); +public static final int /*long*/ sel_isResting = sel_registerName("isResting"); public static final int /*long*/ sel_isRowSelected_ = sel_registerName("isRowSelected:"); public static final int /*long*/ sel_isRunning = sel_registerName("isRunning"); public static final int /*long*/ sel_isSessionOnly = sel_registerName("isSessionOnly"); @@ -1413,6 +1420,8 @@ public static final int /*long*/ sel_locationForGlyphAtIndex_ = sel_registerName public static final int /*long*/ sel_locationInWindow = sel_registerName("locationInWindow"); public static final int /*long*/ sel_lockFocus = sel_registerName("lockFocus"); public static final int /*long*/ sel_lowercaseString = sel_registerName("lowercaseString"); +public static final int /*long*/ sel_magnification = sel_registerName("magnification"); +public static final int /*long*/ sel_magnifyWithEvent_ = sel_registerName("magnifyWithEvent:"); public static final int /*long*/ sel_mainBundle = sel_registerName("mainBundle"); public static final int /*long*/ sel_mainFrame = sel_registerName("mainFrame"); public static final int /*long*/ sel_mainMenu = sel_registerName("mainMenu"); @@ -1469,6 +1478,7 @@ public static final int /*long*/ sel_nextObject = sel_registerName("nextObject") public static final int /*long*/ sel_nextState = sel_registerName("nextState"); public static final int /*long*/ sel_nextWordFromIndex_forward_ = sel_registerName("nextWordFromIndex:forward:"); public static final int /*long*/ sel_noResponderFor_ = sel_registerName("noResponderFor:"); +public static final int /*long*/ sel_normalizedPosition = sel_registerName("normalizedPosition"); public static final int /*long*/ sel_noteNumberOfRowsChanged = sel_registerName("noteNumberOfRowsChanged"); public static final int /*long*/ sel_numberOfColumns = sel_registerName("numberOfColumns"); public static final int /*long*/ sel_numberOfComponents = sel_registerName("numberOfComponents"); @@ -1548,6 +1558,7 @@ public static final int /*long*/ sel_performDragOperation_ = sel_registerName("p public static final int /*long*/ sel_performKeyEquivalent_ = sel_registerName("performKeyEquivalent:"); public static final int /*long*/ sel_performSelector_withObject_afterDelay_inModes_ = sel_registerName("performSelector:withObject:afterDelay:inModes:"); public static final int /*long*/ sel_performSelectorOnMainThread_withObject_waitUntilDone_ = sel_registerName("performSelectorOnMainThread:withObject:waitUntilDone:"); +public static final int /*long*/ sel_phase = sel_registerName("phase"); public static final int /*long*/ sel_pixelsHigh = sel_registerName("pixelsHigh"); public static final int /*long*/ sel_pixelsWide = sel_registerName("pixelsWide"); public static final int /*long*/ sel_pointSize = sel_registerName("pointSize"); @@ -1636,6 +1647,8 @@ public static final int /*long*/ sel_rightMouseDown_ = sel_registerName("rightMo public static final int /*long*/ sel_rightMouseDragged_ = sel_registerName("rightMouseDragged:"); public static final int /*long*/ sel_rightMouseUp_ = sel_registerName("rightMouseUp:"); public static final int /*long*/ sel_rotateByDegrees_ = sel_registerName("rotateByDegrees:"); +public static final int /*long*/ sel_rotateWithEvent_ = sel_registerName("rotateWithEvent:"); +public static final int /*long*/ sel_rotation = sel_registerName("rotation"); public static final int /*long*/ sel_rowAtPoint_ = sel_registerName("rowAtPoint:"); public static final int /*long*/ sel_rowForItem_ = sel_registerName("rowForItem:"); public static final int /*long*/ sel_rowHeight = sel_registerName("rowHeight"); @@ -1692,6 +1705,7 @@ public static final int /*long*/ sel_sender = sel_registerName("sender"); public static final int /*long*/ sel_separatorItem = sel_registerName("separatorItem"); public static final int /*long*/ sel_set = sel_registerName("set"); public static final int /*long*/ sel_setAcceptsMouseMovedEvents_ = sel_registerName("setAcceptsMouseMovedEvents:"); +public static final int /*long*/ sel_setAcceptsTouchEvents_ = sel_registerName("setAcceptsTouchEvents:"); public static final int /*long*/ sel_setAccessoryView_ = sel_registerName("setAccessoryView:"); public static final int /*long*/ sel_setAction_ = sel_registerName("setAction:"); public static final int /*long*/ sel_setAlertStyle_ = sel_registerName("setAlertStyle:"); @@ -1946,6 +1960,7 @@ public static final int /*long*/ sel_setValueWraps_ = sel_registerName("setValue public static final int /*long*/ sel_setVerticalScroller_ = sel_registerName("setVerticalScroller:"); public static final int /*long*/ sel_setView_ = sel_registerName("setView:"); public static final int /*long*/ sel_setVisible_ = sel_registerName("setVisible:"); +public static final int /*long*/ sel_setWantsRestingTouches_ = sel_registerName("setWantsRestingTouches:"); public static final int /*long*/ sel_setWidth_ = sel_registerName("setWidth:"); public static final int /*long*/ sel_setWidth_forSegment_ = sel_registerName("setWidth:forSegment:"); public static final int /*long*/ sel_setWidthTracksTextView_ = sel_registerName("setWidthTracksTextView:"); @@ -2001,6 +2016,7 @@ public static final int /*long*/ sel_submenu = sel_registerName("submenu"); public static final int /*long*/ sel_subviews = sel_registerName("subviews"); public static final int /*long*/ sel_superclass = sel_registerName("superclass"); public static final int /*long*/ sel_superview = sel_registerName("superview"); +public static final int /*long*/ sel_swipeWithEvent_ = sel_registerName("swipeWithEvent:"); public static final int /*long*/ sel_systemFontOfSize_ = sel_registerName("systemFontOfSize:"); public static final int /*long*/ sel_systemFontSize = sel_registerName("systemFontSize"); public static final int /*long*/ sel_systemFontSizeForControlSize_ = sel_registerName("systemFontSizeForControlSize:"); @@ -2058,6 +2074,11 @@ public static final int /*long*/ sel_toolbarDefaultItemIdentifiers_ = sel_regist public static final int /*long*/ sel_toolbarDidRemoveItem_ = sel_registerName("toolbarDidRemoveItem:"); public static final int /*long*/ sel_toolbarSelectableItemIdentifiers_ = sel_registerName("toolbarSelectableItemIdentifiers:"); public static final int /*long*/ sel_toolbarWillAddItem_ = sel_registerName("toolbarWillAddItem:"); +public static final int /*long*/ sel_touchesBeganWithEvent_ = sel_registerName("touchesBeganWithEvent:"); +public static final int /*long*/ sel_touchesCancelledWithEvent_ = sel_registerName("touchesCancelledWithEvent:"); +public static final int /*long*/ sel_touchesEndedWithEvent_ = sel_registerName("touchesEndedWithEvent:"); +public static final int /*long*/ sel_touchesMatchingPhase_inView_ = sel_registerName("touchesMatchingPhase:inView:"); +public static final int /*long*/ sel_touchesMovedWithEvent_ = sel_registerName("touchesMovedWithEvent:"); public static final int /*long*/ sel_trackingAreas = sel_registerName("trackingAreas"); public static final int /*long*/ sel_traitsOfFont_ = sel_registerName("traitsOfFont:"); public static final int /*long*/ sel_transform = sel_registerName("transform"); @@ -2216,6 +2237,12 @@ public static final int NSDragOperationMove = 16; public static final int NSDragOperationNone = 0; public static final int NSEnterCharacter = 3; public static final int NSEvenOddWindingRule = 1; +public static final int NSEventTypeBeginGesture = 19; +public static final int NSEventTypeEndGesture = 20; +public static final int NSEventTypeGesture = 29; +public static final int NSEventTypeMagnify = 30; +public static final int NSEventTypeRotate = 18; +public static final int NSEventTypeSwipe = 31; public static final int NSFileHandlingPanelOKButton = 1; public static final int NSFlagsChanged = 12; public static final int NSFocusRingTypeNone = 1; @@ -2335,6 +2362,14 @@ public static final int NSTextFieldAndStepperDatePickerStyle = 0; public static final int NSTextFieldDatePickerStyle = 2; public static final int NSTitledWindowMask = 1; public static final int NSToolbarDisplayModeIconOnly = 2; +public static final int NSTouchEventSubtype = 3; +public static final int NSTouchPhaseAny = -1; +public static final int NSTouchPhaseBegan = 1; +public static final int NSTouchPhaseCancelled = 16; +public static final int NSTouchPhaseEnded = 8; +public static final int NSTouchPhaseMoved = 2; +public static final int NSTouchPhaseStationary = 4; +public static final int NSTouchPhaseTouching = 7; public static final int NSUnderlineStyleDouble = 9; public static final int NSUnderlineStyleNone = 0; public static final int NSUnderlineStyleSingle = 1; |