--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Graphics/Console.hh Wed Jan 21 01:57:24 2009 +0200
@@ -0,0 +1,33 @@
+#ifndef GRAPHICS_CONSOLE_HH
+#define GRAPHICS_CONSOLE_HH
+
+#include <ClanLib/gui.h>
+#include <list>
+
+namespace graphics
+{
+
+class Console : public CL_Component {
+protected:
+ /** our list of messages */
+ std::list<std::string> messages;
+
+ /** our input dialog */
+ CL_InputBox input;
+
+public:
+ /**
+ * Construct a new console, positioned in the given area, with the given parent
+ */
+ Console (const CL_Rect& pos, CL_Component* parent);
+
+private:
+ /**
+ * Calculate the position for the input box
+ */
+ CL_Rect getInputPosition (void);
+};
+
+}
+
+#endif