21 auto left_buttons = Container::Horizontal({
22 Button(
"Decrease", [&] { left_count--; }),
23 Button(
"Increase", [&] { left_count++; }),
26 auto right_buttons = Container::Horizontal({
27 Button(
"Decrease", [&] { right_count--; }),
28 Button(
"Increase", [&] { right_count++; }),
32 auto leftpane =
Renderer(left_buttons, [&] {
34 text(
"This is the left control"),
36 text(
"Left button count: " + std::to_string(left_count)),
37 left_buttons->Render(),
42 auto rightpane =
Renderer(right_buttons, [&] {
44 text(
"This is the right control"),
46 text(
"Right button count: " + std::to_string(right_count)),
47 right_buttons->Render(),
55 auto composition = Container::Horizontal({leftpane, rightpane});
57 auto screen = App::FitComponent();
58 screen.Loop(composition);