view 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 source

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;
    }
}