src/Graphics/Console.cc
branchnew_graphics
changeset 410 41fd46cffc52
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Graphics/Console.cc	Wed Jan 21 01:57:24 2009 +0200
@@ -0,0 +1,23 @@
+
+#include "Console.hh"
+
+namespace graphics 
+{
+
+Console::Console (const CL_Rect& pos, CL_Component* parent) :
+    CL_Component(pos, parent),
+    messages(), input(getInputPosition(), this)
+{    
+    // hide by default
+    show(false);
+
+}
+
+CL_Rect Console::getInputPosition (void) {
+    CL_Rect pos = get_position();
+
+    return CL_Rect(pos.left, pos.bottom - 30, pos.right, pos.bottom);
+}
+
+
+}