mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -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:
@@ -30,7 +30,7 @@ struct MyTestApp {}
|
||||
|
||||
impl eframe::App for MyTestApp {
|
||||
fn ui(&mut self, ui: &mut egui::Ui, frame: &mut eframe::Frame) {
|
||||
egui::Panel::top("top").show_inside(ui, |ui| {
|
||||
egui::Panel::top("top").show(ui, |ui| {
|
||||
ui.label("This is a test of painting directly with glow.");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user