class_docstr: Two dimensional buffer of :class:`.Char` instances.
docstr: Add a draw-function for a `Window` which has a >= 0 z_index.
  This will be postponed until `draw_all_floats` is called.
docstr_tok: ["Add","a","draw-function","for","a","`","Window","`","which","has","a",">","=","0","z_index",".","This","will","be","postponed","until","`","draw_all_floats","`","is","called","."]
code: def draw_with_z_index(
      self, z_index: int, draw_func: Callable[[], None]
  ) -> None:
      """
      Add a draw-function for a `Window` which has a >= 0 z_index.
      This will be postponed until `draw_all_floats` is called.
      """
      self._draw_float_functions.append((z_index, draw_func))
  
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.cache import FastDictCache
  from prompt_toolkit.data_structures import Point
  from prompt_toolkit.utils import get_cwidth
label_desc: Use image node_id 7 for calling the Screen obj's underlying member method code with example usage: obj.draw_with_z_index(z_index, draw_func) without return types