Mercurial > projects > doodle
comparison cairo/routines.d @ 26:06c30d250c0a
Cleanup
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Thu, 16 Jul 2009 00:12:02 +0930 |
parents | a24c13bb9c98 |
children |
comparison
equal
deleted
inserted
replaced
25:8f58a8f88735 | 26:06c30d250c0a |
---|---|
3 public { | 3 public { |
4 import tk.geometry; | 4 import tk.geometry; |
5 import cairo.Context; | 5 import cairo.Context; |
6 } | 6 } |
7 | 7 |
8 void rectangle(Context cr, Rectangle rectangle) { | 8 void rectangle(scope Context cr, in Rectangle rectangle) { |
9 cr.rectangle(rectangle.position.x, rectangle.position.y, | 9 cr.rectangle(rectangle.position.x, rectangle.position.y, |
10 rectangle.size.x, rectangle.size.y); | 10 rectangle.size.x, rectangle.size.y); |
11 } | 11 } |