Put all egui_demo_lib tests into their own files in their own folder (#4691)
This commit is contained in:
@@ -155,13 +155,13 @@ impl PaintBezier {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::Demo for PaintBezier {
|
||||
impl crate::Demo for PaintBezier {
|
||||
fn name(&self) -> &'static str {
|
||||
") Bézier Curve"
|
||||
}
|
||||
|
||||
fn show(&mut self, ctx: &Context, open: &mut bool) {
|
||||
use super::View as _;
|
||||
use crate::View as _;
|
||||
Window::new(self.name())
|
||||
.open(open)
|
||||
.vscroll(false)
|
||||
@@ -171,7 +171,7 @@ impl super::Demo for PaintBezier {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::View for PaintBezier {
|
||||
impl crate::View for PaintBezier {
|
||||
fn ui(&mut self, ui: &mut Ui) {
|
||||
ui.vertical_centered(|ui| {
|
||||
ui.add(crate::egui_github_link_file!());
|
||||
|
||||
Reference in New Issue
Block a user