src/Graphics/Console.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 23:07:22 +0200
branchnew_graphics
changeset 412 721c60072091
parent 410 41fd46cffc52
permissions -rw-r--r--
new graphics code compiles... no, it doesn't work yet
#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