Context.inClip

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 cairo_paint() operation. See cairo_clip(), and cairo_clip_preserve(). Since 1.10

class Context
inClip
(
double x
,
double y
)

Parameters

x double

X coordinate of the point to test

y double

Y coordinate of the point to test

Return Value

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