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

Method arrows

egui_plot/src/plot.rs:2073–2083  ·  view source on GitHub ↗

Add arrows.

(&mut self, mut arrows: crate::Arrows<'a>)

Source from the content-addressed store, hash-verified

2071
2072 /// Add arrows.
2073 pub fn arrows(&mut self, mut arrows: crate::Arrows<'a>) {
2074 if arrows.origins.is_empty() || arrows.tips.is_empty() {
2075 return;
2076 }
2077
2078 // Give the arrows an automatic color if no color has been assigned.
2079 if arrows.color == Color32::TRANSPARENT {
2080 arrows.color = self.auto_color();
2081 }
2082 self.items.push(Box::new(arrows));
2083 }
2084
2085 /// Add an image.
2086 pub fn image(&mut self, image: crate::PlotImage) {

Callers 1

show_plotMethod · 0.80

Calls 2

is_emptyMethod · 0.80
auto_colorMethod · 0.80

Tested by

no test coverage detected