1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

Try out a signal-like system like this:

auto* b = new Button;
b->onClick = [] (Button&) {
    printf("The button was clicked!\n");
};
This commit is contained in:
Andreas Kling 2018-10-13 23:01:06 +02:00
parent a3fb19fe9c
commit 7a0a7abc52
4 changed files with 10 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include "Rect.h"
#include "Color.h"
#include <AK/String.h>
#include <functional>
class Window;