MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / LegendEntry

Class LegendEntry

src/legend.rs:11–18  ·  view source on GitHub ↗

An entry in the plot legend.

Source from the content-addressed store, hash-verified

9#[derive(Debug, Clone)]
10/// An entry in the plot legend.
11pub(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
20pub(crate) fn legend(widget: &PlotWidget, collapsed: bool) -> Option<Element<'_, PlotUiMessage>> {
21 let entries: Vec<LegendEntry> = widget.legend_entries();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected