diff options
author | Silenio Quarti <silenio> | 2008-08-14 19:28:37 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-08-14 19:28:37 +0000 |
commit | 82a169db2ad1731cac41b8c9102e1999ac7a1ef7 (patch) | |
tree | 8a2b6c88be7d0408b7405e29cc67a2f5fe42c381 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java | |
parent | 00d9a929233cc0e4c7aa22a7ff5b7562dd581371 (diff) | |
download | eclipse.platform.swt-82a169db2ad1731cac41b8c9102e1999ac7a1ef7.tar.gz eclipse.platform.swt-82a169db2ad1731cac41b8c9102e1999ac7a1ef7.tar.xz eclipse.platform.swt-82a169db2ad1731cac41b8c9102e1999ac7a1ef7.zip |
211796 - Regenerate the PI ("Platform Interface") to better match cocoa
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java index 1fcce585df..0aab84a946 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java @@ -16,13 +16,12 @@ public NSScreen() { super(); } -public NSScreen(int id) { +public NSScreen(int /*long*/ id) { super(id); } -public static NSScreen deepestScreen() { - int result = OS.objc_msgSend(OS.class_NSScreen, OS.sel_deepestScreen); - return result != 0 ? new NSScreen(result) : null; +public NSScreen(id id) { + super(id); } public int depth() { @@ -50,14 +49,6 @@ public static NSArray screens() { return result != 0 ? new NSArray(result) : null; } -public int supportedWindowDepths() { - return OS.objc_msgSend(this.id, OS.sel_supportedWindowDepths); -} - -public float userSpaceScaleFactor() { - return (float)OS.objc_msgSend_fpret(this.id, OS.sel_userSpaceScaleFactor); -} - public NSRect visibleFrame() { NSRect result = new NSRect(); OS.objc_msgSend_stret(result, this.id, OS.sel_visibleFrame); |