Add "frame" : scrollable area.

This commit is contained in:
Arthur Sonzogni
2019-01-19 22:06:05 +01:00
parent cb4df0b56f
commit fddcbdea65
50 changed files with 543 additions and 243 deletions

View File

@@ -7,20 +7,14 @@ int main(int argc, const char *argv[])
using namespace ftxui;
auto document =
dbox(
frame(
vbox(
text(L"line_1"),
text(L"line_2"),
text(L"line_3"),
text(L"line_4"),
text(L"line_5")
)
),
center(
frame(
text(L"overlay")
)
)
vbox(
text(L"line_1"),
text(L"line_2"),
text(L"line_3"),
text(L"line_4"),
text(L"line_5")
) | border,
text(L"overlay") | border | center
);
auto screen = Screen::TerminalOutput(document);
Render(screen, document.get());