Struct egui::containers::panel::SidePanel [−][src]
pub struct SidePanel { /* fields omitted */ }
Expand description
A panel that covers the entire left or right side of a Ui
or screen.
The order in which you add panels matter! The first panel you add will always be the outermost, and the last you add will always be the innermost.
See the module level docs for more details.
egui::SidePanel::left("my_left_panel").show(ctx, |ui| {
ui.label("Hello World!");
});
See also TopBottomPanel
.
Implementations
id_source
: Something unique, e.g. "my_panel"
.
Can panel be resized by dragging the edge of it?
Default is true
.
The initial wrapping width of the SidePanel
.
The allowable width range for resizable panels.
pub fn show_inside<R>(
self,
ui: &mut Ui,
add_contents: impl FnOnce(&mut Ui) -> R
) -> InnerResponse<R>
pub fn show_inside<R>(
self,
ui: &mut Ui,
add_contents: impl FnOnce(&mut Ui) -> R
) -> InnerResponse<R>
Show the panel inside a Ui
.