1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Make egui_plot::PlotMemory public (#3871)

This allows users to e.g. read/write the plot bounds/transform before
and after showing a `Plot`.
This commit is contained in:
Emil Ernerfeldt
2024-01-23 09:47:47 +01:00
committed by GitHub
parent aa67d3180b
commit 2f9a4ca6e8
5 changed files with 163 additions and 98 deletions

View File

@@ -226,7 +226,7 @@ impl LegendWidget {
}
// Get the name of the hovered items.
pub fn hovered_entry_name(&self) -> Option<String> {
pub fn hovered_item_name(&self) -> Option<String> {
self.entries
.iter()
.find(|(_, entry)| entry.hovered)