Add size(width, height) decorator.

This commit is contained in:
Arthur Sonzogni
2019-01-06 19:17:27 +01:00
parent 7efe8a6385
commit ccb437f4da
4 changed files with 40 additions and 4 deletions

View File

@@ -18,8 +18,11 @@ using Color = ftxui::screen::Color;
Element vbox(Children);
Element hbox(Children);
Element dbox(Children);
// -- Flexibility --
Element filler();
Element flex(Element);
Decorator size(size_t width, size_t height);
// --- Widget --
Element text(std::wstring text);