How to call native functions from widgetBP?

I think this is the wrong forum as the solution lies in macro you need to call before define your c++ functions.
It’s the same for variables as well.

Watch closely to those native classes, how they call a macro before declare actual function in the class construct, that’s how you should do yours as well.

here are some links