Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2008-08-14 19:28:37 +0000
committerSilenio Quarti2008-08-14 19:28:37 +0000
commit82a169db2ad1731cac41b8c9102e1999ac7a1ef7 (patch)
tree8a2b6c88be7d0408b7405e29cc67a2f5fe42c381 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.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/NSClipView.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.java77
1 files changed, 4 insertions, 73 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.java
index 636b36fee9..0cd59063f8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSClipView.java
@@ -16,85 +16,16 @@ public NSClipView() {
super();
}
-public NSClipView(int id) {
+public NSClipView(int /*long*/ id) {
super(id);
}
-public boolean autoscroll(NSEvent theEvent) {
- return OS.objc_msgSend(this.id, OS.sel_autoscroll_1, theEvent != null ? theEvent.id : 0) != 0;
-}
-
-public NSColor backgroundColor() {
- int result = OS.objc_msgSend(this.id, OS.sel_backgroundColor);
- return result != 0 ? new NSColor(result) : null;
-}
-
-public NSPoint constrainScrollPoint(NSPoint newOrigin) {
- NSPoint result = new NSPoint();
- OS.objc_msgSend_stret(result, this.id, OS.sel_constrainScrollPoint_1, newOrigin);
- return result;
-}
-
-public boolean copiesOnScroll() {
- return OS.objc_msgSend(this.id, OS.sel_copiesOnScroll) != 0;
-}
-
-public NSCursor documentCursor() {
- int result = OS.objc_msgSend(this.id, OS.sel_documentCursor);
- return result != 0 ? new NSCursor(result) : null;
-}
-
-public NSRect documentRect() {
- NSRect result = new NSRect();
- OS.objc_msgSend_stret(result, this.id, OS.sel_documentRect);
- return result;
-}
-
-public id documentView() {
- int result = OS.objc_msgSend(this.id, OS.sel_documentView);
- return result != 0 ? new id(result) : null;
-}
-
-public NSRect documentVisibleRect() {
- NSRect result = new NSRect();
- OS.objc_msgSend_stret(result, this.id, OS.sel_documentVisibleRect);
- return result;
-}
-
-public boolean drawsBackground() {
- return OS.objc_msgSend(this.id, OS.sel_drawsBackground) != 0;
+public NSClipView(id id) {
+ super(id);
}
public void scrollToPoint(NSPoint newOrigin) {
- OS.objc_msgSend(this.id, OS.sel_scrollToPoint_1, newOrigin);
-}
-
-public void setBackgroundColor(NSColor color) {
- OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color != null ? color.id : 0);
-}
-
-public void setCopiesOnScroll(boolean flag) {
- OS.objc_msgSend(this.id, OS.sel_setCopiesOnScroll_1, flag);
-}
-
-public void setDocumentCursor(NSCursor anObj) {
- OS.objc_msgSend(this.id, OS.sel_setDocumentCursor_1, anObj != null ? anObj.id : 0);
-}
-
-public void setDocumentView(NSView aView) {
- OS.objc_msgSend(this.id, OS.sel_setDocumentView_1, aView != null ? aView.id : 0);
-}
-
-public void setDrawsBackground(boolean flag) {
- OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag);
-}
-
-public void viewBoundsChanged(NSNotification notification) {
- OS.objc_msgSend(this.id, OS.sel_viewBoundsChanged_1, notification != null ? notification.id : 0);
-}
-
-public void viewFrameChanged(NSNotification notification) {
- OS.objc_msgSend(this.id, OS.sel_viewFrameChanged_1, notification != null ? notification.id : 0);
+ OS.objc_msgSend(this.id, OS.sel_scrollToPoint_, newOrigin);
}
}

Back to the top