Gdk.Window.InvalidateRegion Method
Adds region to the update area for the window. The update area is the region that needs to be redrawn, or "dirty region."

Syntax

public void InvalidateRegion (Region region, bool invalidate_children)

Parameters

region
A Gdk.Region
invalidate_children
A bool

Remarks

The call Window.ProcessUpdates sends one or more expose events to the window, which together cover the entire update area. An application would normally redraw the contents of window in response to those expose events. GDK will call Window.ProcessAllUpdates on your behalf whenever your program returns to the main loop and becomes idle, so normally there's no need to do that manually, you just need to invalidate regions that you know should be redrawn. The invalidate_children parameter controls whether the region of each child window that intersects region will also be invalidated. If false, then the update area for child windows will remain unaffected. See Window.InvalidateMaybeRecurse if you need fine grained control over which children are invalidated.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)