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

Method on_hover

egui_plot/src/items/box_plot.rs:172–185  ·  view source on GitHub ↗
(
        &self,
        _plot_area_response: &egui::Response,
        elem: ClosestElem,
        shapes: &mut Vec<Shape>,
        cursors: &mut Vec<Cursor>,
        plot: &PlotConfig<'_>,
        _: 

Source from the content-addressed store, hash-verified

170 }
171
172 fn on_hover(
173 &self,
174 _plot_area_response: &egui::Response,
175 elem: ClosestElem,
176 shapes: &mut Vec<Shape>,
177 cursors: &mut Vec<Cursor>,
178 plot: &PlotConfig<'_>,
179 _: &Option<LabelFormatter<'_>>,
180 ) {
181 let box_plot = &self.boxes[elem.index];
182
183 box_plot.add_shapes(plot.transform, true, shapes);
184 box_plot.add_rulers_and_text(self, plot, shapes, cursors);
185 }
186
187 fn base(&self) -> &PlotItemBase {
188 &self.base

Callers

nothing calls this directly

Calls 2

add_shapesMethod · 0.45
add_rulers_and_textMethod · 0.45

Tested by

no test coverage detected