terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
Cross-platform representation of terminal window. More...
#include <tgterminal.h>
Signals | |
void | sizeChanged (const QSize &size) const |
Emitted when terminal window changes size to size. | |
Public Member Functions | |
Terminal (QObject *parent=nullptr) | |
Constructs a new Terminal object as a child of parent object. More... | |
~Terminal () | |
Makes terminal go boom! | |
QSize | terminalWindowSize () const |
Reads the underlying terminal window size and returns it. | |
QSize | size () const |
Returns current size of the Terminal. | |
void | setSize (const QSize &newSize) |
Resizes Terminal instance to newSize. More... | |
Static Public Member Functions | |
static Terminal * | globalTerminal () |
Returns Singleton Terminal instance. More... | |
static QPoint | cursorPosition () |
Returns current position of keyboard cursor. More... | |
static int | keyboardBufferSize () |
Returns number of characters available in keyboard buffer. More... | |
static int | getChar () |
Retrieves a single character from the keyboard buffer. More... | |
Properties | |
QSize | size |
Size of the terminal window. | |
Cross-platform representation of terminal window.
Contains some basic APIs used by Widget and its subclasses. This class is internal, there should be no need to use it in user code.
Tg::Terminal::Terminal | ( | QObject * | parent = nullptr | ) |
|
static |
Returns current position of keyboard cursor.
|
static |
Retrieves a single character from the keyboard buffer.
|
static |
|
static |
Returns number of characters available in keyboard buffer.
void Tg::Terminal::setSize | ( | const QSize & | newSize | ) |
Resizes Terminal instance to newSize.