diff import/types.d @ 0:e907d2c54ec3

Initial import
author David Bryant <daveb@acres.com.au>
date Wed, 13 May 2009 15:42:39 +0930
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/import/types.d	Wed May 13 15:42:39 2009 +0930
@@ -0,0 +1,35 @@
+module presentation.types;
+
+final class Point {
+    this() {
+        _x = 0;
+        _y = 0;
+    }
+
+    this(double x, double y) {
+        _x = x;
+        _y = y;
+    }
+
+    private {
+        double _x;
+        double _y;
+    }
+}
+
+final class Dimension {
+    this() {
+        _width = 0;
+        _height = 0;
+    }
+
+    this(double width, double height) {
+        _width = width;
+        _height = height;
+    }
+
+    private {
+        double _width;
+        double _height;
+    }
+}