Method

GtkWidgetqueue_draw_area

Declaration [src]

void
gtk_widget_queue_draw_area (
  GtkWidget* widget,
  gint x,
  gint y,
  gint width,
  gint height
)

Description [src]

Convenience function that calls gtk_widget_queue_draw_region() on the region created from the given coordinates.

The region here is specified in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that return TRUE for gtk_widget_get_has_window(), and are relative to widget->allocation.x, widget->allocation.y otherwise.

width or height may be 0, in this case this function does nothing. Negative values for width and height are not allowed.

Parameters

x

Type: gint

X coordinate of upper-left corner of rectangle to redraw.

y

Type: gint

Y coordinate of upper-left corner of rectangle to redraw.

width

Type: gint

Width of region to draw.

height

Type: gint

Height of region to draw.