14 using namespace ftxui;
15 auto make_box = [](
const std::string& title) {
16 return window(text(title) | hcenter | bold,
17 text(
"content") | hcenter | dim);
21 for (
int x = 3; x < 30; ++x) {
22 content.push_back(
make_box(std::to_string(x)) | size(WIDTH, EQUAL, x));
25 auto document = hbox(std::move(content));
26 auto screen = Screen::Create(Dimension::Fit(document));
27 Render(screen, document);