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.