Method Cairo.Context()->in_clip()


Method in_clip

bool in_clip(float|int x, float|int y)

Description

Tests whether the given point is inside the area that would be visible through the current clip, i.e. the area that would be filled by a paint() operation.

See also

clip(), and clip_preserve().

Parameter x

X coordinate of the point to test

Parameter y

Y coordinate of the point to test

Returns

A non-zero value if the point is inside, or zero if outside.