SourceClass CentralPanel
from egui import CentralPanelclass CentralPanel:A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels.
This acts very similar to Frame.central_panel, but always expands
to use up all available space.
The order in which you add panels matter! The first panel you add will always be the outermost, and the last you add will always be the innermost.
⚠ CentralPanel must be added after all other panels!
NOTE: Any egui.Windows and egui.Areas will cover the top-level CentralPanel.
See the module level docs for more details.
Methods§
@staticmethod
def default() -> CentralPanel§
Source@staticmethod
def default_margins() -> CentralPanel§
A central panel with a background color and some inner margins
Sourcedef frame(self, /, frame: Frame) -> CentralPanel§
Change the background color, margins, etc.
Source@staticmethod
def no_frame() -> CentralPanel§
A central panel with no margin or background color
Sourcedef show(self, /, ctx: Context) -> Any§
Show the panel inside a Ui.
Sourcedef show_inside(self, /) -> Any§
Renamed to egui.CentralPanel.show.