examples/dom/separator_style.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<ftxui/screen/screen.hpp>//forScreen
    #include<iostream>//forendl,cout,ostream
    #include<memory>//forallocator

    #include"ftxui/dom/elements.hpp"//fortext,hbox,separatorDouble,separatorHeavy,separatorLight,vbox,operator|,Element,Fit,borderDouble,borderHeavy,borderLight
    #include"ftxui/dom/node.hpp"//forRender
    #include"ftxui/screen/box.hpp"//forftxui

    intmain(){
    usingnamespaceftxui;

    autodocument=vbox({
    vbox({
    text("separatorLight"),
    separatorLight(),
    hbox(text("left"),separatorLight(),text("right")),
    })|borderLight,

    vbox({
    text("separatorDashed"),
    separatorDashed(),
    hbox(text("left"),separatorDashed(),text("right")),
    })|borderDashed,

    vbox({
    text("separatorHeavy"),
    separatorHeavy(),
    hbox(text("left"),separatorHeavy(),text("right")),
    })|borderHeavy,

    vbox({
    text("separatorDouble"),
    separatorDouble(),
    hbox(text("left"),separatorDouble(),text("right")),
    })|borderDouble,
    });

    autoscreen=
    Screen::Create(Dimension::Fit(document),Dimension::Fit(document));
    Render(screen,document);
    screen.Print();
    std::cout<<std::endl;
    }