From 8b4fa2a3b6b1a3d75fd4ae5a61266e159d22e095 Mon Sep 17 00:00:00 2001 From: ComradeCrow Date: Wed, 17 May 2023 16:05:13 -0700 Subject: Changes Start Documenting, add more cpack stuff --- include/tui.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/tui.hpp (limited to 'include/tui.hpp') diff --git a/include/tui.hpp b/include/tui.hpp new file mode 100644 index 0000000..112135c --- /dev/null +++ b/include/tui.hpp @@ -0,0 +1,23 @@ +#ifndef TUI_H +#define TUI_H +#include +#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 \ No newline at end of file -- cgit 1.4.1-2-gfad0