Use std::function instead of separately allocated arguments and function pointers. This improves type safety and makes the code less verbose. It also moves us closer to not having two methods of adding button callbacks.
Use std::function instead of separately allocated arguments and function pointers. This improves type safety and makes the code less verbose. It also moves us closer to not having two methods of adding button callbacks.