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

Function main

examples/heatmap.rs:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6use iced::Element;
7
8fn main() -> iced::Result {
9 iced::application(new, update, view)
10 .font(include_bytes!("fonts/FiraCodeNerdFont-Regular.ttf"))
11 .default_font(iced::Font::with_name("FiraCode Nerd Font"))
12 .theme(iced::theme::Theme::TokyoNightStorm)
13 .run()
14}
15
16fn update(widget: &mut PlotWidget, message: PlotUiMessage) {
17 widget.update(message);

Callers

nothing calls this directly

Calls 1

themeMethod · 0.80

Tested by

no test coverage detected