comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e907d2c54ec3
1 module presentation.types;
2
3 final class Point {
4 this() {
5 _x = 0;
6 _y = 0;
7 }
8
9 this(double x, double y) {
10 _x = x;
11 _y = y;
12 }
13
14 private {
15 double _x;
16 double _y;
17 }
18 }
19
20 final class Dimension {
21 this() {
22 _width = 0;
23 _height = 0;
24 }
25
26 this(double width, double height) {
27 _width = width;
28 _height = height;
29 }
30
31 private {
32 double _width;
33 double _height;
34 }
35 }