class_docstr: Base class for graphics items with boundaries relative to a GraphicsView or ViewBox.
  The purpose of this class is to allow the creation of GraphicsItems which live inside 
  a scalable view, but whose boundaries will always stay fixed relative to the view's boundaries.
  For example: GridItem, InfiniteLine
  
  The view can be specified on initialization or it can be automatically detected when the item is painted.
  
  NOTE: Only the item's boundingRect is affected; the item is not transformed in any way. Use viewRangeChanged
  to respond to changes in the view.
class_docstr_tok: ["Base","class","for","graphics","items","with","boundaries","relative","to","a","GraphicsView","or","ViewBox",".","The","purpose","of","this","class","is","to","allow","the","creation","of","GraphicsItems","which","live","inside","a","scalable","view",",","but","whose","boundaries","will","always","stay","fixed","relative","to","the","view","'s","boundaries",".","For","example",":","GridItem",",","InfiniteLine","The","view","can","be","specified","on","initialization","or","it","can","be","automatically","detected","when","the","item","is","painted",".","NOTE",":","Only","the","item","'s","boundingRect","is","affected",";","the","item","is","not","transformed","in","any","way",".","Use","viewRangeChanged","to","respond","to","changes","in","the","view","."]
docstr: ============== =============================================================================
  **Arguments:**
  bounds         QRectF with coordinates relative to view box. The default is QRectF(0,0,1,1),
                 which means the item will have the same bounds as the view.
  ============== =============================================================================
docstr_tok: ["==============","=============================================================================","*","*","Arguments",":","*","*","bounds","QRectF","with","coordinates","relative","to","view","box",".","The","default","is","QRectF","(","0,0,1,1",")",",","which","means","the","item","will","have","the","same","bounds","as","the","view",".","==============","============================================================================="]
code: def __init__(self, bounds=None, parent=None):
      """
      ============== =============================================================================
      **Arguments:**
      bounds         QRectF with coordinates relative to view box. The default is QRectF(0,0,1,1),
                     which means the item will have the same bounds as the view.
      ============== =============================================================================
      """
      GraphicsObject.__init__(self, parent)
      self.setFlag(self.GraphicsItemFlag.ItemSendsScenePositionChanges)
  
      if bounds is None:
          self._bounds = QtCore.QRectF(0, 0, 1, 1)
      else:
          self._bounds = bounds
  
      self._boundingRect = None
      self._updateView()
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/UIGraphicsItem.py
imports: from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 1 to create a new UIGraphicsItem object from inherited base classes: GraphicsObject with example: obj = UIGraphicsItem(bounds, parent)