Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java36
1 files changed, 15 insertions, 21 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java
index 3960fb5d21..4eaf555265 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -19,7 +19,7 @@ public NSCursor() {
super();
}
-public NSCursor(long /*int*/ id) {
+public NSCursor(long id) {
super(id);
}
@@ -28,43 +28,37 @@ public NSCursor(id id) {
}
public static NSCursor IBeamCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_IBeamCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_IBeamCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor arrowCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_arrowCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_arrowCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor crosshairCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_crosshairCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_crosshairCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor currentCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_currentCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_currentCursor);
return result != 0 ? new NSCursor(result) : null;
}
-public NSPoint hotSpot() {
- NSPoint result = new NSPoint();
- OS.objc_msgSend_stret(result, this.id, OS.sel_hotSpot);
- return result;
-}
-
public NSCursor initWithImage(NSImage newImage, NSPoint aPoint) {
- long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithImage_hotSpot_, newImage != null ? newImage.id : 0, aPoint);
+ long result = OS.objc_msgSend(this.id, OS.sel_initWithImage_hotSpot_, newImage != null ? newImage.id : 0, aPoint);
return result == this.id ? this : (result != 0 ? new NSCursor(result) : null);
}
public static NSCursor operationNotAllowedCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_operationNotAllowedCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_operationNotAllowedCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor pointingHandCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_pointingHandCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_pointingHandCursor);
return result != 0 ? new NSCursor(result) : null;
}
@@ -77,32 +71,32 @@ public void push() {
}
public static NSCursor resizeDownCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeDownCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeDownCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor resizeLeftCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeLeftCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeLeftCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor resizeLeftRightCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeLeftRightCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeLeftRightCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor resizeRightCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeRightCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeRightCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor resizeUpCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeUpCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeUpCursor);
return result != 0 ? new NSCursor(result) : null;
}
public static NSCursor resizeUpDownCursor() {
- long /*int*/ result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeUpDownCursor);
+ long result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeUpDownCursor);
return result != 0 ? new NSCursor(result) : null;
}

Back to the top