| 19 | |
| 20 | |
| 21 | void SvgButton::onButton(const ButtonEvent& e) { |
| 22 | OpaqueWidget::onButton(e); |
| 23 | |
| 24 | // Dispatch ActionEvent on left click |
| 25 | if (e.action == GLFW_PRESS && e.button == GLFW_MOUSE_BUTTON_LEFT) { |
| 26 | ActionEvent eAction; |
| 27 | onAction(eAction); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | |
| 32 | void SvgButton::addFrame(std::shared_ptr<window::Svg> svg) { |
nothing calls this directly
no outgoing calls
no test coverage detected