screen.hpp
cstdint
functional
string
vector
ftxui/screen/image.hpp
ftxui/screen/terminal.hpp
ftxui/util/autoreset.hpp
include/ftxui/component/screen_interactive.hpp
include/ftxui/dom/node.hpp
include/ftxui/dom/requirement.hpp
src/ftxui/component/screen_interactive.cpp
src/ftxui/component/window.cpp
src/ftxui/dom/automerge.cpp
src/ftxui/dom/blink.cpp
src/ftxui/dom/bold.cpp
src/ftxui/dom/border.cpp
src/ftxui/dom/canvas.cpp
src/ftxui/dom/clear_under.cpp
src/ftxui/dom/color.cpp
src/ftxui/dom/dim.cpp
src/ftxui/dom/frame.cpp
src/ftxui/dom/gauge.cpp
src/ftxui/dom/graph.cpp
src/ftxui/dom/hyperlink.cpp
src/ftxui/dom/inverted.cpp
src/ftxui/dom/italic.cpp
src/ftxui/dom/linear_gradient.cpp
src/ftxui/dom/node.cpp
src/ftxui/dom/reflect.cpp
src/ftxui/dom/scroll_indicator.cpp
src/ftxui/dom/selection_style.cpp
src/ftxui/dom/separator.cpp
src/ftxui/dom/strikethrough.cpp
src/ftxui/dom/text.cpp
src/ftxui/dom/underlined.cpp
src/ftxui/dom/underlined_double.cpp
src/ftxui/dom/util.cpp
src/ftxui/screen/screen.cpp
ftxui/screen/box.hpp
ftxui/screen/color.hpp
ftxui/screen/image.hpp
ftxui/screen/pixel.hpp
include/ftxui/screen/screen.hpp
ftxui/screen/terminal.hpp
ftxui/util/autoreset.hpp
cstdint
functional
string
utility
vector
include/ftxui/component/component.hpp
include/ftxui/component/component_base.hpp
include/ftxui/component/component_options.hpp
include/ftxui/component/loop.hpp
include/ftxui/component/screen_interactive.hpp
include/ftxui/dom/deprecated.hpp
include/ftxui/dom/elements.hpp
include/ftxui/dom/node.hpp
include/ftxui/dom/requirement.hpp
include/ftxui/dom/table.hpp
include/ftxui/screen/screen.hpp
src/ftxui/component/button.cpp
src/ftxui/component/catch_event.cpp
src/ftxui/component/checkbox.cpp
src/ftxui/component/collapsible.cpp
src/ftxui/component/component.cpp
src/ftxui/component/component_fuzzer.cpp
src/ftxui/component/component_options.cpp
src/ftxui/component/container.cpp
src/ftxui/component/dropdown.cpp
src/ftxui/component/hoverable.cpp
src/ftxui/component/input.cpp
src/ftxui/component/loop.cpp
src/ftxui/component/maybe.cpp
src/ftxui/component/menu.cpp
src/ftxui/component/modal.cpp
src/ftxui/component/radiobox.cpp
src/ftxui/component/renderer.cpp
src/ftxui/component/resizable_split.cpp
src/ftxui/component/screen_interactive.cpp
src/ftxui/component/slider.cpp
src/ftxui/component/util.cpp
src/ftxui/component/window.cpp
src/ftxui/dom/automerge.cpp
src/ftxui/dom/blink.cpp
src/ftxui/dom/bold.cpp
src/ftxui/dom/border.cpp
src/ftxui/dom/box_helper.cpp
src/ftxui/dom/box_helper.hpp
src/ftxui/dom/canvas.cpp
src/ftxui/dom/clear_under.cpp
src/ftxui/dom/color.cpp
src/ftxui/dom/composite_decorator.cpp
src/ftxui/dom/dbox.cpp
src/ftxui/dom/dim.cpp
src/ftxui/dom/flex.cpp
src/ftxui/dom/flexbox.cpp
src/ftxui/dom/flexbox_helper.cpp
src/ftxui/dom/focus.cpp
src/ftxui/dom/frame.cpp
src/ftxui/dom/gauge.cpp
src/ftxui/dom/graph.cpp
src/ftxui/dom/gridbox.cpp
src/ftxui/dom/hbox.cpp
src/ftxui/dom/hyperlink.cpp
src/ftxui/dom/inverted.cpp
src/ftxui/dom/italic.cpp
src/ftxui/dom/linear_gradient.cpp
src/ftxui/dom/node.cpp
src/ftxui/dom/node_decorator.cpp
src/ftxui/dom/node_decorator.hpp
src/ftxui/dom/paragraph.cpp
src/ftxui/dom/reflect.cpp
src/ftxui/dom/scroll_indicator.cpp
src/ftxui/dom/selection.cpp
src/ftxui/dom/selection_style.cpp
src/ftxui/dom/separator.cpp
src/ftxui/dom/size.cpp
src/ftxui/dom/spinner.cpp
src/ftxui/dom/strikethrough.cpp
src/ftxui/dom/table.cpp
src/ftxui/dom/text.cpp
src/ftxui/dom/underlined.cpp
src/ftxui/dom/underlined_double.cpp
src/ftxui/dom/util.cpp
src/ftxui/dom/vbox.cpp
src/ftxui/screen/screen.cpp
ftxui::Screen
ftxui::Screen::Cursor
ftxui
ftxui::Dimension

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #ifndefFTXUI_SCREEN_SCREEN_HPP
    #defineFTXUI_SCREEN_SCREEN_HPP

    #include<cstdint>//foruint8_t
    #include<functional>//forfunction
    #include<string>//forstring,basic_string,allocator
    #include<vector>//forvector

    #include"ftxui/screen/image.hpp"//forPixel,Image
    #include"ftxui/screen/terminal.hpp"//forDimensions
    #include"ftxui/util/autoreset.hpp"//forAutoReset

    namespaceftxui{

    ///@briefDefinehowtheScreen'sdimensionsshouldlooklike.
    ///@ingroupscreen
    namespaceDimension{
    DimensionsFixed(int);
    DimensionsFull();
    }//namespaceDimension

    ///@briefArectangulargridofPixel.
    ///@ingroupscreen
    classScreen:publicImage{
    public:
    //Constructors:
    Screen(intdimx,intdimy);
    staticScreenCreate(Dimensionsdimension);
    staticScreenCreate(Dimensionswidth,Dimensionsheight);

    std::stringToString()const;

    //PrinttheScreenontotheterminal.
    voidPrint()const;

    //Fillthescreenwithspaceandresetanyscreenstate,likehyperlinks,and
    //cursor
    voidClear();

    //Movetheterminalcursorn-linesupwithn=dimy().
    std::stringResetPosition(boolclear=false)const;

    voidApplyShader();

    structCursor{
    intx=0;
    inty=0;

    enumShape{
    Hidden=0,
    BlockBlinking=1,
    Block=2,
    UnderlineBlinking=3,
    Underline=4,
    BarBlinking=5,
    Bar=6,
    };
    Shapeshape;
    };

    Cursorcursor()const{returncursor_;}
    voidSetCursor(Cursorcursor){cursor_=cursor;}

    //Storeanhyperlinkinthescreen.Returntheidofthehyperlink.Theidis
    //usedtoidentifythehyperlinkwhentheuserclickonit.
    uint8_tRegisterHyperlink(conststd::string&link);
    conststd::string&Hyperlink(uint8_tid)const;

    usingSelectionStyle=std::function<void(Pixel&)>;
    constSelectionStyle&GetSelectionStyle()const;
    voidSetSelectionStyle(SelectionStyledecorator);

    protected:
    Cursorcursor_;
    std::vector<std::string>hyperlinks_={""};

    //Thecurrentselectionstyle.Thisisoverriddenbyvariousdomelements.
    SelectionStyleselection_style_=[](Pixel&pixel){
    pixel.inverted^=true;
    };
    };

    }//namespaceftxui

    #endif//FTXUI_SCREEN_SCREEN_HPP