euv-ui 0.48.0

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// Path-length-aware pointer/touch gesture classifier preventing circular drag-to-origin false taps.
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub struct GestureRecognizer {
    /// Whether a gesture stroke is currently active.
    #[get(type(copy))]
    pub(crate) active: bool,
    /// Initial contact point.
    #[get(type(copy))]
    pub(crate) start: Point,
    /// Most recent sampled point.
    #[get(type(copy))]
    pub(crate) last: Point,
    /// Cumulative Euclidean path length traveled during the stroke.
    #[get(type(copy))]
    pub(crate) total_path: f32,
}