#include <Console.h>
Inherits Widget.
Inheritance diagram for Console:


Public Methods | |
| Console & | operator<< (const string &line) |
| Print a string to the console. More... | |
| void | resize (unsigned short w, unsigned short h) |
| Resizes the region. More... | |
| void | refresh () |
| Repaints the region. More... | |
Static Public Methods | |
| Console * | getConsole () |
| Returns the singleton Console instance. More... | |
Protected Attributes | |
| int | currentLine |
| Current line that will be printed to (cyclic). | |
| int | lineDistance |
| Distance between two printed lines in pixels. | |
| int | visibleBuffers |
| The number of visible line buffers. | |
| string | text [lineBuffers] |
| Actual line buffers. | |
Static Protected Attributes | |
| Console * | instance = NULL |
| Signleton instance. | |
| const int | lineBuffers = 80 |
| Maximum buffered lines. | |
| const int | lineSeperate = 4 |
| Space between lines in pixels. | |
A console displays all values and strings that are printed to cout. In addition all strings are logged to file '/var/expression.log'.
|
|
Returns the singleton Console instance.
|
|
|
Print a string to the console. Prints an logs a single line.
|
|
|
Repaints the region. This method is called whenever the screen is repainted. The repaint method uses OpenGL calls to render the region. Currently it is assumed that regions are refreshed automatically so that no refresh notification has to be done when the region changes state i.e. no refresh has to be forced by the region. Region rendering is done back to front.
Reimplemented from Region. |
|
||||||||||||
|
Resizes the region. Virtual method to change the size of the Region.
Reimplemented from Region. |