diff -r 1a03ff151abc -r 41fd46cffc52 src/Graphics/Console.hh --- /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 +#include + +namespace graphics +{ + +class Console : public CL_Component { +protected: + /** our list of messages */ + std::list 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