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.context.Context.paint operation.

See cairo.context.Context.clip, and cairo.context.Context.clipPreserve.

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

Type: cairo.types.Bool

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