class_docstr: Two dimensional buffer of :class:`.Char` instances.
docstr: Draw all float functions in order of z-index.
docstr_tok: ["Draw","all","float","functions","in","order","of","z-index","."]
code: def draw_all_floats(self) -> None:
      """
      Draw all float functions in order of z-index.
      """
      # We keep looping because some draw functions could add new functions
      # to this list. See `FloatContainer`.
      while self._draw_float_functions:
          # Sort the floats that we have so far by z_index.
          functions = sorted(
              self._draw_float_functions, key=lambda item: item[0]
          )
  
          # Draw only one at a time, then sort everything again. Now floats
          # might have been added.
          self._draw_float_functions = functions[1:]
          functions[0][1]()
  
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 8 for calling the Screen obj's underlying member method code with example usage: obj.draw_all_floats() without return types