diff 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
line wrap: on
line diff
--- a/doodle/cairo/routines.d	Sun Aug 30 23:39:04 2009 +0930
+++ b/doodle/cairo/routines.d	Sun Sep 27 22:51:03 2009 +0930
@@ -14,3 +14,15 @@
     cr.moveTo(x0, y0);
     cr.lineTo(x1, y1);
 }
+
+// Horizontal line
+void hline(scope Context cr, in double y, double x0, double x1) {
+    cr.moveTo(x0, y);
+    cr.lineTo(x1, y);
+}
+
+// Vertical line
+void vline(scope Context cr, in double x, double y0, double y1) {
+    cr.moveTo(x, y0);
+    cr.lineTo(x, y1);
+}