Update document WIP.

This commit is contained in:
ArthurSonzogni
2020-05-25 01:34:13 +02:00
committed by Arthur Sonzogni
parent 177df31d41
commit 75c424cea9
55 changed files with 3244 additions and 152 deletions

15
examples/dom/window.cpp Normal file
View File

@@ -0,0 +1,15 @@
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include <ftxui/dom/elements.hpp>
#include <ftxui/screen/screen.hpp>
#include <iostream>
int main(int argc, const char* argv[]) {
using namespace ftxui;
auto document = window(text(L"Title"), text(L"content"));
auto screen = Screen::Create(Dimension::Fixed(30), Dimension::Fixed(6));
Render(screen, document);
std::cout << screen.ToString() << std::endl;
}