comparison doodle/gtk/cairo_renderer.d @ 89:467febed7367

* Ignore excre * Some tentative work in grid_layer.d * Give the ScreenModel to all the layers. This needs refinement. * A stroke wouldn't hurt occasionally in cairo_renderer.d
author David Bryant <bagnose@gmail.com>
date Thu, 19 Aug 2010 00:19:42 +0930
parents cdd4fc728d94
children bc5baa585b32
comparison
equal deleted inserted replaced
88:100dd23c7bdf 89:467febed7367
62 } 62 }
63 63
64 void drawVLine(in double x, in double y0, in double y1) { 64 void drawVLine(in double x, in double y0, in double y1) {
65 _cr.moveTo(x, y0); 65 _cr.moveTo(x, y0);
66 _cr.lineTo(x, y1); 66 _cr.lineTo(x, y1);
67 _cr.stroke;
67 } 68 }
68 69
69 void drawPoly(in Point[] points, bool fill = false) { 70 void drawPoly(in Point[] points, bool fill = false) {
70 assert(points.length >= 2); 71 assert(points.length >= 2);
71 foreach(i, p; points) { 72 foreach(i, p; points) {