about summary refs log tree commit diff stats
path: root/src/tui.hpp
blob: 112135cdae29e48ce411fbee38d4274e45fa0b84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TUI_H
#define TUI_H
#include <string>
#include "ftxui/component/captured_mouse.hpp"  // for ftxui
#include "ftxui/component/component.hpp"       // for Input, Renderer, Vertical
#include "ftxui/component/component_base.hpp"  // for ComponentBase
#include "ftxui/component/component_options.hpp"  // for InputOption
#include "ftxui/component/screen_interactive.hpp"  // for Component, ScreenInteractive
#include "ftxui/dom/elements.hpp"  // for text, hbox, separator, Element, operator|, vbox, border
#include "ftxui/util/ref.hpp"  // for Ref

class Tui {
    public:
        bool renderSearchBar(std::string&, int&);
        bool isCancelled();
    private:
        ftxui::Closure cancelAndExit(ftxui::ScreenInteractive&);
        bool cancel{false};

};


#endif