Skip to main content

Module layout

Module layout 

Source
Expand description

Frames that decide where other components sit.

None of these owns the arrangement. A split reports the ratio a drag asked for, a scroll area reports how far it is scrolled and how much more there is, and a toolbar reports which of its actions did not fit — each renders exactly what the caller says is true, so a host that refuses a change keeps showing the layout that still holds.

The application shell is built from the same rule at a larger scale: SplitTree draws a whole SplitLayout the caller owns, Dock arranges panels in regions over that tree, and StatusBar states what the host says is true along the bottom.

Re-exports§

pub use aspect_ratio::AspectFit;
pub use aspect_ratio::AspectRatio;
pub use dock::Dock;
pub use dock::DockEvent;
pub use dock::DockPanel;
pub use dock::DockRegion;
pub use scroll::ScrollArea;
pub use scroll::ScrollAxis;
pub use scroll::scroll_offset;
pub use scroll::scroll_to;
pub use scroll_fade::FadeEdges;
pub use scroll_fade::ScrollFade;
pub use split::SplitAxis;
pub use split::SplitPane;
pub use split::SplitSide;
pub use status_bar::StatusBar;
pub use status_bar::StatusGroup;
pub use status_bar::StatusItem;
pub use toolbar::Toolbar;
pub use toolbar::ToolbarItem;
pub use tree::SplitChange;
pub use tree::SplitKind;
pub use tree::SplitLayout;
pub use tree::SplitPaneSpec;
pub use tree::SplitRecord;
pub use tree::SplitRecordError;
pub use tree::SplitTree;

Modules§

aspect_ratio
A frame that keeps a ratio.
dock
Panels arranged in regions around a centre, the way a desktop tool is laid out.
scroll
A bounded region with a themed scrollbar.
scroll_fade
Content that fades out where it runs off the edge of its region.
split
Two panes and a divider the typist can move.
status_bar
The strip along the bottom of a window.
toolbar
A horizontal bar of grouped actions, with the rest behind an overflow menu.
tree
A tree of splits, and the frame that draws one.