(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame)
| 21 | |
| 22 | impl 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 | |
| 36 | impl DemoGallery { |
no test coverage detected