src/Graphics/Console.cc
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 01:57:24 +0200
branchnew_graphics
changeset 410 41fd46cffc52
permissions -rw-r--r--
start working out the Graphics/* code, this is a long way from compiling, let alone working

#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);
}


}