Mercurial > projects > doodle
comparison doodle/cairo/routines.d @ 38:452915ecd1f4
Basic logging functionality
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Sun, 27 Sep 2009 22:51:03 +0930 |
parents | 3f6bb0bb22dc |
children | 1f97022e5c6d |
comparison
equal
deleted
inserted
replaced
37:bc0035393a81 | 38:452915ecd1f4 |
---|---|
12 | 12 |
13 void line(scope Context cr, in double x0, in double y0, in double x1, in double y1) { | 13 void line(scope Context cr, in double x0, in double y0, in double x1, in double y1) { |
14 cr.moveTo(x0, y0); | 14 cr.moveTo(x0, y0); |
15 cr.lineTo(x1, y1); | 15 cr.lineTo(x1, y1); |
16 } | 16 } |
17 | |
18 // Horizontal line | |
19 void hline(scope Context cr, in double y, double x0, double x1) { | |
20 cr.moveTo(x0, y); | |
21 cr.lineTo(x1, y); | |
22 } | |
23 | |
24 // Vertical line | |
25 void vline(scope Context cr, in double x, double y0, double y1) { | |
26 cr.moveTo(x, y0); | |
27 cr.lineTo(x, y1); | |
28 } |