S or /

SourceClass PanelState

from egui import PanelState
class PanelState:

State regarding panels.

Properties§

@property def rect(self, /) -> Rect§
@rect.setter def rect(self, /, rect: Rect) -> None§

Methods§

Source@staticmethod def load(ctx: Context, bar_id: Id) -> PanelState |None§
Sourcedef size(self, /) -> Vec2§

The outer size of the panel (from previous frame), i.e. including the Frame margin & border.