Mercurial > projects > doodle
annotate cairo/routines.d @ 26:06c30d250c0a
Cleanup
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Thu, 16 Jul 2009 00:12:02 +0930 |
parents | a24c13bb9c98 |
children |
rev | line source |
---|---|
24 | 1 module cairo.routines; |
2
d6f44347373d
* Switched over to geometry done with structs instead of classes.
David Bryant <daveb@acres.com.au>
parents:
diff
changeset
|
2 |
16
9e63308b749c
* Fix up public/private includes
David Bryant <daveb@acres.com.au>
parents:
11
diff
changeset
|
3 public { |
9e63308b749c
* Fix up public/private includes
David Bryant <daveb@acres.com.au>
parents:
11
diff
changeset
|
4 import tk.geometry; |
9e63308b749c
* Fix up public/private includes
David Bryant <daveb@acres.com.au>
parents:
11
diff
changeset
|
5 import cairo.Context; |
9e63308b749c
* Fix up public/private includes
David Bryant <daveb@acres.com.au>
parents:
11
diff
changeset
|
6 } |
2
d6f44347373d
* Switched over to geometry done with structs instead of classes.
David Bryant <daveb@acres.com.au>
parents:
diff
changeset
|
7 |
26 | 8 void rectangle(scope Context cr, in Rectangle rectangle) { |
10 | 9 cr.rectangle(rectangle.position.x, rectangle.position.y, |
10 rectangle.size.x, rectangle.size.y); | |
2
d6f44347373d
* Switched over to geometry done with structs instead of classes.
David Bryant <daveb@acres.com.au>
parents:
diff
changeset
|
11 } |