class_docstr: Base interface for a margin.
class_docstr_tok: ["Base","interface","for","a","margin","."]
docstr: Creates a margin.
  This should return a list of (style_str, text) tuples.
  
  :param window_render_info:
      :class:`~prompt_toolkit.layout.containers.WindowRenderInfo`
      instance, generated after rendering and copying the visible part of
      the :class:`~prompt_toolkit.layout.controls.UIControl` into the
      :class:`~prompt_toolkit.layout.containers.Window`.
  :param width: The width that's available for this margin. (As reported
      by :meth:`.get_width`.)
  :param height: The height that's available for this margin. (The height
      of the :class:`~prompt_toolkit.layout.containers.Window`.)
docstr_tok: ["Creates","a","margin",".","This","should","return","a","list","of","(","style_str",",","text",")","tuples",".",":","param","window_render_info",":",":","class",":","`","~prompt_toolkit.layout.containers.WindowRenderInfo","`","instance",",","generated","after","rendering","and","copying","the","visible","part","of","the",":","class",":","`","~prompt_toolkit.layout.controls.UIControl","`","into","the",":","class",":","`","~prompt_toolkit.layout.containers.Window","`",".",":","param","width",":","The","width","that","'s","available","for","this","margin",".","(","As","reported","by",":","meth",":","`",".get_width","`",".",")",":","param","height",":","The","height","that","'s","available","for","this","margin",".","(","The","height","of","the",":","class",":","`","~prompt_toolkit.layout.containers.Window","`",".",")"]
code: def create_margin(
      self,
      window_render_info: WindowRenderInfo,
      width: int,
      height: int,
  ) -> StyleAndTextTuples:
      """
      Creates a margin.
      This should return a list of (style_str, text) tuples.
  
      :param window_render_info:
          :class:`~prompt_toolkit.layout.containers.WindowRenderInfo`
          instance, generated after rendering and copying the visible part of
          the :class:`~prompt_toolkit.layout.controls.UIControl` into the
          :class:`~prompt_toolkit.layout.containers.Window`.
      :param width: The width that's available for this margin. (As reported
          by :meth:`.get_width`.)
      :param height: The height that's available for this margin. (The height
          of the :class:`~prompt_toolkit.layout.containers.Window`.)
      """
      return []
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import StyleAndTextTuples, fragment_list_to_text, to_formatted_text
  from prompt_toolkit.utils import get_cwidth
  from .controls import UIContent
label_desc: Use image node_id 2 for calling the Margin obj's underlying member method code with example usage: obj.create_margin(window_render_info, width, height) and returns: list