Ejemplo n.º 1
0
  def hit_test(self, pointer_x, pointer_y):

    # translate to local coords
    (x, y) = self._translate_pointer_local(pointer_x, pointer_y)
    
    self.mouse_over_property = MathLib.rect_test(x, y,
                                                 0.0,  -self.world_height-(self.decorator_size/4.0),
                                                 self.decorator_size, self.decorator_size/2.0)
    
    return Newton.hit_test(self, pointer_x, pointer_y)