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 GdkRectangle
 

A rectangle.

 The data is owned by the caller of the function.
intersection GdkRectangle
 

Rectangle to store intersection of widget and area.

 The argument will be set by the function.
 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE if there was an intersection.