Connect a function to a button created in an object (ControlP5)

Just by curiosity, would there be a way of doing this without giving the name of the function to the button ?

It would be a bit more elegant in my project :stuck_out_tongue: