examples/dom/vbox_hbox.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<stdio.h>//forgetchar
    #include<ftxui/dom/elements.hpp>//forfiller,text,hbox,vbox
    #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=//
    vbox({
    hbox({
    text("north-west"),
    filler(),
    text("north-east"),
    }),
    filler(),
    hbox({
    filler(),
    text("center"),
    filler(),
    }),
    filler(),
    hbox({
    text("south-west"),
    filler(),
    text("south-east"),
    }),
    });
    autoscreen=Screen::Create(Dimension::Full());
    Render(screen,document);
    screen.Print();
    getchar();

    return0;
    }