parameters: (self, x, y)
return_statement: return None
docstring: Finds a tool for the given mouse position.
  
          :param integer `x`: mouse `x` position;
          :param integer `y`: mouse `y` position.
  
          :returns: a pointer to a :class:`AuiToolBarItem` if a tool is found, or ``None`` otherwise.
docstring_summary: Finds a tool for the given mouse position.
docstring_tokens: Finds a tool for the given mouse position .
function: def FindToolForPosition(self, x, y):
          """
          Finds a tool for the given mouse position.
  
          :param integer `x`: mouse `x` position;
          :param integer `y`: mouse `y` position.
  
          :returns: a pointer to a :class:`AuiToolBarItem` if a tool is found, or ``None`` otherwise.
          """
  
          for i, item in enumerate(self._items):
              if not item.sizer_item:
                  continue
  
              rect = item.sizer_item.GetRect()
              if rect.Contains((x,y)):
              
                  # if the item doesn't fit on the toolbar, return None
                  if not self.GetToolFitsByIndex(i):
                      return None
  
                  return item
              
          return None
function_tokens: def FindToolForPosition ( self , x , y ) : for i , item in enumerate ( self . _items ) : if not item . sizer_item : continue rect = item . sizer_item . GetRect ( ) if rect . Contains ( ( x , y ) ) : # if the item doesn't fit on the toolbar, return None if not self . GetToolFitsByIndex ( i ) : return None return item return None