src/Graphics/Console.hh
branchnew_graphics
changeset 410 41fd46cffc52
child 412 721c60072091
equal deleted inserted replaced
409:1a03ff151abc 410:41fd46cffc52
       
     1 #ifndef GRAPHICS_CONSOLE_HH
       
     2 #define GRAPHICS_CONSOLE_HH
       
     3 
       
     4 #include <ClanLib/gui.h>
       
     5 #include <list>
       
     6 
       
     7 namespace graphics 
       
     8 {
       
     9 
       
    10 class Console : public CL_Component {
       
    11 protected:
       
    12     /** our list of messages */
       
    13     std::list<std::string> messages;
       
    14 
       
    15     /** our input dialog */
       
    16     CL_InputBox input;
       
    17 
       
    18 public:
       
    19     /**
       
    20      * Construct a new console, positioned in the given area, with the given parent
       
    21      */
       
    22     Console (const CL_Rect& pos, CL_Component* parent);
       
    23 
       
    24 private:
       
    25     /**
       
    26      * Calculate the position for the input box
       
    27      */
       
    28     CL_Rect getInputPosition (void);
       
    29 };
       
    30 
       
    31 }
       
    32 
       
    33 #endif