File: root.cpp

package info (click to toggle)
tuiwidgets 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,852 kB
  • sloc: cpp: 70,959; python: 655; sh: 39; makefile: 24
file content (28 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
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);
    }
}