Skip to main content

Crate layer_system

Crate layer_system 

Source
Expand description

A simple, flexible layer system for managing UI states, game modes, and event handling.

Layers process events top-to-bottom for update and bottom-to-top for passive_update.

Key features:

  • Easy stacking/replacing/removing of layers via Change.
  • Generic over state S and events E.
  • Efficient for small stacks.

Structs§

Change
The action, that will be done after handling an event by a layer.
LayerManager
The layer manager deals with the layers you create.

Enums§

ChangeAction
A special action for the layer.

Traits§

Layer
A trait, every layer has to implement, in order to be used by the layer manager;