diff doodle/gtk/cairo.d @ 73:6f2525e170f2

Cairo/OpenGL checkpoint
author "David Bryant <bagnose@gmail.com>"
date Sun, 15 Aug 2010 01:02:15 +0930
parents
children 78bc2046256e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doodle/gtk/cairo.d	Sun Aug 15 01:02:15 2010 +0930
@@ -0,0 +1,28 @@
+module doodle.gtk.cairo;
+
+public {
+    import doodle.tk.drawing;
+}
+
+/*
+final class CairoDrawing : Drawing {
+    this(Context cr) {
+        assert(cr);
+        _cr = cr;
+    }
+
+    // Drawing overrides:
+
+    void pushState() {
+        _cr.save;
+    }
+
+    void popState() {
+        _cr.restore;
+    }
+
+    private {
+        Context _cr;
+    }
+}
+*/