comparison icanvas.d @ 20:d6e7a5a6f008

Checkpoint
author "David Bryant <bagnose@gmail.com>"
date Wed, 15 Jul 2009 23:23:02 +0930
parents 22abbf4cde96
children
comparison
equal deleted inserted replaced
19:22abbf4cde96 20:d6e7a5a6f008
3 import tk.geometry; 3 import tk.geometry;
4 import tk.events; 4 import tk.events;
5 import cairo.Context; 5 import cairo.Context;
6 6
7 interface Viewport { 7 interface Viewport {
8 void rel_zoom(Point pixel_datum, double factor); 8 void zoom_relative(Point pixel_datum, double factor);
9 void rel_pan(Vector pixel_displacement); 9 void pan_relative(Vector pixel_displacement);
10 void damage_model(Rectangle area); // FIXME could be an inout parameter of the event handling, or a special scope Damage object that supports growth only 10 void damage_model(Rectangle area); // FIXME could be an inout parameter of the event handling, or a special scope Damage object that supports growth only
11 void damage_pixel(Rectangle area); // FIXME as above 11 void damage_pixel(Rectangle area); // FIXME as above
12 12
13 // FIXME not sure about these: 13 // FIXME not sure about these:
14 double zoom() const; 14 double zoom() const;