diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-12 14:32:15 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-12 14:32:15 -0700 |
commit | 9d53072e32c60aa51784182a0a608ce204cab9e6 (patch) | |
tree | 4b547c106f0cb015533b839f6f1cfa81693f5e3b /src/tui.hpp | |
parent | 63bfecda26d87c7d09691a0b479883a4eb26bf1e (diff) | |
download | ytcpp-9d53072e32c60aa51784182a0a608ce204cab9e6.tar.gz |
breaking changes
broke everything
Diffstat (limited to 'src/tui.hpp')
-rw-r--r-- | src/tui.hpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/tui.hpp b/src/tui.hpp index df9433c..af4d24c 100644 --- a/src/tui.hpp +++ b/src/tui.hpp @@ -1,8 +1,23 @@ -#ifndef tui -#define tui -#include "tui.cpp" +#ifndef Tui +#define Tui #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: + void cancelAndExit(ftxui::ScreenInteractive&); + bool cancel; + +}; -std::string renderSearchBar(); #endif \ No newline at end of file |