mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Put all egui_demo_lib tests into their own files in their own folder (#4691)
This commit is contained in:
@@ -104,13 +104,13 @@ impl CodeExample {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::Demo for CodeExample {
|
||||
impl crate::Demo for CodeExample {
|
||||
fn name(&self) -> &'static str {
|
||||
"🖮 Code Example"
|
||||
}
|
||||
|
||||
fn show(&mut self, ctx: &egui::Context, open: &mut bool) {
|
||||
use super::View;
|
||||
use crate::View;
|
||||
egui::Window::new(self.name())
|
||||
.open(open)
|
||||
.min_width(375.0)
|
||||
@@ -121,7 +121,7 @@ impl super::Demo for CodeExample {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::View for CodeExample {
|
||||
impl crate::View for CodeExample {
|
||||
fn ui(&mut self, ui: &mut egui::Ui) {
|
||||
ui.scope(|ui| {
|
||||
ui.spacing_mut().item_spacing = egui::vec2(8.0, 8.0);
|
||||
|
||||
Reference in New Issue
Block a user