Struct egui::containers::panel::CentralPanel [−][src]
pub struct CentralPanel { /* fields omitted */ }
Expand description
A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels.
CentralPanel
must be added after all other panels.
NOTE: Any Window
s and Area
s will cover the top-level CentralPanel
.
See the module level docs for more details.
egui::CentralPanel::default().show(ctx, |ui| {
ui.label("Hello World!");
});
Implementations
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
.
Trait Implementations
Returns the “default value” for a type. Read more