mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-23 13:28:08 +08:00
Introduce CatchEvent (#104)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user