SourceClass Separator
from egui import Separatorclass Separator:A visual separator. A horizontal or vertical line (depending on egui.Layout).
Usually you'd use the shorter version Ui.separator.
Methods§
@staticmethod
def default() -> Separator§
Sourcedef grow(self, /, extra: float) -> Separator§
Extend each end of the separator line by this much.
The default is to take up the available width/height of the parent.
This will make the line extend outside the parent ui.
Sourcedef horizontal(self, /) -> Separator§
Explicitly ask for a horizontal line.
By default you will get a horizontal line in vertical layouts, and a vertical line in horizontal layouts.
def show(self, /, ui: Ui) -> Response§
Sourcedef shrink(self, /, shrink: float) -> Separator§
Contract each end of the separator line by this much.
The default is to take up the available width/height of the parent.
This effectively adds margins to the line.
Sourcedef spacing(self, /, spacing: float) -> Separator§
How much space we take up. The line is painted in the middle of this.
In a vertical layout, with a horizontal Separator, this is the height of the separator widget.
In a horizontal layout, with a vertical Separator, this is the width of the separator widget.
Sourcedef vertical(self, /) -> Separator§
Explicitly ask for a vertical line.
By default you will get a horizontal line in vertical layouts, and a vertical line in horizontal layouts.