rust_widgets 1.0.0

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
//! Gesture recognizer system (BLUE8 P4-2).
//!
//! This module provides gesture recognition primitives that transform
//! raw touch events (`TouchBegin`/`TouchEnd`/`TouchMove`) into
//! semantic gesture events (`Tap`, `DoubleTap`, `LongPress`, `Swipe`,
//! `Pinch`, `Rotate`).

pub mod engine;
pub mod pinch;
pub mod press;
pub mod rotate;
pub mod swipe;
pub mod tap;

pub use engine::{GestureEngine, GestureRecognizer};
pub use pinch::{PinchGesture, PinchTouch};
pub use press::{LongPressDragGesture, LongPressGesture, PanGesture};
pub use rotate::RotateGesture;
pub use swipe::{FlingGesture, SwipeGesture, TwoFingerSwipeGesture};
pub use tap::{DoubleTapGesture, TapGesture, TwoFingerTapGesture};

// Re-export constants and helpers used by sub-modules.
pub(crate) use engine::{
    distance, DOUBLE_TAP_TIMEOUT_MS, LONG_PRESS_MAX_MOVE, LONG_PRESS_MIN_MS,
    MAX_STATIONARY_DISTANCE, SWIPE_MIN_DISTANCE, SWIPE_MIN_VELOCITY, TAP_TIMEOUT_MS,
};