Better integratiion

This commit is contained in:
Clement Roblot
2024-08-02 23:03:37 +07:00
parent 10a4a04529
commit 2de925f2c6
5 changed files with 89 additions and 94 deletions

View File

@@ -16,6 +16,7 @@
#include "ftxui/screen/color.hpp"
#include "ftxui/screen/terminal.hpp"
#include "ftxui/util/ref.hpp"
#include "ftxui/component/event.hpp"
namespace ftxui {
class Node;
@@ -104,8 +105,9 @@ Element canvas(std::function<void(Canvas&)>);
Element bold(Element);
Element dim(Element);
Element inverted(Element);
Element selected(Region &selection, std::function<void(const std::string)> onSelectionChange, Element);
Decorator selected(Region &selection, std::function<void(const std::string)> onSelectionChange);
Element selectable(std::function<void(const std::string)> onSelectionChange, Element);
Decorator selectable(std::function<void(const std::string)> onSelectionChange);
bool selectableCatchEvent(Event event);
Element underlined(Element);
Element underlinedDouble(Element);
Element blink(Element);