terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
3 #include <widgets/tgbutton.h>
10 Q_PROPERTY(Qt::CheckState checkState READ checkState WRITE setCheckState NOTIFY checkStateChanged)
15 CheckBox(
const QString &text = QString(),
Widget *parent =
nullptr);
18 Qt::CheckState checkState()
const;
20 static QString checkBoxText(
const Qt::CheckState state,
24 void checkStateChanged(
const Qt::CheckState checkState)
const;
27 void setCheckState(
const Qt::CheckState checkState);
33 QString checkBoxText()
const;
36 Qt::CheckState _checkState = Qt::CheckState::Unchecked;
Screen is the "canvas" on which widgets (subclasses of Widget) are drawn.
Definition: tgscreen.h:31
void init() override
Initializes Widget and it's connections.
Definition: tgcheckbox.cpp:66
All Terminal GUI classes (both core and widgets) are defined within the Tg namespace.
Definition: tgcolor.h:6
QSharedPointer< Style > StylePointer
Convenient alias of QSharedPointer<Style>.
Definition: tghelpers.h:51
Definition: tgcheckbox.h:7
void consumeKeyboardBuffer(const QString &keyboardBuffer) override
Called when Widget accepts focus and keyboardBuffer is not empty.
Definition: tgcheckbox.cpp:75