Mercurial > projects > doodle
annotate 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 |
rev | line source |
---|---|
22 | 1 module dia.grid_layer; |
16
9e63308b749c
* Fix up public/private includes
David Bryant <daveb@acres.com.au>
parents:
12
diff
changeset
|
2 |
24 | 3 public { |
4 import dia.icanvas; | |
5 } | |
6 | |
7 private { | |
8 import cairo.routines; | |
9 import std.math; | |
10 } | |
11 | 11 |
12 interface Grid { | |
13 } | |
14 | |
15 class GridLayer : Layer, Grid { | |
24 | 16 this(in string name) { |
17 super(name); | |
18 } | |
19 | |
11 | 20 override Rectangle bounds() const { |
21 // We don't require any geometry | |
22 return Rectangle(); | |
23 } | |
24 | |
26 | 25 override void draw(in Viewport viewport, |
24 | 26 in Rectangle pixel_damage, scope Context pixel_cr, |
27 in Rectangle model_damage, scope Context model_cr) const { | |
27 | 28 //double zoom = viewport.zoom; |
11 | 29 |
24 | 30 //double start_x = modf(damage.min_corner.x, zoom); |
11 | 31 } |
32 | |
33 private { | |
34 } | |
35 } |