class_docstr: Abstract class that serves as a base class for anything that
  draws on a Cairo context within a given bounding box.
  
  A subclass of L{AbstractCairoDrawer} is guaranteed to have an
  attribute named C{context} that represents the Cairo context
  to draw on, and an attribute named C{bbox} for the L{BoundingBox}
  of the drawing area.
docstr: Sets the bounding box of the drawing area where this drawer
  will draw.
docstr_tok: ["Sets","the","bounding","box","of","the","drawing","area","where","this","drawer","will","draw","."]
code: def bbox(self, bbox):
      """Sets the bounding box of the drawing area where this drawer
      will draw."""
      if not isinstance(bbox, BoundingBox):
          self._bbox = BoundingBox(bbox)
      else:
          self._bbox = bbox
  
file_path: python-igraph/src/igraph/drawing/cairo/base.py
imports: from math import pi
  from typing import Tuple, Union
  from igraph.drawing.baseclasses import AbstractDrawer
  from igraph.drawing.utils import BoundingBox
label_desc: Use image node_id 3 for calling the AbstractCairoDrawer obj's underlying member method code with example usage: obj.bbox(bbox) without return types