terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
Arranges all children of parent() Widget in a single row. More...
#include <tgrowlayout.h>
Public Member Functions | |
void | doLayout () override |
Lays out children of Widget (parent). More... | |
![]() | |
Type | type () const |
Returns the Type of this Layout. | |
Widget * | parent () const |
Returns the parent Widget - on which Layout is working to resize and position it's children. More... | |
void | setParent (Widget *parent) |
Sets the parent Widget. More... | |
SizeOvershoot | overshoot () const |
Read this after calling doLayout() to check if all child widgets fit nicely onto parent. | |
Additional Inherited Members | |
![]() | |
enum | Type { Type::None, Type::ChildFillsParent, Type::Column, Type::Row, Type::Grid } |
Type of a Layout. More... | |
![]() | |
Layout (const Type type) | |
Constructor used by subclasses to set Layout type they implement. | |
![]() | |
SizeOvershoot | _overshoot = Overshoot::None |
Indicates whether children of Widget cannot fit the Widget, and in which direction they fail to fit. | |
Widget * | _parent = nullptr |
Parent Widget. More... | |
const Type | _type = Type::None |
Type of a Layout. More... | |
|
overridevirtual |
Lays out children of Widget (parent).
It stretches first child to fill the whole widget.
Reimplemented from Tg::Layout.