Gtk.Widget.contains
Description: Reference for Gtk.Widget.contains

### Virtual Method

# Gtk Widgetcontains

#### Declaration [src]

    gboolean
    contains (
      GtkWidget* widget,
      double x,
      double y
    )

#### Description [src]

Tests if the point at (`x`, `y`) is contained in `widget`.

The coordinates for (`x`, `y`) must be in widget coordinates, so (0, 0) is assumed to be the top left of `widget`‘s content area.

#### Parameters

`x` | `double`
| X coordinate to test, relative to `widget`‘s origin.
`y` | `double`
| Y coordinate to test, relative to `widget`‘s origin.

#### Return value

Returns: | `gboolean`
| `TRUE` if `widget` contains (`x`, `y`).