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

Method on_gesture

src/gesture/mod.rs:30–35  ·  view source on GitHub ↗
(&mut self, handler: F)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn on_gesture<F>(&mut self, handler: F)
31 where
32 F: Fn(GestureEvent) + 'static,
33 {
34 self.handlers.push(Box::new(handler));
35 }
36
37 pub fn update(&mut self, delta_time: Duration) {
38 // Update gesture timeouts

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected