SourceClass AreaState
from egui import AreaStateclass AreaState:State of an Area that is persisted between frames.
Areas back egui.Windows and other floating containers,
like tooltips and the popups of egui.ComboBox.
Properties§
@property
def interactable(self, /) -> bool§
@interactable.setter
def interactable(self, /, interactable: bool) -> None§
@property
def last_became_visible_at(self, /) -> float |None§
@last_became_visible_at.setter
def last_became_visible_at(self, /, last_became_visible_at: float |None) -> None§
@property
def pivot(self, /) -> Align2§
@pivot.setter
def pivot(self, /, pivot: Align2) -> None§
@property
def pivot_pos(self, /) -> Pos2 |None§
@pivot_pos.setter
def pivot_pos(self, /, pivot_pos: Pos2 |None) -> None§
@property
def size(self, /) -> Vec2 |None§
@size.setter
def size(self, /, size: Vec2 |None) -> None§
Methods§
@staticmethod
def default() -> AreaState§
Sourcedef left_top_pos(self, /) -> Pos2§
The left top positions of the area.
Source@staticmethod
def load(ctx: Context, id: Id) -> AreaState |None§
Load the state of an Area from memory.
Sourcedef rect(self, /) -> Rect§
Where the area is on screen.
Sourcedef set_left_top_pos(self, /, pos: Pos2) -> None§
Move the left top positions of the area.