#include <stdio.h>
#include <string>
auto make_box = [](
int dimx,
int dimy) {
std::string
title = std::to_string(dimx) +
"x" + std::to_string(dimy);
text("content") | hcenter | dim) |
};
auto style =
size(WIDTH, GREATER_THAN, 20) | border |
size(HEIGHT, GREATER_THAN, 30) |
size(WIDTH, LESS_THAN, 50);
auto document = hflow({
}) |
style;
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
getchar();
return 0;
}
Element make_box(int x, int y)
return dimx size(HEIGHT, EQUAL, dimy)
return window(text(title)|hcenter|bold, text("contenido")|hcenter|dim)|size(WIDTH
El espacio de nombres ftxui:: de FTXUI.