summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java56
1 files changed, 28 insertions, 28 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java
index 7cc9c9a87d..47a06c042d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFont.java
@@ -16,7 +16,7 @@ public NSFont() {
super();
}
-public NSFont(int /*long*/ id) {
+public NSFont(long /*int*/ id) {
super(id);
}
@@ -24,72 +24,72 @@ public NSFont(id id) {
super(id);
}
-public float /*double*/ ascender() {
- return (float /*double*/)OS.objc_msgSend_fpret(this.id, OS.sel_ascender);
+public double /*float*/ ascender() {
+ return (double /*float*/)OS.objc_msgSend_fpret(this.id, OS.sel_ascender);
}
-public static NSFont controlContentFontOfSize(float /*double*/ fontSize) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_controlContentFontOfSize_, fontSize);
+public static NSFont controlContentFontOfSize(double /*float*/ fontSize) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_controlContentFontOfSize_, fontSize);
return result != 0 ? new NSFont(result) : null;
}
-public float /*double*/ descender() {
- return (float /*double*/)OS.objc_msgSend_fpret(this.id, OS.sel_descender);
+public double /*float*/ descender() {
+ return (double /*float*/)OS.objc_msgSend_fpret(this.id, OS.sel_descender);
}
public NSString displayName() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_displayName);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_displayName);
return result != 0 ? new NSString(result) : null;
}
public NSString familyName() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_familyName);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_familyName);
return result != 0 ? new NSString(result) : null;
}
public NSString fontName() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_fontName);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_fontName);
return result != 0 ? new NSString(result) : null;
}
-public static NSFont fontWithName(NSString fontName, float /*double*/ fontSize) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_fontWithName_size_, fontName != null ? fontName.id : 0, fontSize);
+public static NSFont fontWithName(NSString fontName, double /*float*/ fontSize) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_fontWithName_size_, fontName != null ? fontName.id : 0, fontSize);
return result != 0 ? new NSFont(result) : null;
}
-public float /*double*/ leading() {
- return (float /*double*/)OS.objc_msgSend_fpret(this.id, OS.sel_leading);
+public double /*float*/ leading() {
+ return (double /*float*/)OS.objc_msgSend_fpret(this.id, OS.sel_leading);
}
-public static NSFont menuBarFontOfSize(float /*double*/ fontSize) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_menuBarFontOfSize_, fontSize);
+public static NSFont menuBarFontOfSize(double /*float*/ fontSize) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_menuBarFontOfSize_, fontSize);
return result != 0 ? new NSFont(result) : null;
}
-public static NSFont menuFontOfSize(float /*double*/ fontSize) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_menuFontOfSize_, fontSize);
+public static NSFont menuFontOfSize(double /*float*/ fontSize) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_menuFontOfSize_, fontSize);
return result != 0 ? new NSFont(result) : null;
}
-public float /*double*/ pointSize() {
- return (float /*double*/)OS.objc_msgSend_fpret(this.id, OS.sel_pointSize);
+public double /*float*/ pointSize() {
+ return (double /*float*/)OS.objc_msgSend_fpret(this.id, OS.sel_pointSize);
}
-public static float /*double*/ smallSystemFontSize() {
- return (float /*double*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_smallSystemFontSize);
+public static double /*float*/ smallSystemFontSize() {
+ return (double /*float*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_smallSystemFontSize);
}
-public static NSFont systemFontOfSize(float /*double*/ fontSize) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_systemFontOfSize_, fontSize);
+public static NSFont systemFontOfSize(double /*float*/ fontSize) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSFont, OS.sel_systemFontOfSize_, fontSize);
return result != 0 ? new NSFont(result) : null;
}
-public static float /*double*/ systemFontSize() {
- return (float /*double*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_systemFontSize);
+public static double /*float*/ systemFontSize() {
+ return (double /*float*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_systemFontSize);
}
-public static float /*double*/ systemFontSizeForControlSize(int /*long*/ controlSize) {
- return (float /*double*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_systemFontSizeForControlSize_, controlSize);
+public static double /*float*/ systemFontSizeForControlSize(long /*int*/ controlSize) {
+ return (double /*float*/)OS.objc_msgSend_fpret(OS.class_NSFont, OS.sel_systemFontSizeForControlSize_, controlSize);
}
}