Mercurial > projects > doodle
view grid_layer.d @ 12:a093c4fbdd43
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sun, 12 Jul 2009 00:39:35 +0930 |
parents | fb571a3b1f0d |
children | 9e63308b749c |
line wrap: on
line source
import icanvas; import tk.geometry; import cairo.Context; import cairo_support; import std.math; interface Grid { } class GridLayer : Layer, Grid { override Rectangle bounds() const { // We don't require any geometry return Rectangle(); } override void draw(const Viewport viewport, in Rectangle damage, Context model_cr, Context screen_cr) const { double zoom = viewport.zoom; double start_x = modf(damage.min_corner.x, zoom); } private { } }