Add focusable Renderer. (#173)

This commit is contained in:
Arthur Sonzogni
2021-08-06 20:32:33 +02:00
committed by GitHub
parent 26e26fd41a
commit 3f005d7715
19 changed files with 151 additions and 68 deletions

View File

@@ -51,6 +51,7 @@ Component ResizableSplitTop(Component main, Component back, int* main_size);
Component ResizableSplitBottom(Component main, Component back, int* main_size);
Component Renderer(Component child, std::function<Element()>);
Component Renderer(std::function<Element()>);
Component Renderer(std::function<Element(bool /* focused */)>);
Component CatchEvent(Component child, std::function<bool(Event)>);
namespace Container {

View File

@@ -2,12 +2,12 @@
#define FTXUI_SCREEN_SCREEN
#include <memory>
#include <string>
#include <vector>
#include <string> // for allocator, wstring, string, basic_string
#include <vector> // for vector
#include "ftxui/screen/box.hpp"
#include "ftxui/screen/color.hpp"
#include "ftxui/screen/terminal.hpp"
#include "ftxui/screen/box.hpp" // for Box
#include "ftxui/screen/color.hpp" // for Color, Color::Default
#include "ftxui/screen/terminal.hpp" // for Dimensions
namespace ftxui {