changeset 25:060cdd4457aa

Ported dwt.widgets.Scrollable
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Mon, 08 Sep 2008 17:44:31 +0200
parents d4399516bdc2
children 74a3be48bba8
files dwt/widgets/Scrollable.d
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/widgets/Scrollable.d	Mon Sep 08 17:41:09 2008 +0200
+++ b/dwt/widgets/Scrollable.d	Mon Sep 08 17:44:31 2008 +0200
@@ -7,11 +7,12 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     
+ * Port to the D programming language:
+ *     Jacob Carlborg <jacob.carlborg@gmail.com>
  *******************************************************************************/
 module dwt.widgets.Scrollable;
 
-import dwt.dwthelper.utils;
-
 
 import dwt.DWT;
 import dwt.DWTException;
@@ -24,6 +25,13 @@
 import dwt.internal.cocoa.OS;
 import dwt.internal.cocoa.SWTScrollView;
 
+import dwt.dwthelper.utils;
+import dwt.widgets.Composite;
+import dwt.widgets.Control;
+import dwt.widgets.Display;
+import dwt.widgets.ScrollBar;
+import dwt.widgets.Widget;
+
 /**
  * This class is the abstract superclass of all classes which
  * represent controls that have standard scroll bars.
@@ -109,7 +117,7 @@
 public Rectangle computeTrim (int x, int y, int width, int height) {
     checkWidget();
     if (scrollView !is null) {
-        NSSize size = new NSSize();
+        NSSize size = NSSize();
         size.width = width;
         size.height = height;
         int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;