#include <memory>
#include <string>
int main(int argc, const char* argv[]) {
button_option.border = false;
auto left_count = 0;
auto right_count = 0;
"[Decrease]", [&] { left_count--; }, &button_option),
"[Increase]", [&] { left_count++; }, &button_option),
});
"[Decrease]", [&] { right_count--; }, &button_option),
"[Increase]", [&] { right_count++; }, &button_option),
});
auto leftpane =
Renderer(left_buttons, [&] {
text(
"This is the left control"),
left_buttons->Render(),
}) |
});
auto rightpane =
Renderer(right_buttons, [&] {
text(
"This is the right control"),
right_buttons->Render(),
}) |
});
screen.Loop(composition);
return 0;
}