S or /

SourceClass Resize

from egui import Resize
class Resize:

A region that can be resized by dragging the bottom right corner.

Methods§

Sourcedef auto_sized(self, /) -> Resize§

Not manually resizable, just takes the size of its contents. Text will not wrap, but will instead make your window width expand.

@staticmethod def default() -> Resize§
Sourcedef default_height(self, /, height: float) -> Resize§

Preferred / suggested height. Actual height will depend on contents.

Examples: * if the contents is a egui.ScrollArea then this decides the maximum size. * if the contents is a canvas, this decides the height of it, * if the contents is text and buttons, then the default_height is ignored and the height is picked automatically..

Sourcedef default_size(self, /, default_size: Vec2) -> Resize§
Sourcedef default_width(self, /, width: float) -> Resize§

Preferred / suggested width. Actual width will depend on contents.

Examples: * if the contents is text, this will decide where we break long lines. * if the contents is a canvas, this decides the width of it, * if the contents is some buttons, this is ignored and we will auto-size.

Sourcedef fixed_size(self, /, size: Vec2) -> Resize§
Sourcedef id(self, /, id: Id) -> Resize§

Assign an explicit and globally unique id.

Sourcedef id_salt(self, /, id_salt: str) -> Resize§

A source for the unique Id, e.g. .id_salt("second_resize_area") or .id_salt(loop_index).

def id_source(self, /, id_source: str) -> Resize§
Sourcedef is_resizable(self, /) -> tuple[bool, bool]§
Sourcedef max_height(self, /, max_height: float) -> Resize§

Won't expand to larger than this

Sourcedef max_size(self, /, max_size: Vec2) -> Resize§

Won't expand to larger than this

Sourcedef max_width(self, /, max_width: float) -> Resize§

Won't expand to larger than this

Sourcedef min_height(self, /, min_height: float) -> Resize§

Won't shrink to smaller than this

Sourcedef min_size(self, /, min_size: Vec2) -> Resize§

Won't shrink to smaller than this

Sourcedef min_width(self, /, min_width: float) -> Resize§

Won't shrink to smaller than this

Sourcedef resizable(self, /, resizable: Any) -> Resize§

Can you resize it with the mouse?

Note that a window can still auto-resize.

Default is True.

Sourcedef show(self, /) -> Any§
Sourcedef with_stroke(self, /, with_stroke: bool) -> Resize§