Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
pip._vendor.rich.padding.Padding Class Reference
Inheritance diagram for pip._vendor.rich.padding.Padding:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.rich.padding.Padding:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, "RenderableType" renderable, "PaddingDimensions" pad=(0, 0, 0, 0), *Union[str, Style] style="none", bool expand=True)
 
"Padding" indent (cls, "RenderableType" renderable, int level)
 
str __repr__ (self)
 
"RenderResult" __rich_console__ (self, "Console" console, "ConsoleOptions" options)
 
"Measurement" __rich_measure__ (self, "Console" console, "ConsoleOptions" options)
 

Static Public Member Functions

Tuple[int, int, int, int] unpack ("PaddingDimensions" pad)
 

Public Attributes

 renderable
 
 top
 
 right
 
 bottom
 
 left
 
 style
 
 expand
 

Additional Inherited Members

- Protected Member Functions inherited from pip._vendor.rich.jupyter.JupyterMixin
Dict[str, str] _repr_mimebundle_ ("ConsoleRenderable" self, Sequence[str] include, Sequence[str] exclude, **Any kwargs)
 

Detailed Description

Draw space around content.

Example:
    >>> print(Padding("Hello", (2, 4), style="on blue"))

Args:
    renderable (RenderableType): String or other renderable.
    pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders.
        May be specified with 1, 2, or 4 integers (CSS style).
    style (Union[str, Style], optional): Style for padding characters. Defaults to "none".
    expand (bool, optional): Expand padding to fit available width. Defaults to True.

Member Function Documentation

◆ indent()

"Padding" pip._vendor.rich.padding.Padding.indent (   cls,
"RenderableType"  renderable,
int  level 
)
Make padding instance to render an indent.

Args:
    renderable (RenderableType): String or other renderable.
    level (int): Number of characters to indent.

Returns:
    Padding: A Padding instance.

◆ unpack()

Tuple[int, int, int, int] pip._vendor.rich.padding.Padding.unpack ( "PaddingDimensions"  pad)
static
Unpack padding specified in CSS style.

The documentation for this class was generated from the following file: