Refactor directory structure.

The goal is to increase the separation in between:

 * ftxui::screen
 * ftxui::dom
 * ftxui::component
This commit is contained in:
Arthur Sonzogni
2019-01-06 17:10:35 +01:00
parent 1d29645cf5
commit 5887114793
70 changed files with 324 additions and 361 deletions

View File

@@ -1,9 +1,11 @@
#include "ftxui/screen.hpp"
#include "ftxui/screen/screen.hpp"
#include "ftxui/dom/elements.hpp"
#include <iostream>
int main(int argc, const char *argv[])
{
using namespace ftxui::screen;
using namespace ftxui::dom;
auto document =
vbox(
@@ -27,7 +29,7 @@ int main(int argc, const char *argv[])
text(L"south-east")
)
);
auto screen = ftxui::Screen::TerminalFullscreen();
auto screen = Screen::TerminalFullscreen();
Render(screen, document.get());
std::cout << screen.ToString();