If you look in the generated code for your screen's View, you'll see exactly how to do this because TouchGFX actually does exactly what you want to accomplish behind the scenes when you create your interaction :)
I'll explain the code. First you need a Callback object, and a function that gets called when the Callback is triggered. In your screen View code you initialize the Callback object with the callback handler function as a parameter, then you register the buttons with the callback. A parameter of your callback function is a pointer to the button that was clicked. You can then compare that pointer against the addresses of various buttons on your screen. You'll see that in the generated code, each button leads to the same result - calling your virtual function.
You should use the TouchGFX tag when you ask questions in the future!