Expand description
Modules§
- The abstractions that make up the core of Taffy’s low-level API
Structs§
- A cache for caching the results of a sizing a Grid Item or Flexbox Item
- A set of margins that are available for collapsing with for block layout’s margin collapsing
- The final result of a layout algorithm for a single node.
- A struct containing the inputs constraints/hints for laying out a node, which are passed in by the parent
- A struct containing the result of laying a single node, which is returned up to the parent node
- A type representing the id of a single node in a tree of nodes
- An entire tree of UI nodes. The entry point to Taffy’s high-level API.
Enums§
- An axis that layout algorithms can be requested to compute a size for
- Whether we are performing a full layout, or we merely need to size the node
- Whether styles should be taken into account when computing size
- An error that occurs while trying to access or modify a node’s children by index.
Traits§
- Any type that implements
LayoutPartialTree
can be laid out using Taffy’s algorithms - Trait used by the
print_tree
method which prints a debug representation - Trait used by the
round_layout
method which takes a tree of unrounded float-valued layouts and performs rounding to snap the values to the pixel grid. - This trait is Taffy’s abstraction for downward tree traversal. However, this trait does not require access to any node’s other than a single container node’s immediate children unless you also intend to implement
TraverseTree
. - A marker trait which extends
TraversePartialTree
with the additional guarantee that the child/children methods can be used to recurse infinitely down the tree. Is required by theRoundTree
and thePrintTree
traits.
Type Aliases§
- The error Taffy generates on invalid operations