Add RadioBox.

This commit is contained in:
Arthur Sonzogni
2019-01-18 22:41:33 +01:00
parent a6040bc360
commit 01827ea8ce
8 changed files with 164 additions and 48 deletions

View File

@@ -0,0 +1,19 @@
#include "ftxui/component/radiobox.hpp"
#include "ftxui/component/component.hpp"
#include "ftxui/component/container.hpp"
#include "ftxui/component/screen_interactive.hpp"
using namespace ftxui;
int main(int argc, const char* argv[]) {
auto screen = ScreenInteractive::TerminalOutput();
RadioBox radiobox;
radiobox.entries = {
L"Use gcc",
L"Use clang",
L"Use emscripten",
L"Use tcc",
};
screen.Loop(&radiobox);
return 0;
}