diff options
author | Felipe Heidrich | 2009-06-30 22:00:12 +0000 |
---|---|---|
committer | Felipe Heidrich | 2009-06-30 22:00:12 +0000 |
commit | f664d297f7bb009784868bf3fcf0b3e3bb9a646b (patch) | |
tree | 54012fe4929893eef4891c88cbbf5841272ff433 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java | |
parent | bc18a5e014088ce811f09c603b88361094486062 (diff) | |
download | eclipse.platform.swt-f664d297f7bb009784868bf3fcf0b3e3bb9a646b.tar.gz eclipse.platform.swt-f664d297f7bb009784868bf3fcf0b3e3bb9a646b.tar.xz eclipse.platform.swt-f664d297f7bb009784868bf3fcf0b3e3bb9a646b.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java | 100 |
1 files changed, 0 insertions, 100 deletions
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 deleted file mode 100644 index 87921bd505..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2009 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 NSEvent extends NSObject { - -public NSEvent() { - super(); -} - -public NSEvent(int /*long*/ id) { - super(id); -} - -public NSEvent(id id) { - super(id); -} - -public int /*long*/ CGEvent() { - return OS.objc_msgSend(this.id, OS.sel_CGEvent); -} - -public int /*long*/ buttonNumber() { - return OS.objc_msgSend(this.id, OS.sel_buttonNumber); -} - -public NSString characters() { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_characters); - return result != 0 ? new NSString(result) : null; -} - -public NSString charactersIgnoringModifiers() { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_charactersIgnoringModifiers); - return result != 0 ? new NSString(result) : null; -} - -public int /*long*/ clickCount() { - return OS.objc_msgSend(this.id, OS.sel_clickCount); -} - -public float /*double*/ deltaX() { - return (float)OS.objc_msgSend_fpret(this.id, OS.sel_deltaX); -} - -public float /*double*/ deltaY() { - return (float)OS.objc_msgSend_fpret(this.id, OS.sel_deltaY); -} - -public static NSEvent enterExitEventWithType(int /*long*/ type, NSPoint location, int /*long*/ flags, double time, int /*long*/ wNum, NSGraphicsContext context, int /*long*/ eNum, int /*long*/ tNum, int /*long*/ data) { - int /*long*/ result = OS.objc_msgSend(OS.class_NSEvent, OS.sel_enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData_, type, location, flags, time, wNum, context != null ? context.id : 0, eNum, tNum, data); - return result != 0 ? new NSEvent(result) : null; -} - -public short keyCode() { - return (short)OS.objc_msgSend(this.id, OS.sel_keyCode); -} - -public NSPoint locationInWindow() { - NSPoint result = new NSPoint(); - OS.objc_msgSend_stret(result, this.id, OS.sel_locationInWindow); - return result; -} - -public int /*long*/ modifierFlags() { - return OS.objc_msgSend(this.id, OS.sel_modifierFlags); -} - -public static NSPoint mouseLocation() { - NSPoint result = new NSPoint(); - OS.objc_msgSend_stret(result, OS.class_NSEvent, OS.sel_mouseLocation); - return result; -} - -public static NSEvent otherEventWithType(int /*long*/ type, NSPoint location, int /*long*/ flags, double time, int /*long*/ wNum, NSGraphicsContext context, short subtype, int /*long*/ d1, int /*long*/ d2) { - int /*long*/ result = OS.objc_msgSend(OS.class_NSEvent, OS.sel_otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_, type, location, flags, time, wNum, context != null ? context.id : 0, subtype, d1, d2); - return result != 0 ? new NSEvent(result) : null; -} - -public double timestamp() { - return OS.objc_msgSend_fpret(this.id, OS.sel_timestamp); -} - -public int /*long*/ type() { - return OS.objc_msgSend(this.id, OS.sel_type); -} - -public NSWindow window() { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_window); - return result != 0 ? new NSWindow(result) : null; -} - -} |