This is the first possibility you have of connecting a signal handler. You just pass it the address of a normal function: button->OnLeftClick.Connect( &Foo );
| 20 | // You just pass it the address of a normal function: |
| 21 | // button->OnLeftClick.Connect( &Foo ); |
| 22 | void Foo() { |
| 23 | window->SetTitle( "Foo" ); |
| 24 | } |
| 25 | |
| 26 | // This is the third possibility. You create instances of a class and |
| 27 | // define their behavior on a per instance basis. Depending on the pointer |