terminalgui  0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
tggridlayout.h
1 #pragma once
2 
3 #include "tglayout.h"
4 
5 namespace Tg {
13 class GridLayout : public Layout
14 {
15 public:
16  GridLayout();
17 
18  void doLayout() override;
19 
24  int columnCount() const;
25 
29  void setColumnCount(const int number);
30 
31 private:
32  int _columnCount = 2;
33 };
34 }
Tg::GridLayout::doLayout
void doLayout() override
Lays out children of Widget (parent).
Definition: tggridlayout.cpp:10
Tg::Layout
Helper class for Widget, manages positions and sizes of Widget's children.
Definition: tglayout.h:17
Tg
All Terminal GUI classes (both core and widgets) are defined within the Tg namespace.
Definition: tgcolor.h:6
Tg::GridLayout
Arranges children of parent() Widget in a grid.
Definition: tggridlayout.h:14
Tg::GridLayout::columnCount
int columnCount() const
Returns the maximal number of columns this grid will draw.
Definition: tggridlayout.cpp:55
Tg::GridLayout::setColumnCount
void setColumnCount(const int number)
Sets the maximal number of columns which this grid will draw.
Definition: tggridlayout.cpp:60