Skip to main content

hypen_engine/dispatch/
mod.rs

1//! Action and event dispatching.
2//!
3//! This module handles the flow of user interactions from UI → logic:
4//!
5//! - **Actions** (`@actions.xxx` in DSL) — dispatched when users interact
6//!   with buttons, forms, etc. Handlers are registered via
7//!   [`Engine::on_action`](crate::Engine::on_action) or `WasmEngine::onAction`.
8//!
9//! - **Events** — low-level UI events (click, input change) that can be
10//!   mapped to actions via the [`EventRouter`](event::EventRouter).
11
12pub mod action;
13pub mod event;
14
15pub use action::{Action, ActionDispatcher};
16pub use event::{Event, EventHandler};