Mercurial > projects > doodle
view doodle/dia/grid_layer.d @ 34:c2f11e1d7470
Geometry cleanup and checkpoint.
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 15:32:12 +0930 |
parents | 1754cb773d41 |
children | 3f6bb0bb22dc |
line wrap: on
line source
module doodle.dia.grid_layer; public { import doodle.dia.icanvas; } private { import doodle.cairo.routines; import std.math; } interface Grid { //void zoom_changed(); } 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 { } }