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

Function label_button

src/legend.rs:66–70  ·  view source on GitHub ↗
(label: &str)

Source from the content-addressed store, hash-verified

64 )
65}
66fn label_button(label: &str) -> Element<'_, PlotUiMessage> {
67 button(text(label).size(12.0))
68 .on_press(PlotUiMessage::ToggleLegend)
69 .into()
70}
71
72fn legend_container<'a>(
73 content: impl Into<Element<'a, PlotUiMessage>>,

Callers 1

legendFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected