mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Put all egui_demo_lib tests into their own files in their own folder (#4691)
This commit is contained in:
@@ -35,7 +35,7 @@ impl Default for WindowOptions {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::Demo for WindowOptions {
|
||||
impl crate::Demo for WindowOptions {
|
||||
fn name(&self) -> &'static str {
|
||||
"🗖 Window Options"
|
||||
}
|
||||
@@ -60,7 +60,7 @@ impl super::Demo for WindowOptions {
|
||||
ctx.request_repaint();
|
||||
}
|
||||
|
||||
use super::View as _;
|
||||
use crate::View as _;
|
||||
let mut window = egui::Window::new(title)
|
||||
.id(egui::Id::new("demo_window_options")) // required since we change the title
|
||||
.resizable(resizable)
|
||||
@@ -79,7 +79,7 @@ impl super::Demo for WindowOptions {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::View for WindowOptions {
|
||||
impl crate::View for WindowOptions {
|
||||
fn ui(&mut self, ui: &mut egui::Ui) {
|
||||
let Self {
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user