parameters: (self, x, y)
return_statement: return True
docstring: Returns True iff this object contains the given point.
  
              This is used to determine if the user clicked on the object.
docstring_summary: Returns True iff this object contains the given point.
docstring_tokens: Returns True iff this object contains the given point .
function: def objectContainsPoint(self, x, y):
          """ Returns True iff this object contains the given point.
  
              This is used to determine if the user clicked on the object.
          """
          # Firstly, ignore any points outside of the object's bounds.
  
          if x < self.position.x: return False
          if x > self.position.x + self.size.x: return False
          if y < self.position.y: return False
          if y > self.position.y + self.size.y: return False
  
          # Rectangles are easy -- they're always selected if the
          # point is within their bounds.
          return True
function_tokens: def objectContainsPoint ( self , x , y ) : # Firstly, ignore any points outside of the object's bounds. if x < self . position . x : return False if x > self . position . x + self . size . x : return False if y < self . position . y : return False if y > self . position . y + self . size . y : return False # Rectangles are easy -- they're always selected if the # point is within their bounds. return True