mask_intersect


Description:

[ Version ( since = "2.2" ) ]
public bool mask_intersect (out int x, out int y, out int width, out int height)

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 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.

Parameters:

this

The drawable.

x

x coordinate of the upper left corner of the intersection.

y

y coordinate of the upper left corner of the intersection.

width

width of the intersection.

height

height of the intersection.

Returns:

TRUE if the returned area is not empty.