| 14 | const ANIM_LENGTH: f64 = 0.1; |
| 15 | |
| 16 | pub struct Button { |
| 17 | size: Size, |
| 18 | idle_background: Color, |
| 19 | hover_background: Color, |
| 20 | draw_contents: Box<dyn Fn(&mut DrawContext)>, |
| 21 | |
| 22 | state: Rc<RefCell<ButtonState>>, |
| 23 | } |
| 24 | |
| 25 | struct ButtonState { |
| 26 | on_clicked: Box<dyn Fn(&mut EventContext)>, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…