Skip to content

Commit 5b6a019

Browse files
sharky98emilk
andauthored
Add Panel to replace SidePanel and TopBottomPanel (#5659)
This combines `SidePanel` and `TopBottomPanel` into a single `Panel`. The old types are still there as type aliases, but are deprecated. `.min_width(…)` etc are now called `.min_size(…)` etc. Again, the old names are still there, but deprecated. (edited by @emilk) --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
1 parent 178f3c9 commit 5b6a019

20 files changed

Lines changed: 656 additions & 756 deletions

File tree

crates/eframe/src/epi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl CreationContext<'_> {
137137
pub trait App {
138138
/// Called each time the UI needs repainting, which may be many times per second.
139139
///
140-
/// Put your widgets into a [`egui::SidePanel`], [`egui::TopBottomPanel`], [`egui::CentralPanel`], [`egui::Window`] or [`egui::Area`].
140+
/// Put your widgets into a [`egui::Panel`], [`egui::CentralPanel`], [`egui::Window`] or [`egui::Area`].
141141
///
142142
/// The [`egui::Context`] can be cloned and saved if you like.
143143
///

crates/egui/src/containers/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Containers are pieces of the UI which wraps other pieces of UI. Examples: [`Window`], [`ScrollArea`], [`Resize`], [`SidePanel`], etc.
1+
//! Containers are pieces of the UI which wraps other pieces of UI. Examples: [`Window`], [`ScrollArea`], [`Resize`], [`Panel`], etc.
22
//!
33
//! For instance, a [`Frame`] adds a frame and background to some contained UI.
44
@@ -27,7 +27,7 @@ pub use {
2727
frame::Frame,
2828
modal::{Modal, ModalResponse},
2929
old_popup::*,
30-
panel::{CentralPanel, SidePanel, TopBottomPanel},
30+
panel::*,
3131
popup::*,
3232
resize::Resize,
3333
scene::{DragPanButtons, Scene},

0 commit comments

Comments
 (0)