parameters: (self, coor, coor_m=None)
docstring: One coordinate specified:
              Is this element selected at given coordinate?
              ie: is the coordinate encompassed by one of the areas or lines?
          Both coordinates specified:
              Is this element within the rectangular region defined by both coordinates?
              ie: do any area corners or line endpoints fall within the region?
  
          Args:
              coor: the selection coordinate, tuple x, y
              coor_m: an additional selection coordinate.
  
          Returns:
              self if one of the areas/lines encompasses coor, else None.
docstring_summary: One coordinate specified:
              Is this element selected at given coordinate?
              ie: is the coordinate encompassed by one of the areas or lines?
          Both coordinates specified:
              Is this element within the rectangular region defined by both coordinates?
              ie: do any area corners or line endpoints fall within the region?
docstring_tokens: One coordinate specified : Is this element selected at given coordinate? ie : is the coordinate encompassed by one of the areas or lines? Both coordinates specified : Is this element within the rectangular region defined by both coordinates? ie : do any area corners or line endpoints fall within the region?
function: def what_is_selected(self, coor, coor_m=None):
          """
          One coordinate specified:
              Is this element selected at given coordinate?
              ie: is the coordinate encompassed by one of the areas or lines?
          Both coordinates specified:
              Is this element within the rectangular region defined by both coordinates?
              ie: do any area corners or line endpoints fall within the region?
  
          Args:
              coor: the selection coordinate, tuple x, y
              coor_m: an additional selection coordinate.
  
          Returns:
              self if one of the areas/lines encompasses coor, else None.
          """
          x, y = [a - b for a, b in zip(coor, self.coordinate)]
  
          if not coor_m:
              for x1, y1, x2, y2 in self._bounding_rects:
                  if x1 <= x <= x2 and y1 <= y <= y2:
                      return self
          else:
              x_m, y_m = [a - b for a, b in zip(coor_m, self.coordinate)]
              if y_m < y:
                  y, y_m = y_m, y
              if x_m < x:
                  x, x_m = x_m, x
  
              for x1, y1 in self._bounding_points:
                  if x <= x1 <= x_m and y <= y1 <= y_m:
                      return self
function_tokens: def what_is_selected ( self , coor , coor_m = None ) : x , y = [ a - b for a , b in zip ( coor , self . coordinate ) ] if not coor_m : for x1 , y1 , x2 , y2 in self . _bounding_rects : if x1 <= x <= x2 and y1 <= y <= y2 : return self else : x_m , y_m = [ a - b for a , b in zip ( coor_m , self . coordinate ) ] if y_m < y : y , y_m = y_m , y if x_m < x : x , x_m = x_m , x for x1 , y1 in self . _bounding_points : if x <= x1 <= x_m and y <= y1 <= y_m : return self