Put all egui_demo_lib tests into their own files in their own folder (#4691)

This commit is contained in:
Emil Ernerfeldt
2024-06-23 10:53:04 +02:00
committed by GitHub
parent 2c00cb3991
commit fb4c6cc619
37 changed files with 689 additions and 690 deletions
+3 -3
View File
@@ -2,13 +2,13 @@
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct Panels {}
impl super::Demo for Panels {
impl crate::Demo for Panels {
fn name(&self) -> &'static str {
"🗖 Panels"
}
fn show(&mut self, ctx: &egui::Context, open: &mut bool) {
use super::View as _;
use crate::View as _;
let window = egui::Window::new("Panels")
.default_width(600.0)
.default_height(400.0)
@@ -18,7 +18,7 @@ impl super::Demo for Panels {
}
}
impl super::View for Panels {
impl crate::View for Panels {
fn ui(&mut self, ui: &mut egui::Ui) {
// Note that the order we add the panels is very important!