S or /

SourceEnum AtomKind

from egui import AtomKind
class 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.

def kind_name(self, /) -> str§
@staticmethod def layout(layout: AtomLayout) -> AtomKind§
Source@staticmethod def text(text: WidgetText) -> AtomKind§
@staticmethod def text_str(text: str) -> AtomKind§
def text_value(self, /) -> str |None§