Crate cuicui_layout

source ·
Expand description

Layouting system for bevy cuicui.

The layouting system is very dumb. It is based on Containers. A Container layouts its content in either a column or a row.

The individual items are positioned according to:

By default, items are aligned at the center of the container, distributed on the flow direction evenly within the container.

All things in a cuicui layout has a known size. This is why everything needs to live in a root container of a fixed size.

That’s it! Now make a nice UI using bevy.

Re-exports

Modules

Macros

  • Reorganize rust method syntax to play wonderfully with bevy’s hierarchy spawning mechanism.

Structs

Enums

  • The cross axis alignment. Aka alignment.
  • The main axis alignment. Aka distribution.
  • The layout direction of a Container.
  • A constraint on an axis of a terminal Node (ie: doesn’t have a Children constraint).
  • A [Component] integrating the attached [Entity] in cuicui_layout.
  • A constraint on an axis of containers.

Traits

Functions