mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +08:00
Remove input.hpp
This commit is contained in:

committed by
Arthur Sonzogni

parent
7ee6edfd1f
commit
26db8228f9
@@ -2,6 +2,7 @@
|
||||
#define FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP
|
||||
|
||||
#include <ftxui/dom/elements.hpp>
|
||||
#include <ftxui/util/ref.hpp>
|
||||
|
||||
namespace ftxui {
|
||||
|
||||
@@ -42,6 +43,8 @@ struct InputOption {
|
||||
std::function<void()> on_change = [] {};
|
||||
/// Called when the user presses enter.
|
||||
std::function<void()> on_enter = [] {};
|
||||
|
||||
Ref<int> cursor_position = 0;
|
||||
};
|
||||
|
||||
/// @brief Option for the Radiobox component.
|
||||
|
Reference in New Issue
Block a user