MCPcopy Create free account
hub / github.com/emilk/egui_plot / ui

Method ui

demo/src/app.rs:23–33  ·  view source on GitHub ↗
(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame)

Source from the content-addressed store, hash-verified

21
22impl eframe::App for DemoGallery {
23 fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
24 let screen_rect = ui.max_rect();
25 let is_small_screen = screen_rect.width() < 1024.0;
26
27 Self::top_bar(ui);
28 if !is_small_screen && let Some(index) = self.current_example {
29 self.info_panel(ui, index);
30 }
31 self.thumbnails_panel(ui, screen_rect.width() / 3.0);
32 self.demo_panel(ui);
33 }
34}
35
36impl DemoGallery {

Callers 1

top_barMethod · 0.45

Calls 4

info_panelMethod · 0.80
thumbnails_panelMethod · 0.80
demo_panelMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected