Method

GtkWidgetintersect

Declaration [src]

gboolean
gtk_widget_intersect (
  GtkWidget* widget,
  const GdkRectangle* area,
  GdkRectangle* intersection
)

Description [src]

Computes the intersection of a widget’s area and area, storing the intersection in intersection, and returns TRUE if there was an intersection. intersection may be NULL if you’re only interested in whether there was an intersection.

Parameters

area

Type: GdkRectangle

A rectangle.

The data is owned by the caller of the method.
intersection

Type: GdkRectangle

Rectangle to store intersection of widget and area.

The argument will be set by the function.
The argument can be NULL.
The returned data is owned by the instance.

Return value

Type: gboolean

TRUE if there was an intersection.