user defined events

hello,

I intend to connect a widget’s raw-callbacks with user-defined events. How
can I safely use my own event-types or is there another way to do it?