MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

src/gesture/mod.rs:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20impl GestureRecognizer {
21 pub fn new() -> Self {
22 Self {
23 tap_timeout: Duration::from_millis(200),
24 long_press_timeout: Duration::from_millis(500),
25 double_tap_timeout: Duration::from_millis(300),
26 handlers: Vec::new(),
27 }
28 }
29
30 pub fn on_gesture<F>(&mut self, handler: F)
31 where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected