| 26 | } |
| 27 | |
| 28 | void Imaged_Button::input(const sf::Event& e) |
| 29 | { |
| 30 | if (touchingMouse(m_quad)) |
| 31 | { |
| 32 | m_quad.setFillColor({sf::Color::Blue}); |
| 33 | } |
| 34 | else |
| 35 | { |
| 36 | m_quad.setFillColor(sf::Color::White); |
| 37 | } |
| 38 | |
| 39 | if(clicked(m_quad, e)) |
| 40 | { |
| 41 | m_function(); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void Imaged_Button::update() |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected