MCPcopy Create free account
hub / github.com/emilk/egui_plot / text

Method text

egui_plot/src/plot.rs:2051–2057  ·  view source on GitHub ↗

Add a text.

(&mut self, text: crate::Text)

Source from the content-addressed store, hash-verified

2049
2050 /// Add a text.
2051 pub fn text(&mut self, text: crate::Text) {
2052 if text.text.is_empty() {
2053 return;
2054 }
2055
2056 self.items.push(Box::new(text));
2057 }
2058
2059 /// Add data points.
2060 pub fn points(&mut self, mut points: crate::Points<'a>) {

Callers 4

show_controlsMethod · 0.80
show_controlsMethod · 0.80
show_plotMethod · 0.80
uiMethod · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected