equal
deleted
inserted
replaced
|
1 #ifndef GRAPHICS_CONSOLE_HH |
|
2 #define GRAPHICS_CONSOLE_HH |
|
3 |
|
4 #include <ClanLib/gui.h> |
|
5 #include <list> |
|
6 |
|
7 namespace graphics |
|
8 { |
|
9 |
|
10 class Console : public CL_Component { |
|
11 protected: |
|
12 /** our list of messages */ |
|
13 std::list<std::string> messages; |
|
14 |
|
15 /** our input dialog */ |
|
16 CL_InputBox input; |
|
17 |
|
18 public: |
|
19 /** |
|
20 * Construct a new console, positioned in the given area, with the given parent |
|
21 */ |
|
22 Console (const CL_Rect& pos, CL_Component* parent); |
|
23 |
|
24 private: |
|
25 /** |
|
26 * Calculate the position for the input box |
|
27 */ |
|
28 CL_Rect getInputPosition (void); |
|
29 }; |
|
30 |
|
31 } |
|
32 |
|
33 #endif |