An entry in the plot legend.
| 9 | #[derive(Debug, Clone)] |
| 10 | /// An entry in the plot legend. |
| 11 | pub(crate) struct LegendEntry { |
| 12 | pub(crate) id: ShapeId, |
| 13 | pub(crate) label: String, |
| 14 | pub(crate) color: Color, |
| 15 | pub(crate) _marker: u32, |
| 16 | pub(crate) _line_style: Option<LineStyle>, |
| 17 | pub(crate) hidden: bool, |
| 18 | } |
| 19 | |
| 20 | pub(crate) fn legend(widget: &PlotWidget, collapsed: bool) -> Option<Element<'_, PlotUiMessage>> { |
| 21 | let entries: Vec<LegendEntry> = widget.legend_entries(); |
nothing calls this directly
no outgoing calls
no test coverage detected