Skip to content

Commit 4b88798

Browse files
committed
Rename "Window with Panels" demo to just "Panels"
1 parent 2c837d2 commit 4b88798

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/egui_demo_lib/src/demo/demo_app_windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl Default for Demos {
3232
Box::<super::MiscDemoWindow>::default(),
3333
Box::<super::multi_touch::MultiTouch>::default(),
3434
Box::<super::painting::Painting>::default(),
35+
Box::<super::panels::Panels>::default(),
3536
Box::<super::plot_demo::PlotDemo>::default(),
3637
Box::<super::scrolling::Scrolling>::default(),
3738
Box::<super::sliders::Sliders>::default(),
@@ -42,7 +43,6 @@ impl Default for Demos {
4243
Box::<super::widget_gallery::WidgetGallery>::default(),
4344
Box::<super::window_options::WindowOptions>::default(),
4445
Box::<super::tests::WindowResizeTest>::default(),
45-
Box::<super::window_with_panels::WindowWithPanels>::default(),
4646
])
4747
}
4848
}

crates/egui_demo_lib/src/demo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub mod misc_demo_window;
1919
pub mod multi_touch;
2020
pub mod paint_bezier;
2121
pub mod painting;
22+
pub mod panels;
2223
pub mod password;
2324
pub mod plot_demo;
2425
pub mod scrolling;
@@ -31,7 +32,6 @@ pub mod text_layout;
3132
pub mod toggle_switch;
3233
pub mod widget_gallery;
3334
pub mod window_options;
34-
pub mod window_with_panels;
3535

3636
pub use {
3737
about::About, demo_app_windows::DemoWindows, misc_demo_window::MiscDemoWindow,

crates/egui_demo_lib/src/demo/window_with_panels.rs crates/egui_demo_lib/src/demo/panels.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#[derive(Clone, Default, PartialEq, Eq)]
22
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
3-
pub struct WindowWithPanels {}
3+
pub struct Panels {}
44

5-
impl super::Demo for WindowWithPanels {
5+
impl super::Demo for Panels {
66
fn name(&self) -> &'static str {
7-
"🗖 Window With Panels"
7+
"🗖 Panels"
88
}
99

1010
fn show(&mut self, ctx: &egui::Context, open: &mut bool) {
1111
use super::View as _;
12-
let window = egui::Window::new("Window with Panels")
12+
let window = egui::Window::new("Panels")
1313
.default_width(600.0)
1414
.default_height(400.0)
1515
.vscroll(false)
@@ -18,7 +18,7 @@ impl super::Demo for WindowWithPanels {
1818
}
1919
}
2020

21-
impl super::View for WindowWithPanels {
21+
impl super::View for Panels {
2222
fn ui(&mut self, ui: &mut egui::Ui) {
2323
// Note that the order we add the panels is very important!
2424

0 commit comments

Comments
 (0)