Context.inStroke

Tests whether the given point is inside the area that would be affected by a cairo_stroke() operation given the current path and stroking parameters. Surface dimensions and clipping are not taken into account. See cairo_stroke(), cairo_set_line_width(), cairo_set_line_join(), cairo_set_line_cap(), cairo_set_dash(), and cairo_stroke_preserve().

class Context
inStroke
(
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.

Meta