Emit
This function is used to add a new event to the event queue. Widget scripts use this to notify the main program that the user has interacted with the widget in some manner. You can also add your own custom events by setting the event id parameter.
Syntax
- static void Emit(const int id, Object* source=NULL, const int data=0, const int x=0, const int y=0, const int width=0, const int height=0, Object* extra=NULL)