ragnarok/
lib.rs

1//! **Ragnarok** is a UI events processing library that works by receiving a set of `Source` events
2//! (platform events such as mouse movement, touch events, keyboard, etc),
3//! deriving `Potential` events which are used to create and update an internal state
4//! of the current nodes states (e.g if X node is being hovered or not independently
5//! of that node listening for such event or not), and later generating a list of `Emmitable` events
6//! that are sent to the consumer of **Raganarok** and ultimately if an `Emmitable` event is cancelled
7//! this will discard some of the yet-to-emit `Emmitable` events and possibly affect the internal state of the nodes.
8
9pub mod emmitable;
10pub mod executor;
11pub mod key;
12pub mod measurement;
13pub mod measurer;
14pub mod name;
15pub mod nodes_state;
16pub mod potential_event;
17pub mod source;
18
19pub use emmitable::*;
20pub use executor::*;
21pub use key::*;
22pub(crate) use measurement::*;
23pub use measurer::*;
24pub use name::*;
25pub use nodes_state::*;
26pub(crate) use potential_event::*;
27pub use source::*;
28
29pub type CursorPoint = euclid::Point2D<f64, ()>;
30pub type Area = euclid::Rect<f32, ()>;