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