def contains_point(self, x, y, d=<NUM_LIT:2>):
if self.path != None and len(self.path) > <NUM_LIT:1>and self.path.contains(x, y):<EOL><INDENT>if not self.path.contains(x+d, y)or not self.path.contains(x, y+d)or not self.path.contains(x-d, y)or not self.path.contains(x, y-d)or not self.path.contains(x+d, y+d)or not self.path.contains(x-d, y-d)or not self.path.contains(x+d, y-d)or not self.path.contains(x-d, y+d):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Returns true when x, y is on the path stroke outline.