Mercurial > projects > doodle
view dia/grid_layer.d @ 26:06c30d250c0a
Cleanup
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Thu, 16 Jul 2009 00:12:02 +0930 |
parents | a24c13bb9c98 |
children | f3d91579bb28 |
line wrap: on
line source
module dia.grid_layer; public { import dia.icanvas; } private { import 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 { } }