Method

GtkWidgetsend_expose

deprecated: 3.22 

Declaration [src]

gint
gtk_widget_send_expose (
  GtkWidget* widget,
  GdkEvent* event
)

Description [src]

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_get_has_window() is FALSE), and that is normally done using gtk_container_propagate_draw().

If you want to force an area of a window to be redrawn, use gdk_window_invalidate_rect() or gdk_window_invalidate_region(). To cause the redraw to be done immediately, follow that call with a call to gdk_window_process_updates().

Deprecated since: 3.22

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.

Parameters

event

Type: GdkEvent

A expose GdkEvent.

The data is owned by the caller of the method.

Return value

Type: gint

Return from the event signal emission (TRUE if the event was handled).