terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
3 #include "utils/tghelpers.h"
virtual void doLayout()
Lays out children of Widget (parent).
Definition: tglayout.cpp:21
Widget * _parent
Parent Widget.
Definition: tglayout.h:98
Type type() const
Returns the Type of this Layout.
Definition: tglayout.cpp:6
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
const Type _type
Type of a Layout.
Definition: tglayout.h:103
SizeOvershoot _overshoot
Indicates whether children of Widget cannot fit the Widget, and in which direction they fail to fit.
Definition: tglayout.h:92
@ None
Does not perform any adjustment of child Widgets.
@ ChildFillsParent
A single child Widget will fill the entirety of parent Widget.
SizeOvershoot overshoot() const
Read this after calling doLayout() to check if all child widgets fit nicely onto parent.
Definition: tglayout.cpp:40
void setParent(Widget *parent)
Sets the parent Widget.
Definition: tglayout.cpp:16
Widget * parent() const
Returns the parent Widget - on which Layout is working to resize and position it's children.
Definition: tglayout.cpp:11