SourceClass WidgetRects
from egui import WidgetRectsclass WidgetRects:Stores the WidgetRects of all widgets generated during a single egui update/frame.
All egui.Uis have a WidgetRect. It is created in egui.Ui() with Rect.NOTHING
and updated with the correct Rect when the egui.Ui is dropped.
Methods§
Sourcedef clear(self, /) -> None§
Clear the contents while retaining allocated memory.
Sourcedef contains(self, /, id: Id) -> bool§
@staticmethod
def default() -> WidgetRects§
Sourcedef get(self, /, id: Id) -> WidgetRect |None§
Sourcedef get_layer(self, /, layer_id: LayerId) -> list[WidgetRect]§
All widgets in this layer, sorted back-to-front.
Sourcedef info(self, /, id: Id) -> WidgetInfo |None§
Sourcedef insert(self, /, widget_rect: WidgetRect, options: InteractOptions |None = None) -> None§
Insert the given widget rect in the given layer.
Sourcedef layer_ids(self, /) -> list[LayerId]§
All known layers with widgets.
Sourcedef layers(self, /) -> list[tuple[LayerId, list[WidgetRect]]]§
Sourcedef order(self, /, id: Id) -> tuple[LayerId, int] |None§
In which layer, and in which order in that layer?