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.
Any Window
s and Area
s will cover the CentralPanel
.
egui::CentralPanel::default().show(ctx, |ui| {
ui.label("Hello World!");
});
Change the background color, margins, etc.
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.