| 23 | } |
| 24 | |
| 25 | struct ButtonState { |
| 26 | on_clicked: Box<dyn Fn(&mut EventContext)>, |
| 27 | hover_start: Instant, |
| 28 | hover_t: f64, |
| 29 | hovered: bool, |
| 30 | } |
| 31 | |
| 32 | impl Button { |
| 33 | pub fn new<D: Fn(&mut DrawContext) + 'static, C: Fn(&mut EventContext) + 'static>( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…