S or /

SourceClass RepaintCause

from egui import RepaintCause
class RepaintCause:

Properties§

@property def file(self, /) -> str§
@property def line(self, /) -> int§
@line.setter def line(self, /, line: int) -> None§
@property def reason(self, /) -> str§
@reason.setter def reason(self, /, reason: str) -> None§

Methods§

Source@staticmethod def new() -> RepaintCause§

Capture the file and line number of the call site.

Source@staticmethod def new_reason(reason: str) -> RepaintCause§

Capture the file and line number of the call site, as well as add a reason.