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ยง
- Central
Panel - 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,toporbottom) of aUior screen. - Panel
Sizer ๐ - Intermediate structure to abstract some portion of
Panel::show_inside. - Panel
State - State regarding panels.
Enumsยง
- Horizontal
Side ๐ ToporBottom- Panel
Side ๐ HorizontalorVertical- Vertical
Side ๐ LeftorRight
Functionsยง
- animate_
expansion ๐ - clamp_
to_ ๐range
Type Aliasesยง
- Side
Panel Deprecated - TopBottom
Panel Deprecated