19 auto left_buttons = Container::Horizontal({
20 Button(
"Decrease", [&] { left_count--; }),
21 Button(
"Increase", [&] { left_count++; }),
24 auto right_buttons = Container::Horizontal({
25 Button(
"Decrease", [&] { right_count--; }),
26 Button(
"Increase", [&] { right_count++; }),
30 auto leftpane =
Renderer(left_buttons, [&] {
32 text(
"This is the left control"),
34 text(
"Left button count: " + std::to_string(left_count)),
40 auto rightpane =
Renderer(right_buttons, [&] {
42 text(
"This is the right control"),
44 text(
"Right button count: " + std::to_string(right_count)),
45 right_buttons->Render(),
52 auto composition = Container::Horizontal({leftpane, rightpane});
55 screen.Loop(composition);