diff options
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-01-31 14:39:33 +0530 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-01-31 14:39:33 +0530 |
commit | 2a6c4451d9a0891362f45912ce416ce64990a08b (patch) | |
tree | ce1dd895ab834c42fbcb7e135bbf3f325be71995 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse | |
parent | 733bed1af9e71b9e41898b18193bf25558a590ee (diff) | |
download | eclipse.platform.swt-2a6c4451d9a0891362f45912ce416ce64990a08b.tar.gz eclipse.platform.swt-2a6c4451d9a0891362f45912ce416ce64990a08b.tar.xz eclipse.platform.swt-2a6c4451d9a0891362f45912ce416ce64990a08b.zip |
Bug 358022-Set text editor background to black, mouse
cursor becomes invisible
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCursor.java | 6 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java | 1 |
2 files changed, 7 insertions, 0 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 8dad7fa24b..d70c8bd49a 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 @@ -44,6 +44,12 @@ public static NSCursor 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) { int /*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); 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 979688a89a..1605efdf46 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 @@ -1311,6 +1311,7 @@ public static final int /*long*/ sel_highlightSelectionInClipRect_ = sel_registe public static final int /*long*/ sel_hitPart = sel_registerName("hitPart"); public static final int /*long*/ sel_hitTest_ = sel_registerName("hitTest:"); public static final int /*long*/ sel_hitTestForEvent_inRect_ofView_ = sel_registerName("hitTestForEvent:inRect:ofView:"); +public static final int /*long*/ sel_hotSpot = sel_registerName("hotSpot"); public static final int /*long*/ sel_host = sel_registerName("host"); public static final int /*long*/ sel_hourOfDay = sel_registerName("hourOfDay"); public static final int /*long*/ sel_iconForFile_ = sel_registerName("iconForFile:"); |