SourceEnum AtomKind
from egui import AtomKindclass AtomKind:The different kinds of egui.Atoms.
Methods§
@staticmethod
def custom(_id: Id) -> AtomKind§
def custom_id(self, /) -> Id |None§
@staticmethod
def empty() -> AtomKind§
Source@staticmethod
def image(uri: str) -> AtomKind§
def image_uri(self, /) -> str |None§
Sourcedef into_sized(self, /, ui: Ui, available_size: Vec2, wrap_mode: TextWrapMode |None = None) -> SizedAtomKind§
Turn this AtomKind into a SizedAtomKind.
This converts WidgetText into egui.Galley and tries to load and size Image.
The first returned argument is the preferred size.