Introduce CatchEvent (#104)

This commit is contained in:
Arthur Sonzogni
2021-05-23 12:53:20 +02:00
committed by GitHub
parent ffb6dcef9a
commit aacb677e84
8 changed files with 93 additions and 37 deletions

View File

@@ -14,8 +14,10 @@ int main(int argc, const char* argv[]) {
// The tree of components. This defines how to navigate using the keyboard.
auto buttons = Container::Horizontal({
Button("Decrease", [&] { value--; }),
Button("Increase", [&] { value++; }),
Button(
"[Decrease]", [&] { value--; }, false),
Button(
"[Increase]", [&] { value++; }, false),
});
// Modify the way to render them on screen: