[][src]Crate firmament

Structs

Entity

Entity type, as seen by the user.

Generation

Index generation. When a new entity is placed at an old index, it bumps the Generation by 1. This allows to avoid using components from the entities that were deleted.

Layout
Limits

A set of size constraints for layouting.

Node

The bounds of an element and its children.

Point

A 2D point.

Rectangle

A rectangle.

Size

An amount of space in 2 dimensions.

Vector

A 2D vector.

Enums

Align

Alignment on an axis of a container.

Axis

The main axis of a flex layout.

HorizontalAlignment

The horizontal alignment of some resource.

Length

The strategy used to fill space in a specific dimension.

VerticalAlignment

The vertical alignment of some resource.

Functions

resolve

Type Definitions

Index

An index is basically the id of an Entity.

LayoutMap

Computes the flex layout with the given axis and limits, applying spacing, padding and alignment to the items as needed.