comparison 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
comparison
equal deleted inserted replaced
102:d04c3fe1822c 103:345fb56d89fc
1 module doodle.gtk.ruler;
2
3 /+
4 public {
5 import gtk.DrawingArea;
6 }
7
8 private {
9 }
10
11 //
12 //
13
14 class Ruler : DrawingArea {
15 this() {
16 addOnConfigure(&onConfigure);
17 }
18
19 void move(double base) {
20 }
21
22 private {
23 bool onExpose(GdkEventExpose * event, Widget widget) {
24 }
25
26 bool onConfigure(GdkEventConfigure * event, Widget widget) {
27 assert(widget is this);
28 }
29
30 double _min, _max; // millimetres
31 bool _visible;
32 double _value;
33 }
34 }
35 +/