Module tree
Expand description
Modules§
- traits
- The abstractions that make up the core of Taffy’s low-level API
Structs§
- Cache
- A cache for caching the results of a sizing a Grid Item or Flexbox Item
- Collapsible
Margin Set - A set of margins that are available for collapsing with for block layout’s margin collapsing
- Layout
- The final result of a layout algorithm for a single node.
- Layout
Input - A struct containing the inputs constraints/hints for laying out a node, which are passed in by the parent
- Layout
Output - A struct containing the result of laying a single node, which is returned up to the parent node
- NodeId
- A type representing the id of a single node in a tree of nodes
- Taffy
Tree - An entire tree of UI nodes. The entry point to Taffy’s high-level API.
Enums§
- Clear
State - Clear operation outcome. See
Cache::clear - Detailed
Layout Info - The additional information from layout algorithm
- Requested
Axis - An axis that layout algorithms can be requested to compute a size for
- RunMode
- Whether we are performing a full layout, or we merely need to size the node
- Sizing
Mode - Whether styles should be taken into account when computing size
- Taffy
Error - An error that occurs while trying to access or modify a node’s children by index.
Traits§
- Layout
Block Container - Extends
LayoutPartialTreewith getters for the styles required for CSS Block layout - Layout
Flexbox Container - Extends
LayoutPartialTreewith getters for the styles required for Flexbox layout - Layout
Grid Container - Extends
LayoutPartialTreewith getters for the styles required for CSS Grid layout - Layout
Partial Tree - Any type that implements
LayoutPartialTreecan be laid out using Taffy’s algorithms - Print
Tree - Trait used by the
print_treemethod which prints a debug representation - Round
Tree - Trait used by the
round_layoutmethod which takes a tree of unrounded float-valued layouts and performs rounding to snap the values to the pixel grid. - Traverse
Partial Tree - Taffy’s abstraction for downward tree traversal.
- Traverse
Tree - A marker trait which extends
TraversePartialTree
Type Aliases§
- Taffy
Result - The error Taffy generates on invalid operations