13 using namespace ftxui;
14 auto make_box = [](
int dimx,
int dimy) {
15 std::string title = std::to_string(dimx) +
"x" + std::to_string(dimy);
16 return window(text(title) | hcenter | bold,
17 text(
"content") | hcenter | dim) |
18 size(WIDTH, EQUAL, dimx) | size(HEIGHT, EQUAL, dimy);
21 auto style = size(WIDTH, GREATER_THAN, 20) | border |
22 size(HEIGHT, GREATER_THAN, 30) | size(WIDTH, LESS_THAN, 50);
24 auto document = hflow({
46 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
47 Render(screen, document);