S or /

SourceClass UiStack

from egui import UiStack
class UiStack:

Information about a egui.Ui and its parents.

UiStack serves to keep track of the current hierarchy of egui.Uis, such that nested widgets or user code may adapt to the surrounding context or obtain layout information from a egui.Ui that might be several steps higher in the hierarchy.

Note: since UiStack contains a reference to its parent, it is both a stack, and a node within that stack. Most of its methods are about the specific node, but some methods walk up the hierarchy to provide information about the entire stack.

Properties§

@property def classes(self, /) -> Classes§
@property def id(self, /) -> Id§
@property def info(self, /) -> UiStackInfo§
@property def layout_direction(self, /) -> Direction§
@property def max_rect(self, /) -> Rect§
@property def min_rect(self, /) -> Rect§
@property def parent(self, /) -> UiStack |None§

Methods§

Sourcedef bg_color(self, /) -> Color32§

The background color of this egui.Ui.

This blend together all Frame.fill colors up to the root.

Sourcedef contained_in(self, /, kind: UiKind) -> bool§

Check if this node is or is contained in a egui.Ui of a specific kind.

Sourcedef frame(self, /) -> Frame§
def has_tag(self, /, key: str) -> bool§
Sourcedef has_visible_frame(self, /) -> bool§

This this egui.Ui a egui.Frame with a visible stroke?

Sourcedef is_area_ui(self, /) -> bool§

Is this egui.Ui an egui.Area?

Sourcedef is_panel_ui(self, /) -> bool§

Is this egui.Ui a panel?

Sourcedef is_root_ui(self, /) -> bool§

Is this a root egui.Ui, i.e. created with egui.Ui()?

Sourcedef kind(self, /) -> UiKind |None§
def lineage(self, /) -> list[UiStack]§
def tag_bool(self, /, key: str) -> bool |None§
def tag_float(self, /, key: str) -> float |None§
def tag_int(self, /, key: str) -> int |None§
def tag_keys(self, /) -> list[str]§
def tag_string(self, /, key: str) -> str |None§