Gtk.Widget.prototype.event
function event(event:Gdk.Event):Boolean { // Gjs wrapper for gtk_widget_event() }
Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don't use this function; instead, use main_do_event so the event will behave as if it were in the event queue. Don't synthesize expose events; instead, use Gdk.invalidate_rect to invalidate a region of the window.
- event
- Returns
return from the event signal emission (true if the event was handled)