view 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 source

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;
    }
}
+/