#include <array>
#include <cmath>
#include <memory>
auto screen = App::TerminalOutput();
std::array<int, 30> values;
for (size_t i = 0; i < values.size(); ++i) {
values[i] = static_cast<int>(50.0 + 20.0 * std::sin(i * 0.3));
}
auto layout_horizontal = Container::Horizontal({});
for (auto& value : values) {
layout_horizontal->Add(Slider<int>(option));
}
layout_horizontal |= size(HEIGHT, GREATER_THAN, 20);
screen.Loop(layout_horizontal);
}
The FTXUI ftxui:: namespace.