Widget.sendExpose

int sendExpose(gdk.event.Event event)

Very rarely-used function. This function is used to emit an expose event on a widget. This function is not normally used directly. The only time it is used is when propagating an expose event to a windowless child widget (gtk.widget.Widget.getHasWindow is false), and that is normally done using gtk.container.Container.propagateDraw.

If you want to force an area of a window to be redrawn, use gdk.window.Window.invalidateRect or gdk.window.Window.invalidateRegion. To cause the redraw to be done immediately, follow that call with a call to gdk.window.Window.processUpdates.

Parameters

eventa expose #GdkEvent

Returns

return from the event signal emission (true if

the event was handled)

Deprecated

Application and widget code should not handle

expose events directly; invalidation should use the #GtkWidget API, and drawing should only happen inside #GtkWidget::draw implementations