Mercurial > projects > doodle
annotate biro/routines.d @ 23:d5cd97f55cb6
Blah
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Wed, 15 Jul 2009 23:33:54 +0930 |
parents | cairo/routines.d@17c2df87b459 |
children |
rev | line source |
---|---|
23 | 1 module biro.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 |
11 | 8 void rectangle(Context cr, 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 } |