Module panel

Module panel 

Source
Expand description

Panels are Ui regions taking up e.g. the left side of a Ui or screen.

Panels can either be a child of a Ui (taking up a portion of the parent) or be top-level (taking up a portion of the whole screen).

Together with crate::Window and crate::Area:s, top-level panels are the only places where you can put you widgets.

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.

You must never open one top-level panel from within another panel. Add one panel, then the next.

โš  Always add any CentralPanel last.

Add your crate::Window:s after any top-level panels.

Structsยง

CentralPanel
A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels.
Panel
A panel that covers an entire side (left, right, top or bottom) of a Ui or screen.
PanelSizer ๐Ÿ”’
Intermediate structure to abstract some portion of Panel::show_inside.
PanelState
State regarding panels.

Enumsยง

HorizontalSide ๐Ÿ”’
Top or Bottom
PanelSide ๐Ÿ”’
Horizontal or Vertical
VerticalSide ๐Ÿ”’
Left or Right

Functionsยง

animate_expansion ๐Ÿ”’
clamp_to_range ๐Ÿ”’

Type Aliasesยง

SidePanelDeprecated
TopBottomPanelDeprecated