examples/dom/separator.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<ftxui/dom/elements.hpp>//fortext,center,separator,operator|,flex,Element,vbox,Fit,hbox,border
    #include<ftxui/screen/screen.hpp>//forFull,Screen
    #include<memory>//forallocator

    #include"ftxui/dom/node.hpp"//forRender
    #include"ftxui/screen/color.hpp"//forftxui

    intmain(){
    usingnamespaceftxui;
    autodocument=hbox({
    text("left-column"),
    separator(),
    vbox({
    center(text("top"))|flex,
    separator(),
    center(text("bottom")),
    })|flex,
    separator(),
    text("right-column"),
    })|
    border;
    autoscreen=Screen::Create(Dimension::Full(),Dimension::Fit(document));
    Render(screen,document);
    screen.Print();

    return0;
    }