mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Rename Panel methods (#8192)
The three methods for showing a `Panel` are now: * `panel.show`: always show the panel. * `panel.show_collapsible`: show or hide the panel, with a slide animation in between. * `Panel::show_switched`: animate between two different panels: a thin/collapsed one and a thick/expanded one.
This commit is contained in:
@@ -219,7 +219,7 @@ impl winit::application::ApplicationHandler<UserEvent> for GlowApp {
|
||||
.as_mut()
|
||||
.unwrap()
|
||||
.run(self.gl_window.as_mut().unwrap().window(), |ui| {
|
||||
egui::Panel::left("my_side_panel").show_inside(ui, |ui| {
|
||||
egui::Panel::left("my_side_panel").show(ui, |ui| {
|
||||
ui.heading("Hello World!");
|
||||
if ui.button("Quit").clicked() {
|
||||
quit = true;
|
||||
|
||||
Reference in New Issue
Block a user