ok = ccontext:InStroke(x, y)
See ccontext:Stroke(), ccontext:SetLineWidth(), ccontext:SetLineJoin(), ccontext:SetLineCap(), ccontext:SetDash(), and ccontext:StrokePreserve().
This function returns a non-zero value if the point is inside, or zero if outside.