Implicit Listener (callback)


any plans of adding implicit listener to button and similar ?
idea would be do set a call back function/functor/method without going through process of creating and keeping listener object

Button::setButtonClicked(std::function(<void (Button*)>));

one could use C++ lambdas for example

b->setButtonClicked([](Button* b) {
// do something

or even have ability to set that at construction time


Am certainly looking forward to the time when there are enough c++11 users to start adding features like that. (Shouldn’t be too long either, people seem to be pretty quick on taking it up)