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 =
hbox(
text(L"left-column"),
@@ -15,7 +16,7 @@ int main(int argc, const char *argv[])
center(text(L"bottom-column"))
))
);
auto screen = ftxui::Screen::TerminalFullscreen();
auto screen = Screen::TerminalFullscreen();
Render(screen, document.get());
std::cout << screen.ToString();