#include <terminal.h>
Inheritance diagram for wftk::Terminal:

Public Member Functions | |
| Terminal (const std::string &text="", const Font &font=Font(), bool readonly=true, bool fill=false) | |
| Constructor. | |
| void | scrollUp (int) |
| Scroll terminal up (equivalent to clicking up-arrow of scroll bar). | |
| void | scrollDown (int) |
| Scroll terminal down (equivalent to clicking down-arrow of scroll bar). | |
| void | scrollTo (int) |
| Scroll to arbitrary location (called when dragging slider of scroll bar). | |
| void | scroll2Top () |
| Scroll terminal to the top. | |
| void | scroll2Bottom () |
| Scroll terminal to the bottom. | |
| unsigned | linesCount () const |
| Number of lines in this terminal. | |
| unsigned | currentLine () const |
| Current line. | |
Public Attributes | |
| SigC::Signal0< void > | scrolled |
| Emitted when terminal is scrolled. | |
| wftk::Terminal::Terminal | ( | const std::string & | text = "", |
|
| const Font & | font = Font(), |
|||
| bool | readonly = true, |
|||
| bool | fill = false | |||
| ) | [explicit] |
Constructor.
| text | Initial text for this Terminal. Defaults to empty string. | |
| font | Initial font for this Terminal. Defaults to wftk system font. | |
| readonly | boolean flag. Allows / disallows direct text input into the multi-line portion of the terminal. | |
| fill | boolean flag. If true, Terminal will expand to fill available space. |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.