Class Window
from talon.egui import Window
class Window(Dispatch):
Recall that a Window is what contains the ui. Window object properties you can set include the following:
| property name |
type |
description |
| title |
str |
The title to show at the top of the window |
| rect |
skia.Rect |
The window's rectangle setting its initial size and position |
| decorated |
bool |
Decides if the window should have a surrounding border including buttons |
| toplevel |
bool |
Decides if the window should be toplevel, which means it is never hidden behind another window |
| autosize |
bool |
Decides if the window should set its own size based on the contents |
| draggable |
bool |
Decides if you can move the window by dragging on the window background |
SourceAttributes§
render_function: Callable[[egui.Ui], Awaitable[None]]§
title: Incomplete§
resizable: Incomplete§
draggable: Incomplete§
focusable: Incomplete§
toplevel: Incomplete§
decorated: Incomplete§
autosize: Incomplete§
transparent: Incomplete§
gravity: Incomplete§
Properties§
@property
def rect(self) -> Rect§
@rect.setter
def rect(self, rect: Rect) -> None§
Methods§
def set_content(self, fn: Callable[[egui.Ui], Awaitable[None]]) -> None§
def focus(self) -> None§
def show(self) -> None§
def hide(self) -> None§
def close(self) -> None§
def refresh(self) -> None§
def resize(self, width: int, height: int) -> None§
def set_title(self, value: str) -> None§
def set_resizable(self, value: bool) -> None§
def set_draggable(self, value: bool) -> None§
def set_focusable(self, value: bool) -> None§
def set_toplevel(self, value: bool) -> None§
def set_decorated(self, value: bool) -> None§
def set_autosize(self, value: bool) -> None§
def set_transparent(self, value: bool) -> None§
def set_gravity(self, value: str) -> None§