Package: cairo

Function cairo:in-clip

Lambda List

cairo:in-clip (cr x y)

Arguments

cr -- a cairo:context-t instance
x -- a number for the x coordinate of the point to test
y -- a number for the y coordinate of the point to test

Return Value

True if the point is inside, or false if outside.

Details

Tests whether the given point is inside the area that would be visible through the current clip, that is, the area that would be filled by a call to the cairo:paint function.

See the cairo:clip and cairo:clip-preserve functions.

Notes

The numbers for the arguments are coerced to double floats before being passed to the foreign C function.
 

See also

2025-1-2