1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

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

View File

@@ -14,7 +14,7 @@ impl Default for TextEditDemo {
}
}
impl super::Demo for TextEditDemo {
impl crate::Demo for TextEditDemo {
fn name(&self) -> &'static str {
"🖹 TextEdit"
}
@@ -24,13 +24,13 @@ impl super::Demo for TextEditDemo {
.open(open)
.resizable(false)
.show(ctx, |ui| {
use super::View as _;
use crate::View as _;
self.ui(ui);
});
}
}
impl super::View for TextEditDemo {
impl crate::View for TextEditDemo {
fn ui(&mut self, ui: &mut egui::Ui) {
ui.vertical_centered(|ui| {
ui.add(crate::egui_github_link_file!());