diff doodle/gtk/ruler.d @ 103:345fb56d89fc

Blind checkpoint
author David Bryant <bagnose@gmail.com>
date Thu, 18 Nov 2010 12:00:02 +1030
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doodle/gtk/ruler.d	Thu Nov 18 12:00:02 2010 +1030
@@ -0,0 +1,35 @@
+module doodle.gtk.ruler;
+
+/+
+public {
+    import gtk.DrawingArea;
+}
+
+private {
+}
+
+//
+// 
+
+class Ruler : DrawingArea {
+    this() {
+        addOnConfigure(&onConfigure);
+    }
+
+    void move(double base) {
+    }
+
+    private {
+        bool onExpose(GdkEventExpose * event, Widget widget) {
+        }
+
+        bool onConfigure(GdkEventConfigure * event, Widget widget) {
+            assert(widget is this);
+        }
+
+        double _min, _max;      // millimetres
+        bool _visible;
+        double _value;
+    }
+}
++/