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 Windows and Areas 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

Change the background color, margins, etc.

Show the panel inside a Ui.

Show the panel at the top level.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.