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

Method new

examples/themes_and_styles.rs:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32impl App {
33 fn new() -> Self {
34 let theme_choice = ThemeChoice::TokyoNightStorm;
35 let style_choice = StyleChoice::Default;
36
37 Self {
38 widget: plot_widget(style_choice),
39 theme_choice,
40 style_choice,
41 }
42 }
43
44 fn update(&mut self, message: Message) {
45 match message {

Callers

nothing calls this directly

Calls 1

plot_widgetFunction · 0.70

Tested by

no test coverage detected