#include <array>
#include <memory>
#include <string>
std::array<bool, 30> states;
auto container = Container::Vertical({});
for (int i = 0; i < 30; ++i) {
states[i] = false;
container->Add(Checkbox("Checkbox" + std::to_string(i), &states[i]));
}
auto renderer = Renderer(container, [&] {
return container->Render() | vscroll_indicator | frame |
});
auto screen = ScreenInteractive::FitComponent();
screen.Loop(renderer);
return 0;
}
Element border(Element child)
要素の周囲にボーダーを描画します。