Gtk.Widget.RegionIntersect Method
Computes the intersection of a widget's area and region, returning the intersection.

Syntax

public Gdk.Region RegionIntersect (Gdk.Region region)

Parameters

region
A Gdk.Region, in the same coordinate system as widget->allocation. That is, relative to widget->window for WidgetFlags.NoWindowwidgets; relative to the parent window of widget->window for widgets with their own window.

Returns

A newly allocated region holding the intersection of widget and region. The coordinates of the return value are relative to widget->window for WidgetFlags.NoWindowwidgets, and relative to the parent window of widget->window for widgets with their own window.

Remarks

The result may be empty, use Gdk.Region.Empty to check.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)