Struct egui::containers::CentralPanel [−][src]
A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels.
CentralPanel
should 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!"); });
Implementations
impl CentralPanel
[src]
impl CentralPanel
[src]
pub fn show<R>(
self,
ctx: &CtxRef,
add_contents: impl FnOnce(&mut Ui) -> R
) -> InnerResponse<R>
[src]
self,
ctx: &CtxRef,
add_contents: impl FnOnce(&mut Ui) -> R
) -> InnerResponse<R>
Trait Implementations
impl Default for CentralPanel
[src]
fn default() -> CentralPanel
[src]
Auto Trait Implementations
impl RefUnwindSafe for CentralPanel
impl Send for CentralPanel
impl Sync for CentralPanel
impl Unpin for CentralPanel
impl UnwindSafe for CentralPanel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,