diff doodle/dia/grid_layer.d @ 28:1754cb773d41

Part-way through getting to compile with configure/builder.
author Graham St Jack <graham.stjack@internode.on.net>
date Sun, 02 Aug 2009 16:27:21 +0930
parents dia/grid_layer.d@f3d91579bb28
children c2f11e1d7470
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doodle/dia/grid_layer.d	Sun Aug 02 16:27:21 2009 +0930
@@ -0,0 +1,35 @@
+module doodle.dia.grid_layer;
+
+public {
+    import doodle.dia.icanvas;
+}
+
+private {
+    import doodle.cairo.routines;
+    import std.math;
+}
+
+interface Grid {
+}
+
+class GridLayer : Layer, Grid {
+    this(in string name) {
+        super(name);
+    }
+
+    override Rectangle bounds() const {
+        // We don't require any geometry
+        return Rectangle();
+    }
+
+    override void draw(in Viewport viewport,
+                       in Rectangle pixel_damage, scope Context pixel_cr,
+                       in Rectangle model_damage, scope Context model_cr) const {
+        //double zoom = viewport.zoom;
+
+        //double start_x = modf(damage.min_corner.x, zoom);
+    }
+
+    private {
+    }
+}