summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-08-14 19:28:37 +0000
committerSilenio Quarti <silenio>2008-08-14 19:28:37 +0000
commit82a169db2ad1731cac41b8c9102e1999ac7a1ef7 (patch)
tree8a2b6c88be7d0408b7405e29cc67a2f5fe42c381 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java
parent00d9a929233cc0e4c7aa22a7ff5b7562dd581371 (diff)
downloadeclipse.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/NSScroller.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java86
1 files changed, 4 insertions, 82 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java
index 9895dbe5df..3492309e60 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScroller.java
@@ -16,102 +16,24 @@ public NSScroller() {
super();
}
-public NSScroller(int id) {
+public NSScroller(int /*long*/ id) {
super(id);
}
-public int arrowsPosition() {
- return OS.objc_msgSend(this.id, OS.sel_arrowsPosition);
-}
-
-public void checkSpaceForParts() {
- OS.objc_msgSend(this.id, OS.sel_checkSpaceForParts);
-}
-
-public int controlSize() {
- return OS.objc_msgSend(this.id, OS.sel_controlSize);
-}
-
-public int controlTint() {
- return OS.objc_msgSend(this.id, OS.sel_controlTint);
-}
-
-public void drawArrow(int whichArrow, boolean flag) {
- OS.objc_msgSend(this.id, OS.sel_drawArrow_1highlight_1, whichArrow, flag);
-}
-
-public void drawKnob() {
- OS.objc_msgSend(this.id, OS.sel_drawKnob);
-}
-
-public void drawKnobSlotInRect(NSRect slotRect, boolean flag) {
- OS.objc_msgSend(this.id, OS.sel_drawKnobSlotInRect_1highlight_1, slotRect, flag);
-}
-
-public void drawParts() {
- OS.objc_msgSend(this.id, OS.sel_drawParts);
-}
-
-public void highlight(boolean flag) {
- OS.objc_msgSend(this.id, OS.sel_highlight_1, flag);
+public NSScroller(id id) {
+ super(id);
}
public int hitPart() {
return OS.objc_msgSend(this.id, OS.sel_hitPart);
}
-public float knobProportion() {
- return (float)OS.objc_msgSend_fpret(this.id, OS.sel_knobProportion);
-}
-
-public NSRect rectForPart(int partCode) {
- NSRect result = new NSRect();
- OS.objc_msgSend_stret(result, this.id, OS.sel_rectForPart_1, partCode);
- return result;
-}
-
public static float scrollerWidth() {
return (float)OS.objc_msgSend_fpret(OS.class_NSScroller, OS.sel_scrollerWidth);
}
-public static float scrollerWidthForControlSize(int controlSize) {
- return (float)OS.objc_msgSend_fpret(OS.class_NSScroller, OS.sel_scrollerWidthForControlSize_1, controlSize);
-}
-
-public void setArrowsPosition(int where) {
- OS.objc_msgSend(this.id, OS.sel_setArrowsPosition_1, where);
-}
-
-public void setControlSize(int controlSize) {
- OS.objc_msgSend(this.id, OS.sel_setControlSize_1, controlSize);
-}
-
-public void setControlTint(int controlTint) {
- OS.objc_msgSend(this.id, OS.sel_setControlTint_1, controlTint);
-}
-
public void setFloatValue(float aFloat, float proportion) {
- OS.objc_msgSend(this.id, OS.sel_setFloatValue_1knobProportion_1, aFloat, proportion);
-}
-
-public void setKnobProportion(float proportion) {
- OS.objc_msgSend(this.id, OS.sel_setKnobProportion_1, proportion);
-}
-
-public int testPart(NSPoint thePoint) {
- return OS.objc_msgSend(this.id, OS.sel_testPart_1, thePoint);
-}
-
-public void trackKnob(NSEvent theEvent) {
- OS.objc_msgSend(this.id, OS.sel_trackKnob_1, theEvent != null ? theEvent.id : 0);
-}
-
-public void trackScrollButtons(NSEvent theEvent) {
- OS.objc_msgSend(this.id, OS.sel_trackScrollButtons_1, theEvent != null ? theEvent.id : 0);
-}
-
-public int usableParts() {
- return OS.objc_msgSend(this.id, OS.sel_usableParts);
+ OS.objc_msgSend(this.id, OS.sel_setFloatValue_knobProportion_, aFloat, proportion);
}
}