terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
12 #include "utils/tghelpers.h"
13 #include "layouts/tglayout.h"
86 Q_PROPERTY(
int z READ
z WRITE setZ NOTIFY
zChanged)
368 bool isBorder(
const QPoint &pixel)
const;
619 void setZ(
const int z);
673 virtual QString
drawPixel(
const QPoint &pixel)
const;
793 bool canRedraw()
const;
794 void updatePreviousBoundingRect();
796 const int _borderWidth = 1;
797 bool _resizableByMouse =
true;
799 QPointer<Screen> _screen;
800 QPointer<Widget> _parentWidget;
803 Layout *_layout =
nullptr;
807 QPoint _position = { 0, 0 };
808 QPoint _previousGlobalPosition = { 0, 0 };
809 QSize _size = { 1, 1 };
810 QSize _previousSize = { 1, 1 };
818 bool _visible =
false;
819 bool _borderVisible =
true;
820 bool _acceptsFocus =
false;
821 bool _hasFocus =
false;
822 bool _verticalArrowsMoveFocus =
false;
823 bool _propagatesStyle =
true;
824 QChar _backgroundCharacter;
Screen is the "canvas" on which widgets (subclasses of Widget) are drawn.
Definition: tgscreen.h:31
Helper class for Widget, manages positions and sizes of Widget's children.
Definition: tglayout.h:17
Type
Type of a Layout.
Definition: tglayout.h:24
All Terminal GUI classes (both core and widgets) are defined within the Tg namespace.
Definition: tgcolor.h:6
Represents colors in a terminal.
Definition: tgcolor.h:20
QSharedPointer< Style > StylePointer
Convenient alias of QSharedPointer<Style>.
Definition: tghelpers.h:51
QList< WidgetPointer > WidgetList
Convenient alias for QList<WidgetPointer>.
Definition: tghelpers.h:46
QPointer< Widget > WidgetPointer
Convenient alias of QPointer<Widget>.
Definition: tghelpers.h:41
RedrawType
Specifies how much of the Tg::Screen needs to be redrawn.
Definition: tghelpers.h:72