Mercurial > projects > doodle
diff doodle/gtk/cairo.d @ 80:b759414d2b72
Switched from cairo to Drawable abstraction
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sun, 15 Aug 2010 23:43:04 +0930 |
parents | 535bae7a7305 |
children | d92b9f04b1e8 |
line wrap: on
line diff
--- a/doodle/gtk/cairo.d Sun Aug 15 23:18:05 2010 +0930 +++ b/doodle/gtk/cairo.d Sun Aug 15 23:43:04 2010 +0930 @@ -1,7 +1,7 @@ module doodle.gtk.cairo; public { - import doodle.tk.drawing; + import doodle.tk.drawable; import cairo.Context; } @@ -42,6 +42,7 @@ void drawRectangle(in Rectangle rectangle, bool fill) { _cr.rectangle(rectangle.position.x, rectangle.position.y, rectangle.size.x, rectangle.size.y); + if (fill) { _cr.fill; } else { _cr.stroke; } } void drawEllipse(in Rectangle rectangle, bool fill) {