How to implement onclicked events in ALevelScript

Hello guys, I’m trying to make a C++ class based on ALevelScript that allow me to remove a specific widget when i click. My question is, how can i do this? In blueprints it seems very easy, you have the " left mouse button " pressed event. How can i achieve this in c++?