src/Graphics/Console.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 23:25:29 +0200
branchnew_graphics
changeset 413 7dddc163489a
parent 412 721c60072091
permissions -rw-r--r--
drawing the GameView works
#ifndef GRAPHICS_CONSOLE_HH
#define GRAPHICS_CONSOLE_HH

#include "GUI.hh"

#include <list>

namespace graphics 
{

class Console : public CL_Component {
protected:
    /** our list of messages */
    std::list<std::string> 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