### Method

# Gimp Drawable mask_intersect

since: 2.2

#### Declaration [src]

    gboolean
    gimp_drawable_mask_intersect (
      GimpDrawable* drawable,
      gint* x,
      gint* y,
      gint* width,
      gint* height
    )

#### Description [src]

Find the bounding box of the current selection in relation to the specified drawable.

This procedure returns whether there is an intersection between the drawable and the selection. Unlike gimp_drawable_mask_bounds(), the intersection’s bounds are returned as x, y, width, height. If there is no selection this function returns TRUE and the returned bounds are the extents of the whole drawable.

Available since: 2.2

#### Parameters

`x`

  Type: `gint*`

  X coordinate of the upper left corner of the intersection.

  The argument will be set by the function.

`y`

  Type: `gint*`

  Y coordinate of the upper left corner of the intersection.

  The argument will be set by the function.

`width`

  Type: `gint*`

  Width of the intersection.

  The argument will be set by the function.

`height`

  Type: `gint*`

  Height of the intersection.

  The argument will be set by the function.

#### Return value

Type: `gboolean`

TRUE if the returned area is not empty.