MCPcopy Create free account
hub / github.com/Kethku/Pando / ButtonState

Class ButtonState

aspen/src/components/button.rs:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25struct ButtonState {
26 on_clicked: Box<dyn Fn(&mut EventContext)>,
27 hover_start: Instant,
28 hover_t: f64,
29 hovered: bool,
30}
31
32impl Button {
33 pub fn new<D: Fn(&mut DrawContext) + 'static, C: Fn(&mut EventContext) + 'static>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…