SourceClass Atoms
from egui import Atomsclass Atoms:A list of Atoms.
Many widgets take an impl IntoAtoms parameter,
which allows you to easily create atoms from tuples of text, images, and other atoms:
```
use egui::{AtomExt, AtomKind, Atom, Image, Id, Vec2};
egui::__run_test_ui(|ui| {
let image = egui::include_image!("../../../eframe/data/icon.png"); ui.button((image, "Click me!"));
});
Methods§
@staticmethod
def from_list(atoms: Sequence[Atom]) -> Atoms§
def is_empty(self, /) -> bool§
def items(self, /) -> list[Atom]§
def len(self, /) -> int§
Sourcedef push_left(self, /, atom: Atom) -> None§
Insert a new Atom at the beginning of the list (left side).
Sourcedef push_right(self, /, atom: Atom) -> None§
Insert a new Atom at the end of the list (right side).