AddEventListener and std::function

Discussion of features and help with problems encountered while using libRocket

AddEventListener and std::function

Postby Enhex on Fri Dec 19, 2014 6:26 pm

I was thinking that it will be very convenient to be able to pass an std::function as an event callback instead of having to derive a class from Rocket::Core::EventListener.

Being able to use function pointers, functors, and lambdas can be really nice.
Posts: 2
Joined: Fri Dec 19, 2014 3:44 pm

Return to Using libRocket