mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-24 06:28:12 +08:00
Add RadioBox.
This commit is contained in:
19
examples/component/radiobox.cpp
Normal file
19
examples/component/radiobox.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user