Method Cairo.Context()->in_stroke()


Method in_stroke

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

Description

Tests whether the given point is inside the area that would be affected by a stroke() operation given the current path and stroking parameters. Surface dimensions and clipping are not taken into account.

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.

See also

stroke(), set_line_width(), set_line_join(), set_line_cap(), set_dash(), and stroke_preserve().