--- a/src/Graphics/View.hh Wed Jan 21 23:07:22 2009 +0200
+++ b/src/Graphics/View.hh Wed Jan 21 23:25:29 2009 +0200
@@ -1,7 +1,15 @@
#ifndef GRAPHICS_VIEW_HH
#define GRAPHICS_VIEW_HH
+namespace graphics
+{
+
+class View;
+
+}
+
#include "Drawable.hh"
+#include "Display.hh"
#include "../Types.hh"
namespace graphics
@@ -10,7 +18,7 @@
/**
* A view is some area of the display that displays something
*/
-class View : public Drawable {
+class View /* : public Drawable */ {
protected:
/**
* The area of the screen that is ours to draw on
@@ -28,6 +36,11 @@
}
/**
+ * Draw into the view area
+ */
+ virtual void draw (Display &display) = 0;
+
+ /**
* Update the view area
*/
virtual void resize (const PixelArea &new_area) {