#include <stdio.h>
#include <memory>
int main() {
auto cell = [](
const char* t) {
return text(t) |
border; };
auto document =
{
cell("north-west"),
cell("north"),
cell("north-east"),
},
{
cell("center-west"),
{
cell("center-north-west"),
cell("center-north-east"),
},
{
cell("center-south-west"),
cell("center-south-east"),
},
}),
cell("center-east"),
},
{
cell("south-west"),
cell("south"),
cell("south-east"),
},
});
screen.Print();
getchar();
return 0;
}
static Screen Create(Dimensions dimension)
Create a screen with the given dimension.
Dimensions Fit(Element &)
Element text(std::wstring text)
Display a piece of unicode text.
Element gridbox(std::vector< Elements > lines)
A container displaying a grid of elements.
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.
Element border(Element)
Draw a border around the element.