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++; }),
34 text(
"Este es el control izquierdo"),
36 text(
"Left button count: " + std::to_string(left_count)),
Component Renderer(Component child, std::function< Element()>)
Retorna un nuevo Componente, similar a |child|, pero usando |render| como el evento Component::Render...