S or /

SourceEnum SizeHint

from egui import SizeHint
class SizeHint:

Given as a hint for image loading requests.

Used mostly for rendering SVG:s to a good size. The SizeHint determines at what resolution the image should be rasterized.

Methods§

@staticmethod def Height(height: int) -> SizeHint§
@staticmethod def Scale(scale: float) -> SizeHint§
@staticmethod def Size(width: int, height: int, maintain_aspect_ratio: bool) -> SizeHint§
@staticmethod def Width(width: int) -> SizeHint§
@staticmethod def default() -> SizeHint§
@staticmethod def height(height: int) -> SizeHint§
def height_value(self, /) -> int |None§
def kind(self, /) -> str§
def maintain_aspect_ratio(self, /) -> bool |None§
@staticmethod def scale(scale: float) -> SizeHint§
Sourcedef scale_by(self, /, factor: float) -> SizeHint§

Multiply size hint by a factor.

def scale_value(self, /) -> float |None§
@staticmethod def size(width: int, height: int, maintain_aspect_ratio: bool) -> SizeHint§
@staticmethod def width(width: int) -> SizeHint§
def width_value(self, /) -> int |None§