Mercurial > projects > doodle
view dia/grid_layer.d @ 27:f3d91579bb28
Checkpoint
author | David Bryant <daveb@acres.com.au> |
---|---|
date | Wed, 29 Jul 2009 14:11:35 +0930 |
parents | 06c30d250c0a |
children |
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 { } }