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

Method with_style

src/plot_widget_builder.rs:304–310  ·  view source on GitHub ↗

Set a custom style resolver for the plot widget.

(mut self, style: F)

Source from the content-addressed store, hash-verified

302 self.data_aspect = None;
303 }
304 self
305 }
306
307 /// Set a custom style resolver for the plot widget.
308 pub fn with_style<F>(mut self, style: F) -> Self
309 where
310 F: Fn(&Theme) -> PlotStyle + Send + Sync + 'static,
311 {
312 self.style = Some(Arc::new(style));
313 self

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected