Mercurial > projects > doodle
view 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 source
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 { } }