src/Graphics/Console.cc
branchnew_graphics
changeset 410 41fd46cffc52
equal deleted inserted replaced
409:1a03ff151abc 410:41fd46cffc52
       
     1 
       
     2 #include "Console.hh"
       
     3 
       
     4 namespace graphics 
       
     5 {
       
     6 
       
     7 Console::Console (const CL_Rect& pos, CL_Component* parent) :
       
     8     CL_Component(pos, parent),
       
     9     messages(), input(getInputPosition(), this)
       
    10 {    
       
    11     // hide by default
       
    12     show(false);
       
    13 
       
    14 }
       
    15 
       
    16 CL_Rect Console::getInputPosition (void) {
       
    17     CL_Rect pos = get_position();
       
    18 
       
    19     return CL_Rect(pos.left, pos.bottom - 30, pos.right, pos.bottom);
       
    20 }
       
    21 
       
    22 
       
    23 }