Struct dotrix_egui::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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Constructs wrapped service

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.