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,10 +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::dom;
using namespace ftxui::screen;
auto document =
dbox(
frame(
@@ -22,7 +23,7 @@ int main(int argc, const char *argv[])
)
)
);
auto screen = ftxui::Screen::TerminalOutput(document);
auto screen = Screen::TerminalOutput(document);
Render(screen, document.get());
std::cout << screen.ToString();