1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include "tpi-image-builder.h"
#include <QObject>
#include <QRect>
#include <Tui/ZRoot.h>
#include <Tui/ZTerminal.h>
void root() {
Tui::ZTerminal terminal (Tui::ZTerminal::OffScreen(40, 40));
Tui::ZRoot root;
terminal.setMainWidget(&root);
//Default
{
root.setGeometry({1, 1, 18, 4});
export_tpi(&terminal, "root", 0, 0, 20, 6);
}
// Background
{
root.setGeometry({1, 1, 18, 4});
root.setFillChar(u'▒');
export_tpi(&terminal, "root-fillchar", 0, 0, 20, 6);
}
}
|