Skip to main content

Module layout

Module layout 

Source
Expand description

Flexbox layout over native widgets: Taffy computes frames, the caller applies them.

Structs§

Layout 🔒
One tree for every window: each window’s content hangs off its own root node. A node’s context is its natural size, present only on widget leaves.

Enums§

Placed 🔒
Where layout puts a widget.

Constants§

LIVE_NODE 🔒
TOP_EDGE_TOLERANCE 🔒
Within this distance of the top of the content area, a surface counts as touching it.

Functions§

measure_leaf 🔒
root_style 🔒
The window’s root fills viewport, or fits its content when there is none, and keeps content out from under the title bar.
stack_style 🔒
stack_width 🔒
A fixed width, or the full width on offer when there is a limit, so a limited stack fills its parent up to the limit and can be centred in it; otherwise the content’s width.
to_taffy 🔒
under_title_bar 🔒
frame, stretched up to the top of the window.

Type Aliases§

TaffySize 🔒