src/Graphics/Console.cc
changeset 430 74e562e16399
parent 428 712b943195a6
child 431 c6d7272a164b
equal deleted inserted replaced
428:712b943195a6 430:74e562e16399
     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 }