#include <memory>
int main(int argc, const char* argv[]) {
auto renderer_focusable =
Renderer([](
bool focused) {
if (focused)
else
});
auto renderer_non_focusable =
Renderer([&] {
return text(
"~~~~~ Non Focusable renderer() ~~~~~");
});
auto button =
Button(
"Wrapped quit button", screen.ExitLoopClosure());
auto renderer_wrap =
Renderer(button, [&] {
if (button->Focused())
else
return button->Render();
});
renderer_focusable,
renderer_non_focusable,
renderer_wrap,
}));
}