How can i call a custom event in widget?

I have tried casting but i dont know what im am going to plug in the object.

What is the custom event in?